/* styles.css */

/* CSS Variables */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #f59e0b;
  --bg-light: #fafafa;
  --bg-dark: #0f0f1a;
  --text-light: #1f2937;
  --text-dark: #f9fafb;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --border-dark: #374151;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  --font-heading: "Syne", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* Reduced from 2rem for mobile */
  box-sizing: border-box;
  width: 100%;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem; /* More padding on larger screens */
  }
}

/* Section Padding */
.section-padding {
  padding: 6rem 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.nav.scrolled {
  padding: 1rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition-smooth);
}

/* ============================================
   HERO SECTION - BASE STYLES
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 120px 20px 60px;
  overflow: hidden;
}

/* Background Orbs */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: -10%;
  right: -10%;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  bottom: 10%;
  left: -10%;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  top: 40%;
  left: 30%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #667eea;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 30px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: #1a202c;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #1a202c;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #718096;
  font-size: 0.85rem;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid #718096;
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #718096;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

/* ============================================
   HERO SECTION - MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 80px;
    min-height: auto;
  }

  /* Smaller orbs for mobile */
  .orb-1 {
    width: 250px;
    height: 250px;
    top: 5%;
    right: -20%;
  }

  .orb-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -15%;
  }

  .orb-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
  }

  .hero-eyebrow {
    font-size: 12px;
    padding: 6px 16px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Stack buttons vertically */
  .hero-cta {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    justify-content: center;
    padding: 14px 28px;
  }

  /* Stack stats vertically */
  .hero-stats {
    flex-direction: column;
    gap: 25px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Hide scroll indicator on mobile */
  .scroll-indicator {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    filter: blur(60px);
    opacity: 0.4;
  }
}

/* Large tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-stats {
    gap: 40px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-full {
  width: 100%;
}

/* Section Headers */
.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header.light {
  color: var(--text-dark);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.bg-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

.bg-dark .section-eyebrow {
  color: var(--primary-light);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(245, 158, 11, 0.1) 100%
  );
  border-radius: 2rem;
}

.image-placeholder {
  aspect-ratio: 3/4;
  background: url("images/main.jpeg");
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: white;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.experience-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.exp-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 1rem;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
  color: var(--text-light);
}

.status-available {
  color: #10b981;
  position: relative;
  padding-left: 1rem;
}

.status-available::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
}

/* Skills Section */
.skills-container {
  max-width: 900px;
  margin: 0 auto;
}

.skills-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.skill-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.skill-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.skill-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.skills-content {
  position: relative;
}

.skills-grid {
  display: none;
  animation: fadeIn 0.5s ease;
}

.skills-grid.active {
  display: grid;
  gap: 1.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-item {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-light);
}

.skill-percent {
  font-weight: 700;
  color: var(--primary);
}

.skill-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -3.4rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.timeline-date {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.timeline-company {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  border-radius: 50px;
}

/* Portfolio Section - Scrollable Images */
.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Portfolio item container */
.portfolio-item {
  display: flex;
  flex-direction: column;
}

/* Scrollable container - fixed height viewport */
.portfolio-scroll-container {
  height: 280px;
  border-radius: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  text-decoration: none;
  position: relative;
}

/* Custom scrollbar */
.portfolio-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.portfolio-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.portfolio-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* The scrollable image */
.portfolio-image-scroll {
  width: 100%;
  display: block;
  transition: var(--transition-smooth);
}

/* For gradient fallbacks (divs) */
.portfolio-image-scroll[style*="background"] {
  height: 500px;
}

.portfolio-scroll-container:hover .portfolio-image-scroll {
  transform: scale(1.01);
}

/* Clickable link below */
.portfolio-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: block;
}

.portfolio-link:hover {
  color: var(--primary);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.process-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.2);
  line-height: 1;
}

.process-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

.process-icon svg {
  width: 30px;
  height: 30px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.process-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: white;
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 5px;
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.author-info {
  text-align: left;
}

.author-info h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-light);
}

.author-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.25rem;
  color: var(--text-light);
}

.testimonial-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
}

.blog-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card.featured .blog-image {
  aspect-ratio: auto;
}

.blog-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.blog-content {
  padding: 2rem;
}

.blog-card.featured .blog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.blog-category {
  color: var(--primary-light);
  font-weight: 600;
}

.blog-date {
  color: rgba(255, 255, 255, 0.5);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card.featured .blog-title {
  font-size: 1.75rem;
}

.blog-excerpt {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.blog-link:hover {
  gap: 1rem;
  color: var(--primary);
}

/* Contact Section */
/* Contact Section - FIXED */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.contact-info .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.contact-text a,
.contact-text span:not(.label) {
  font-weight: 600;
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Form wrapper - FIXED */
.contact-form-wrapper {
  background: white;
  padding: 1.25rem; /* Tighter padding for mobile */
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevents content spilling out */
}

.form-group {
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px = prevents iOS zoom */
  transition: var(--transition-smooth);
  background: transparent;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* reCAPTCHA wrapper */
.recaptcha-wrapper {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.recaptcha-wrapper iframe {
  max-width: 100%;
}

/* Submit button */
.btn-full {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   TABLET & DESKTOP BREAKPOINTS
   ============================================ */

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.2fr; /* Side by side on tablet+ */
    gap: 3rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
    border-radius: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-wrapper {
    gap: 4rem;
  }

  .contact-form-wrapper {
    padding: 3rem; /* Original padding on desktop */
    border-radius: 2rem;
  }
}
/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 3rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-dot {
    left: -2.4rem;
  }
}
/* Replace the Footer CSS in your styles.css with this */

.footer {
  background: var(--bg-dark);
  color: var(--text-dark);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.5),
    transparent
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* Brand Column */
.footer-brand-col {
  max-width: 300px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Link Columns */
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
  width: fit-content;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-dark);
  transform: translateX(5px);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Connect Column */
.footer-connect-col {
  text-align: right;
}

.footer-contact {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-email {
  color: var(--primary-light);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.footer-email:hover {
  color: var(--text-dark);
}

.footer-location {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-connect-col .social-links {
  justify-content: flex-end;
  gap: 0.75rem;
}

.footer-connect-col .social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-connect-col .social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-connect-col .social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.legal-links a:hover {
  color: var(--primary-light);
}

.separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-credit span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
  }

  .footer-newsletter {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-connect-col {
    text-align: left;
  }

  .footer-connect-col .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-connect-col {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-connect-col .social-links {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    margin: 0 auto;
  }

  .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
  }
}
/* Smooth image loading with blur-up effect */
.portfolio-image-scroll,
.blog-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift */
img {
  height: auto;
  max-width: 100%;
}
.recaptcha-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
