/* ========================================
   CSS RESET & VARIABLES
======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f0;
  --bg-dark: #0a0a0a;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999999;
  --text-light: #fafaf9;
  --accent: #1a1a1a;
  --border: #e5e5e0;
  --border-light: #f0f0eb;

  /* Typography */
  --font-heading: 'Sora', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 160px);
  --container-max: 1320px;
  --container-padding: clamp(20px, 4vw, 60px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}


/* ========================================
   NAVBAR
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.4s var(--ease-out), border-bottom 0.4s var(--ease-out);
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar.scrolled {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-logo .dot {
  color: #6366f1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.01em;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-count {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px !important;
  background: var(--text-primary) !important;
  color: var(--text-light) !important;
  border-radius: 100px;
  font-size: 0.875rem !important;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease !important;
  will-change: transform;
  transform: translateZ(0);
}

.nav-cta svg {
  transition: transform 0.3s var(--ease-out);
}

.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

.nav-cta:hover {
  transform: scale(1.03) translateZ(0);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity, visibility;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-links a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  transform: translateY(20px) translateZ(0);
  opacity: 0;
  transition: all 0.5s var(--ease-out);
  will-change: transform, opacity;
}

.mobile-menu.active .mobile-menu-links a {
  transform: translateY(0) translateZ(0);
  opacity: 1;
}

.mobile-menu.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.25s; }


/* ========================================
   HERO SECTION
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  margin-bottom: 60px;
}

.hero-text {
  flex: 1;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0;
  overflow: visible;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.45s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }

.hero-italic {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 18px 36px;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out) 0.75s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta:active {
  transform: translateY(0) translateZ(0);
}

.hero-cta svg {
  transition: transform 0.3s var(--ease-out);
}

.hero-cta:hover svg {
  transform: translate(3px, -3px);
}

/* Hero Photo */
.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeInUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero-photo-wrapper {
  position: relative;
  width: clamp(260px, 22vw, 340px);
  height: clamp(320px, 28vw, 420px);
  border-radius: 20px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.photo-label-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.photo-label-role {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-description p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 4px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

/* Hero Social Buttons */
.hero-socials {
  position: absolute;
  bottom: 40px;
  right: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero-social-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: color 0.3s ease;
}

.hero-social-btn:hover {
  color: var(--text-primary);
}

.hero-social-dot {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  user-select: none;
  writing-mode: vertical-rl;
}

.hero-social-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-social-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text-primary);
  animation: scrollDown 2s ease infinite;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text-primary);
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

.hero-scroll span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  writing-mode: vertical-rl;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}


/* ========================================
   SELECTED WORK
======================================== */
.work {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0eb;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.view-project {
  padding: 14px 32px;
  background: #fff;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  transform: translateY(10px);
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover .view-project {
  transform: translateY(0);
}

.project-info {
  padding: 28px 28px 32px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6366f1;
}

.project-year {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.project-title {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 5px 14px;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}


/* ========================================
   MARQUEE
======================================== */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-secondary);
}

.marquee {
  display: flex;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.marquee-dot {
  color: #6366f1 !important;
  font-size: 0.75rem !important;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ========================================
   SERVICES
======================================== */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.services-grid {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s ease;
}

.service-item:first-child {
  border-top: 1px solid var(--border);
}

.service-item:hover {
  background: linear-gradient(90deg, transparent, var(--bg-secondary), transparent);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tertiary);
  padding-top: 4px;
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.service-item:hover .service-content h3 {
  color: #6366f1;
}

.service-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}

.service-arrow {
  font-size: 1.5rem;
  color: var(--text-tertiary);
  transition: all 0.3s var(--ease-out);
  padding-top: 4px;
  justify-self: end;
}

.service-item:hover .service-arrow {
  transform: translateX(4px);
  color: #6366f1;
}


/* ========================================
   EXPERIENCE
======================================== */
.experience {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.experience-heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text-primary);
}

.experience-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 16px;
}

.exp-header h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-period {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.exp-company {
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grouped Experience (LinkedIn-style) */
.exp-company-group {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.exp-company-group:last-child {
  border-bottom: none;
}

.exp-company-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.exp-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.exp-company-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exp-company-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.exp-company-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.exp-company-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.exp-roles--timeline {
  position: relative;
  padding-left: 24px;
}

.exp-roles--timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.exp-role {
  padding: 0;
}

.exp-role--grouped {
  position: relative;
  padding-bottom: 20px;
}

.exp-role--grouped:last-child {
  padding-bottom: 0;
}

.exp-timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6366f1;
  z-index: 1;
}

.exp-role-content {
  padding: 0;
}

.exp-role-meta {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 6px;
}

.exp-role-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
}

/* Tools */
.tools-section {
  padding-top: 20px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-item {
  padding: 10px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.tool-item:hover {
  border-color: #6366f1;
  color: #6366f1;
  transform: translateY(-2px);
}


/* ========================================
   EDUCATION
======================================== */
.education-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.education-list {
  max-width: 100%;
}

.edu-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-item-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.edu-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.edu-item-content {
  flex: 1;
  min-width: 0;
}

/* Certification Logo */
.cert-header-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cert-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-content {
  flex: 1;
  min-width: 0;
}


/* ========================================
   TESTIMONIALS
======================================== */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.author-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}


/* ========================================
   CONTACT / CTA
======================================== */
.contact {
  padding: var(--section-padding) 0;
  padding-bottom: calc(var(--section-padding) + 40px);
  background: var(--bg-dark);
  color: var(--text-light);
}

.contact-content {
  max-width: 800px;
}

.contact .section-label {
  color: rgba(255, 255, 255, 0.4);
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  margin-top: 24px;
}

.contact-title em {
  font-weight: 300;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: #fff;
  color: var(--text-primary);
  border-radius: 100px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: all 0.4s var(--ease-out);
  margin-bottom: 40px;
}

.contact-btn:hover {
  transform: scale(1.03) translateZ(0);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

.btn-arrow {
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease-out);
}

.contact-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-socials {
  display: flex;
  gap: 32px;
}

.social-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  position: relative;
}

.social-link:hover {
  color: #fff;
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s var(--ease-out);
}

.social-link:hover::after {
  width: 100%;
}


/* ========================================
   FOOTER
======================================== */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-left .nav-logo {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
}

.footer-left p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-right {
  text-align: right;
}

.footer-right p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}


/* ========================================
   SCROLL REVEAL ANIMATIONS
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ========================================
   RESPONSIVE - TABLET & MOBILE
======================================== */

/* === Large Tablet (1024px) === */
@media (max-width: 1024px) {
  .nav-links {
    gap: 28px;
  }

  .hero-top {
    gap: 40px;
  }

  .hero-photo-wrapper {
    width: 220px;
    height: 280px;
  }

  .hero-bottom {
    gap: 48px;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-cta {
    padding: 16px 32px;
  }

  .projects {
    gap: 24px;
  }

  .experience-grid {
    gap: 48px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .service-item {
    gap: 24px;
  }
}

/* === Tablet (768px) === */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(60px, 8vw, 100px);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-photo {
    order: -1;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
  }

  .hero-photo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    flex-shrink: 0;
  }

  .hero-photo-label {
    align-items: center;
    text-align: center;
  }

  .hero-badge {
    display: none;
  }

  .hero-title {
    margin-bottom: 0;
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1.1;
  }

  .hero-cta {
    margin-top: 36px;
    padding: 18px 36px;
    font-size: 1rem;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }

  .hero-description p {
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .hero-stats {
    gap: 32px;
    justify-content: center;
  }

  .stat {
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-socials {
    display: none;
  }

  /* Work */
  .projects {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
  }

  .view-project {
    transform: translateY(0);
    padding: 12px 24px;
    font-size: 0.8125rem;
  }

  /* Section headers */
  .section-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  /* Services */
  .service-item {
    grid-template-columns: 50px 1fr 40px;
    gap: 16px;
    padding: 28px 0;
  }

  .service-content h3 {
    font-size: 1.125rem;
  }

  .service-content p {
    font-size: 0.875rem;
  }

  /* Experience */
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }

  .exp-header {
    flex-direction: column;
    gap: 4px;
  }

  .exp-company-logo {
    width: 40px;
    height: 40px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Contact */
  .contact-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .contact-btn {
    padding: 16px 32px;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  .contact-desc {
    margin-bottom: 36px;
  }

  .contact-socials {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  /* Marquee */
  .marquee-section {
    padding: 28px 0;
  }

  .marquee-track {
    gap: 24px;
  }
}

/* === Small Mobile (480px) === */
@media (max-width: 480px) {
  :root {
    --container-padding: 20px;
  }

  /* Hero */
  .hero {
    padding-top: 88px;
    padding-bottom: 60px;
  }

  .hero-top {
    gap: 32px;
  }

  .hero-photo {
    flex-direction: column;
    gap: 16px;
  }

  .hero-photo-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 14px;
  }

  .photo-label-name {
    font-size: 1rem;
  }

  .photo-label-role {
    font-size: 0.875rem;
  }

  .hero-badge {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
    line-height: 1.15;
  }

  .hero-cta {
    margin-top: 28px;
    padding: 16px 32px;
    font-size: 0.9375rem;
    width: 100%;
    justify-content: center;
  }

  .hero-description p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
  }

  .stat {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: calc(50% - 12px);
    text-align: center;
  }

  .stat-number {
    font-size: 2.25rem;
    font-weight: 700;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(2.25rem, 8vw, 3.25rem);
  }

  .section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .section-label {
    margin-bottom: 16px;
    font-size: 0.8125rem;
  }

  /* Projects */
  .project-info {
    padding: 20px 20px 24px;
  }

  .project-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .project-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .project-tags span {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Services */
  .service-item {
    grid-template-columns: 1fr 36px;
    gap: 12px;
    padding: 28px 0;
  }

  .service-number {
    display: none;
  }

  .service-content h3 {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .service-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .service-arrow {
    font-size: 1.5rem;
  }

  /* Experience */
  .experience-grid {
    gap: 36px;
    margin-bottom: 36px;
  }

  .experience-heading {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .experience-item {
    padding: 16px 0;
  }

  .exp-header h3 {
    font-size: 1.0625rem;
    line-height: 1.4;
  }

  .exp-company {
    font-size: 0.9375rem;
  }

  .exp-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .exp-company-group {
    padding: 16px 0;
  }

  .exp-company-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .exp-company-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .exp-company-name {
    font-size: 1rem;
  }

  .exp-roles--timeline {
    padding-left: 20px;
  }

  .exp-timeline-dot {
    left: -20px;
    width: 10px;
    height: 10px;
  }

  /* Tools */
  .tools-grid {
    gap: 10px;
  }

  .tool-item {
    padding: 10px 18px;
    font-size: 0.9375rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 28px;
    gap: 20px;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }

  .author-name {
    font-size: 0.9375rem;
  }

  .author-role {
    font-size: 0.8125rem;
  }

  /* Contact */
  .contact-title {
    font-size: clamp(2.25rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .contact-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .contact-btn {
    padding: 18px 32px;
    font-size: 1rem;
    gap: 12px;
  }

  .contact-socials {
    gap: 20px;
  }

  .social-link {
    font-size: 0.9375rem;
  }

  /* Footer */
  .footer {
    padding: 32px 0;
  }

  .footer-left .nav-logo {
    font-size: 1.25rem;
  }

  .footer-left p,
  .footer-right p {
    font-size: 0.75rem;
  }

  /* Marquee */
  .marquee-section {
    padding: 20px 0;
  }

  .marquee-track {
    gap: 20px;
  }

  .marquee-track span {
    font-size: 1.125rem;
  }
}

/* === Very Small (360px) === */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 12px;
  }

  .hero-badge {
    display: none;
  }

  .photo-label-name {
    font-size: 0.9375rem;
  }

  .photo-label-role {
    font-size: 0.8125rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }

  .stat {
    min-width: 100%;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.8125rem;
  }

  .contact-btn {
    padding: 12px 20px;
    font-size: 0.8125rem;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .contact-title {
    font-size: 1.625rem;
  }
}

/* === Touch device improvements === */
@media (hover: none) and (pointer: coarse) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  }

  .view-project {
    transform: translateY(0);
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 10px 20px;
    font-size: 0.8125rem;
  }

  .project-card:hover {
    transform: none;
  }

  .project-card:active {
    transform: scale(0.99);
  }

  .tool-item:hover {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .service-item:hover {
    background: none;
  }

  .service-item:active {
    background: var(--bg-secondary);
  }
}

/* === Landscape phones === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-top {
    grid-template-columns: 1fr auto;
    gap: 32px;
  }

  .hero-photo-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 10px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-bottom {
    gap: 32px;
  }
}


/* ========================================
   PERFORMANCE & SMOOTHNESS OPTIMIZATIONS
======================================== */

/* GPU Acceleration for frequently animated elements */
.project-card,
.service-item,
.testimonial-card,
.hero-cta,
.contact-btn,
.nav-cta,
.mobile-menu,
.project-img,
.nav-toggle {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Smooth hover states */
.project-card:hover,
.service-item:hover,
.testimonial-card:hover {
  will-change: transform, box-shadow;
}

/* Touch device optimizations */
.touch-device * {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.touch-device button,
.touch-device a {
  touch-action: manipulation;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Enhanced scrollbar styling for smooth experience */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
