@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --color-main-dark: #050B18;
  --color-deep-navy: #0B1120;
  --color-card-dark: #111827;
  --color-slate: #1E293B;
  --color-light-section: #F8FAFC;
  --color-text-light: #E5E7EB;
  --color-text-muted: #94A3B8;
  --color-white: #FFFFFF;
  --color-accent-blue: #2563EB;
  --color-accent-blue-hover: #1D4ED8;
  --color-teal: #06B6D4;
  --color-purple: #7C3AED;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.15);
  
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --section-padding: 7rem 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  background-color: var(--color-main-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.text-teal { color: var(--color-teal); }
.text-blue { color: var(--color-accent-blue); }

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s ease;
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-teal));
  color: var(--color-white);
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--color-teal);
  border-color: var(--color-teal);
  transform: translateY(-2px);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--color-white);
  opacity: 0.8;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--color-teal);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: var(--color-main-dark);
  color: var(--color-white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

/* Subtle background grid */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-content p.subtitle {
  font-size: 1.125rem;
  color: var(--color-slate-light);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-light);
  margin-bottom: 0.75rem;
}

.trust-line::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-teal);
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-white);
  backdrop-filter: blur(5px);
}

/* CSS/SVG Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Code Window Visual */
.code-window {
  width: 100%;
  max-width: 520px;
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
  background: rgba(255,255,255,0.03);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.code-body {
  padding: 24px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-body pre { margin: 0; }
.c-keyword { color: #FF7B72; }
.c-def { color: #79C0FF; }
.c-prop { color: #D2A8FF; }
.c-str { color: #A5D6FF; }
.c-func { color: #D2A8FF; }

/* Removed unused build-section */

/* Services */
.services-section {
  padding: var(--section-padding);
  background-color: var(--color-deep-navy);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-card-dark);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-purple));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 24px; height: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Projects Section */
.projects-section {
  padding: var(--section-padding);
  background: var(--color-main-dark);
  color: var(--color-white);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.projects-section .container { position: relative; z-index: 1; }

.projects-section .section-title {
  color: var(--color-white);
}

.projects-section .section-subtitle {
  color: var(--color-text-muted);
}

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

.project-card {
  background: var(--color-card-dark);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-teal));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon-badge {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-card h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--color-slate-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.project-features li {
  font-size: 0.875rem;
  color: var(--color-slate-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.project-features li::before {
  content: '→';
  color: var(--color-accent-blue);
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--color-slate-light);
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

/* About & Process */
.about-section {
  padding: 7rem 0 4.5rem;
  background-color: var(--color-deep-navy);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.about-text p:last-child { margin-bottom: 0; }

.about-features {
  background: var(--color-card-dark);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-highlights {
  list-style: none;
}

.about-highlights li {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.about-highlights li:last-child { margin-bottom: 0; }

.highlight-icon {
  width: 24px;
  height: 24px;
  color: var(--color-teal);
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-section {
  padding: 5rem 0 7rem;
  background-color: var(--color-main-dark);
}

.process-section .section-title { color: var(--color-white); }
.process-section .section-subtitle { color: var(--color-text-muted); }

.why-work-section {
  padding: 7rem 0;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
}

.why-work-section .section-title { color: var(--color-white); }
.why-work-section .section-subtitle { color: var(--color-text-muted); }

/* Feature Cards (Why Work With Me) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-teal));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-blue);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-slate-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; font-size: 1.05rem; }

.about-features {
  background: var(--color-rich-navy);
  color: var(--color-white);
  padding: 3rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-highlights {
  list-style: none;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--color-soft-white);
}

.highlight-icon {
  width: 32px; height: 32px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-teal);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3.5rem;
}

@media (min-width: 1025px) {
  .process-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2), transparent);
    z-index: 0;
  }
}

.process-card {
  background: var(--color-card-dark);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

@media (hover: hover) and (pointer: fine) {
  .process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
  }
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.process-card h3 { font-size: 1.25rem; color: var(--color-white); margin-bottom: 0.75rem; }
.process-card p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 0; }

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-main-dark), var(--color-deep-navy));
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 100vw; height: 100vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 { color: var(--color-white); font-size: 3rem; }
.cta-section p { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 600px; margin-inline: auto; }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--color-main-dark);
  color: var(--color-text-muted);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), rgba(124, 58, 237, 0.5), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent-blue);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--color-white); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact svg {
  margin-top: 4px;
  color: var(--color-teal);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.875rem;
}

/* Projects Page Styles */
.page-header {
  padding: 10rem 0 5rem;
  background-color: var(--color-deep-navy);
  color: var(--color-white);
  text-align: center;
}

.page-header h1 { color: var(--color-white); margin-bottom: 1rem; }
.page-header p { color: var(--color-slate-light); max-width: 600px; margin: 0 auto; font-size: 1.125rem; }

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-slate);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-accent-blue);
  color: var(--color-white);
  border-color: var(--color-accent-blue);
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-item {
  display: block; /* Default block, hidden when filtered out */
}

/* Contact Page Styles */
.contact-section {
  padding: var(--section-padding);
  background: var(--color-main-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-card, .contact-form-wrapper {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.3), rgba(11, 17, 32, 0.8));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 3.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before, .contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), rgba(37, 99, 235, 0.4), transparent);
}

.contact-info-card h3 { color: var(--color-white); font-size: 1.75rem; margin-bottom: 1rem; }
.contact-info-card p { color: var(--color-text-muted); margin-bottom: 2rem; }

.contact-methods {
  list-style: none;
}

.contact-methods li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.method-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-teal);
}

.method-text span { display: block; font-size: 0.85rem; color: var(--color-text-muted); }
.method-text a, .method-text p { font-weight: 500; color: var(--color-white); }

/* The contact-form-wrapper rules are now merged with contact-info-card above */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--color-slate-light);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.25);
  color: var(--color-white);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-control:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 10px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Custom Dropdown Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger svg {
  transition: transform 0.3s ease;
  color: var(--color-slate-light);
}

.custom-select-wrapper.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 10px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(11, 17, 32, 0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbar for Webkit */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-item {
  padding: 0.875rem 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.custom-select-item:hover, .custom-select-item.selected {
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn { flex: 1; }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-teal);
  display: none;
  text-align: center;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Form Row (contact page two-column field pairs) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ======================================================
   RESPONSIVE MEDIA QUERIES
   Desktop is untouched. Only responsive overrides below.
   ====================================================== */

/* --- Global overflow safety --- */
html, body {
  width: 100%;
  max-width: 100%;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* ======================== 1024px ======================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 5.5rem 0;
  }

  .container { padding: 0 1.75rem; }

  .hero-content h1 { font-size: clamp(2.35rem, 5.5vw, 3.2rem); }
  .section-title { font-size: clamp(2rem, 4.5vw, 2.5rem); }
  .cta-section h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); }

  .hero-container { gap: 2rem; }
  .hero::after { width: 50vw; height: 50vw; right: -10%; top: -15%; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .projects-page-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .about-section { padding: 5.5rem 0 3.5rem; }
  .process-section { padding: 4rem 0 5.5rem; }
  .why-work-section { padding: 5.5rem 0; }

  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
}

/* ======================== 900px ======================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content p.subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-line { justify-content: center; }
  .skill-badges { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .code-window { transform: none; max-width: 100%; }
  .code-window:hover { transform: none; }

  .about-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text { text-align: center; }
  .about-features { width: 100%; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ======================== 768px ======================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  .container { padding: 0 1.25rem; }

  /* --- Header / Mobile Nav --- */
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 5.5rem 2rem 2rem;
    gap: 0;
    transition: left var(--transition-normal);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.active { left: 0; }
  .nav-links .nav-link {
    font-size: 1.1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    text-align: center;
  }
  .nav-links .btn {
    margin-left: 0 !important;
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
  .mobile-menu-btn { display: block; z-index: 1001; }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }
  .hero::after {
    width: 80vw; height: 80vw;
    top: -20%; right: -25%;
    opacity: 0.6;
  }
  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1.08;
  }
  .hero-content p.subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 100%; }

  /* --- Section Typography --- */
  h1 { font-size: clamp(2rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.75rem, 6vw, 2rem); }
  .section-title { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
  .cta-section h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .cta-section p { font-size: 1.05rem; }

  /* --- Grids collapse to 1 column --- */
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .projects-page-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .process-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* --- Cards padding --- */
  .service-card { padding: 1.75rem; }
  .project-content { padding: 1.5rem; }
  .feature-card { padding: 1.75rem; }
  .process-card { padding: 1.75rem 1.5rem; }
  .about-features { padding: 2rem; }

  /* --- About --- */
  .about-section { padding: 4rem 0 3rem; }
  .about-text h2 { font-size: clamp(1.75rem, 6vw, 2.25rem); }

  /* --- Process --- */
  .process-section { padding: 3.5rem 0 4rem; }

  /* --- Why Work --- */
  .why-work-section { padding: 4rem 0; }

  /* --- CTA --- */
  .cta-section { padding: 4rem 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }

  /* --- Contact Page --- */
  .contact-info-card,
  .contact-form-wrapper { padding: 2rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }

  /* --- Projects Page --- */
  .page-header { padding: 7rem 0 3rem; }
  .page-header h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .portfolio-filters { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 1rem; font-size: 0.875rem; }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: 100%; }
  .footer-contact a,
  .footer-contact span {
    word-break: break-all;
    overflow-wrap: break-word;
  }
}

/* ======================== 640px ======================== */
@media (max-width: 640px) {
  .container { padding: 0 1.125rem; }

  .hero { padding-top: 7rem; padding-bottom: 3.5rem; }
  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
    line-height: 1.05;
  }

  .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }

  .service-card { padding: 1.5rem; }
  .feature-card { padding: 1.5rem; }
  .process-card { padding: 1.5rem 1.25rem; }

  .project-card h3 { font-size: 1.25rem; }
  .project-card p { font-size: 0.9rem; }
  .project-actions { flex-direction: column; gap: 0.75rem; }
  .project-actions .btn { width: 100%; text-align: center; }

  .code-body { padding: 16px; font-size: 0.8rem; line-height: 1.6; }

  .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

  .cta-section { padding: 3.5rem 0; }
  .cta-section h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .cta-section p { font-size: 1rem; margin-bottom: 1.75rem; }
}

/* ======================== 480px ======================== */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .hero { padding-top: 6.5rem; padding-bottom: 3rem; }
  .hero-content h1 {
    font-size: clamp(1.75rem, 9.5vw, 2.2rem);
  }
  .hero-content p.subtitle { font-size: 0.95rem; }
  .hero-visual { display: none; }

  .badge { font-size: 0.75rem; padding: 0.3rem 0.65rem; }

  .section-title { font-size: clamp(1.5rem, 7vw, 1.85rem); }
  .section-subtitle { font-size: 0.925rem; }

  .service-card { padding: 1.375rem; }
  .service-card h3 { font-size: 1.125rem; }
  .service-card p { font-size: 0.9rem; }

  .feature-card { padding: 1.375rem; }
  .feature-card h3 { font-size: 1.125rem; }
  .feature-card p { font-size: 0.9rem; }

  .process-card { padding: 1.375rem 1.125rem; }
  .process-card h3 { font-size: 1.125rem; }

  .contact-info-card,
  .contact-form-wrapper { padding: 1.5rem; }
  .contact-info-card h3 { font-size: 1.4rem; }
  .method-icon { width: 40px; height: 40px; }

  .page-header { padding: 6.5rem 0 2.5rem; }
  .page-header h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .page-header p { font-size: 1rem; }

  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: clamp(1.35rem, 7vw, 1.75rem); }

  .footer-grid { gap: 1.75rem; }
  .footer-brand h3 { font-size: 1.25rem; }
  .site-footer { padding: 3.5rem 0 1.5rem; }
}

/* ======================== 360px ======================== */
@media (max-width: 360px) {
  .container { padding: 0 0.875rem; }

  .logo { font-size: 1.1rem; }
  .site-header { padding: 0.75rem 0; }

  .hero { padding-top: 6rem; padding-bottom: 2.5rem; }
  .hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.08;
  }
  .hero-content p.subtitle { font-size: 0.9rem; }
  .hero-actions .btn { padding: 0.7rem 1.25rem; font-size: 0.9rem; }

  .badge { font-size: 0.7rem; padding: 0.25rem 0.55rem; }

  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.875rem; }

  .service-card,
  .feature-card { padding: 1.25rem; }
  .process-card { padding: 1.25rem 1rem; }

  .project-content { padding: 1.25rem; }
  .project-card h3 { font-size: 1.15rem; }

  .contact-info-card,
  .contact-form-wrapper { padding: 1.25rem; border-radius: 16px; }

  .form-control { padding: 0.85rem 1rem; font-size: 0.95rem; }

  .filter-btn { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

  .cta-section h2 { font-size: 1.3rem; }
  .cta-section p { font-size: 0.9rem; }

  .footer-bottom { font-size: 0.8rem; }
}
