/* ============================================= */
/* Portfolio - Modern Dark/Light Theme CSS      */
/* ============================================= */

/* ============================================= */
/* CSS Variables & Theme System                 */
/* ============================================= */
:root {
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* Dark Theme (Default) - Set C: PH Tax Calculator Style */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-elevated: #475569;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0f172a;

  --border-primary: #334155;
  --border-secondary: #475569;

  --accent-primary: #3b82f6;
  --accent-secondary: #22c55e;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);

  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.15);
  --warning: #fbbf24;
  --warning-muted: rgba(251, 191, 36, 0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --purple: #a78bfa;
  --purple-muted: rgba(167, 139, 250, 0.15);

  --card-bg: rgba(30, 41, 59, 0.8);
  --card-border: rgba(71, 85, 105, 0.5);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);

  --header-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);

  --cert-microsoft: #00a4ef;
  --cert-databricks: #ff3621;
  --cert-github: #f1f5f9;
}

/* Light Theme - Set C: PH Tax Calculator Style */
[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;
  --bg-elevated: #ffffff;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --text-inverse: #f9fafb;

  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;

  --accent-primary: #2563eb;
  --accent-secondary: #16a34a;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #16a34a 100%);

  --success: #16a34a;
  --success-muted: rgba(22, 163, 74, 0.1);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.1);
  --danger: #dc2626;
  --danger-muted: rgba(220, 38, 38, 0.1);
  --purple: #7c3aed;
  --purple-muted: rgba(124, 58, 237, 0.1);

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);

  --header-overlay: linear-gradient(135deg, rgba(249, 250, 251, 0.97) 0%, rgba(243, 244, 246, 0.95) 100%);

  --cert-microsoft: #0067b8;
  --cert-databricks: #ff3621;
  --cert-github: #24292f;
}

/* Light Theme Enhancements */
[data-theme="light"] .header {
  background: var(--header-overlay),
              radial-gradient(ellipse at 20% 80%, rgba(29, 78, 216, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(4, 120, 87, 0.06) 0%, transparent 50%);
}

[data-theme="light"] .floating-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header__stats {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-stack {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
}

[data-theme="light"] .tech-badge {
  background: #ffffff;
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .cert-card,
[data-theme="light"] .project-card,
[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cert-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-primary);
}

[data-theme="light"] .section-tag {
  background: rgba(29, 78, 216, 0.1);
  color: var(--accent-primary);
}

[data-theme="light"] .btn--primary {
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
}

[data-theme="light"] .btn--outline {
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

[data-theme="light"] .btn--outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

[data-theme="light"] .contact {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

[data-theme="light"] .contact-form-wrapper {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-primary);
}

[data-theme="light"] .back-to-top {
  background: #ffffff;
  border-color: var(--border-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal__content {
  background: #ffffff;
}

[data-theme="light"] .about-image__decoration {
  background: var(--accent-gradient);
  opacity: 0.15;
}

[data-theme="light"] .highlight {
  background: var(--bg-tertiary);
  border-color: var(--border-primary);
}

[data-theme="light"] .project-card__badge {
  background: rgba(29, 78, 216, 0.1);
  color: var(--accent-primary);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-primary);
}

/* ============================================= */
/* Base Reset & Styles                          */
/* ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================= */
/* Container                                    */
/* ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================= */
/* Theme Toggle                                 */
/* ============================================= */
.theme-toggle {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--accent-primary);
}

.theme-icon {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
  transition: opacity var(--transition-fast), transform var(--transition-base);
  position: absolute;
}

.theme-icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* ============================================= */
/* Navigation                                   */
/* ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  transition: all var(--transition-base);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.9);
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__items {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--accent-gradient);
  color: white !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav__mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav {
    padding: var(--space-md) var(--space-lg);
  }

  .nav__items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-primary);
  }

  .nav__items.active {
    display: flex;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .theme-toggle {
    top: var(--space-md);
    right: calc(60px + var(--space-lg));
    width: 40px;
    height: 40px;
  }
}

/* ============================================= */
/* Header / Hero                                */
/* ============================================= */
.header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--header-overlay),
              radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  overflow: hidden;
}

.header__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(80px + var(--space-3xl)) var(--container-padding) var(--space-3xl);
  max-width: 900px;
  margin: 0 auto;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.header__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

.title-line {
  display: block;
}

.title-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.header__cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.header__stats {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-primary);
}

.stat__suffix {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent-primary);
}

.stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border-secondary);
}

@media (max-width: 640px) {
  .header__stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat__divider {
    width: 60px;
    height: 1px;
  }
}

/* Floating Cards */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.floating-card svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

.floating-card--1 {
  top: 25%;
  left: 8%;
  animation-delay: 0s;
}

.floating-card--2 {
  top: 40%;
  right: 10%;
  animation-delay: -2s;
}

.floating-card--3 {
  bottom: 25%;
  left: 12%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@media (max-width: 1024px) {
  .floating-cards {
    display: none;
  }
}

/* ============================================= */
/* Buttons                                      */
/* ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-gradient);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--border-secondary);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-primary);
  padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover {
  background: rgba(59, 130, 246, 0.1);
}

.btn--small {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-xs);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================= */
/* Section Styles                               */
/* ============================================= */
section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================= */
/* Tech Stack Section                           */
/* ============================================= */
.tech-stack {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-primary);
}

.tech-stack__wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.tech-stack__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-stack__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.tech-badge {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ============================================= */
/* Certifications Section                       */
/* ============================================= */
.certifications {
  background: var(--bg-secondary);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.cert-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-primary);
}

.cert-badge {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.cert-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-logo svg {
  width: 32px;
  height: 32px;
}

.cert-logo--microsoft {
  color: var(--cert-microsoft);
}

.cert-logo--databricks {
  color: var(--cert-databricks);
}

.cert-logo--github {
  color: var(--cert-github);
}

.cert-content {
  flex: 1;
}

.cert-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.cert-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.cert-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-verified {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 24px;
  height: 24px;
  color: var(--accent-secondary);
}

.cert-verified svg {
  width: 100%;
  height: 100%;
}

/* ============================================= */
/* Projects Section                             */
/* ============================================= */
.projects {
  background: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-primary);
}

.project-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.project-card--featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
}

.project-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.project-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.project-icon--app { color: var(--accent-primary); }
.project-icon--integration { color: #f59e0b; }
.project-icon--automation { color: #8b5cf6; }
.project-icon--monitoring { color: #ec4899; }

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-tech-stack span,
.project-card .project-tech-stack span {
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
}

.project-metrics .metric {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.project-metrics .metric strong {
  color: var(--accent-secondary);
  font-weight: 700;
}

.project-card__content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.project-tagline {
  font-size: var(--text-sm);
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.project-card__content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.project-features span {
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-secondary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-primary);
}

.project-status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.project-status--coming {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.projects-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================= */
/* Services Section                             */
/* ============================================= */
.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-2xl);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.service-card > p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: var(--radius-full);
}

/* ============================================= */
/* About Section                                */
/* ============================================= */
.about {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
}

.about-image__decoration {
  position: absolute;
  inset: -16px;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-2xl);
  z-index: -1;
  opacity: 0.3;
}

.about-content .section-title {
  text-align: left;
}

.about-content p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-highlights {
  display: flex;
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.highlight {
  text-align: center;
}

.highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent-primary);
}

.highlight-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.about-cta {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content p {
    text-align: center;
  }

  .about-highlights {
    justify-content: center;
  }

  .about-cta {
    justify-content: center;
  }
}

/* ============================================= */
/* Contact Section                              */
/* ============================================= */
.contact {
  background: var(--accent-gradient);
  color: white;
  padding: var(--space-4xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info .section-tag {
  color: rgba(255, 255, 255, 0.7);
}

.contact-info .section-title {
  color: white;
  text-align: left;
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.contact-link:hover {
  color: white;
  transform: translateX(4px);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn--primary {
  background: white;
  color: var(--accent-primary);
}

.contact-form .btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-info > p {
    text-align: center;
  }

  .contact-links {
    align-items: center;
  }

  .contact-availability {
    justify-content: center;
  }
}

/* ============================================= */
/* Footer                                       */
/* ============================================= */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-primary);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ============================================= */
/* Back to Top Button                           */
/* ============================================= */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-full);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================= */
/* Modal Styles                                 */
/* ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-primary);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-2xl);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal__close:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

/* Gallery Slides */
.gallery__slide {
  display: none;
  padding: var(--space-2xl);
}

.gallery__slide.active {
  display: block;
}

.gallery__slide h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  text-align: center;
  padding-right: var(--space-3xl);
}

.gallery__slide-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.gallery__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.gallery__details {
  text-align: center;
}

.gallery__details p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.roi-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Workflow Diagram */
.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.workflow-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.workflow-step span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.workflow-arrow {
  font-size: var(--text-2xl);
  color: var(--accent-primary);
}

/* Gallery Navigation */
.gallery__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  background: var(--bg-tertiary);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.gallery__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.gallery__btn:hover {
  background: var(--accent-secondary);
  transform: scale(1.1);
}

.gallery__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gallery__counter {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .workflow-diagram {
    flex-direction: column;
    gap: var(--space-md);
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }

  .gallery__slide {
    padding: var(--space-lg);
  }
}

/* ============================================= */
/* Utility Classes                              */
/* ============================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================= */
/* Animations                                   */
/* ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================= */
/* Print Styles                                 */
/* ============================================= */
@media print {
  .theme-toggle,
  .nav,
  .floating-cards,
  .back-to-top,
  .modal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .header {
    min-height: auto;
    padding: 2rem 0;
  }
}
