/* ========================================================
   UPUL PALLEKUMBURA — PROFILE WEBSITE
   Design Fusion: Paodao.fr × ZettaJoule.com
   ======================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@200;300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Color Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0d1224;
  --bg-tertiary: #111832;
  --surface-glass: rgba(15, 22, 46, 0.65);
  --surface-glass-light: rgba(255, 255, 255, 0.04);

  --text-primary: #f0f2f8;
  --text-secondary: rgba(220, 225, 240, 0.72);
  --text-muted: rgba(180, 190, 215, 0.5);

  --accent-teal: #3ecfcf;
  --accent-blue: #4e8eff;
  --accent-gold: #d4a853;
  --accent-purple: #8b6fcf;
  --accent-glow: rgba(62, 207, 207, 0.15);
  --accent-glow-strong: rgba(62, 207, 207, 0.35);

  --gradient-hero: linear-gradient(165deg, #0a0e1a 0%, #0f1a3a 30%, #132850 55%, #1a3560 75%, #0a0e1a 100%);
  --gradient-section: linear-gradient(180deg, #0a0e1a 0%, #0d1428 50%, #0a0e1a 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), #e8c878);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-max: 1280px;
  --container-wide: 1440px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

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

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

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

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

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

::selection {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(62, 207, 207, 0.3);
  border-radius: 3px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.3s forwards;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 1px;
  animation: loadProgress 2s var(--ease-out-expo) 0.5s forwards;
}

@keyframes loadProgress {
  to {
    width: 100%;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-base);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  padding: 14px 40px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(62, 207, 207, 0.08);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-accent {
  color: var(--accent-teal);
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-teal);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid rgba(62, 207, 207, 0.4);
  border-radius: 4px;
  color: var(--accent-teal);
  transition: all var(--transition-base);
  cursor: pointer;
  background: transparent;
}

.nav-cta:hover {
  background: rgba(62, 207, 207, 0.1);
  border-color: var(--accent-teal);
  box-shadow: 0 0 20px rgba(62, 207, 207, 0.15);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 1px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.2);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(62, 207, 207, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.1) 40%, rgba(10, 14, 26, 0.7) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-teal);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 24px 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 250;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.5s forwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero-title .thin {
  font-weight: 300;
  font-style: italic;
  color: rgba(220, 225, 240, 0.6);
}

.hero-description {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 650px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 1.1s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 1.4s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gradient-accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(62, 207, 207, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(62, 207, 207, 0.05);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 2s forwards;
}

.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(62, 207, 207, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ---------- Section Commons ---------- */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

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

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

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent-teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title .accent {
  color: var(--accent-teal);
}

.section-title .thin {
  font-weight: 300;
  font-style: italic;
  color: rgba(220, 225, 240, 0.5);
}

.section-description {
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.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;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ---------- Quote Section (Zetta Joule inspired) ---------- */
.quote-section {
  position: relative;
  padding: 100px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62, 207, 207, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.quote-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.quote-portrait {
  flex-shrink: 0;
  width: 220px;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.quote-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.quote-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 207, 207, 0.2);
  border-radius: 8px;
}

.quote-content blockquote {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 24px;
  position: relative;
}

.quote-content blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent-teal);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
  line-height: 1;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.quote-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--gradient-section);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.about-image img {
  width: 100%;
  height: auto;
  filter: brightness(0.85) saturate(1.1);
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 207, 207, 0.1);
  border-radius: 12px;
}

.about-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(62, 207, 207, 0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.about-text .section-description {
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(62, 207, 207, 0.1);
  border-radius: 8px;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.stat-item:hover {
  border-color: rgba(62, 207, 207, 0.3);
  background: rgba(62, 207, 207, 0.05);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  color: var(--accent-teal);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Expertise Section ---------- */
.expertise-section {
  background: var(--bg-secondary);
  position: relative;
}

.expertise-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 207, 0.2), transparent);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.expertise-card {
  padding: 40px 32px;
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.expertise-card:hover {
  border-color: rgba(62, 207, 207, 0.15);
  background: rgba(62, 207, 207, 0.03);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(62, 207, 207, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--accent-teal);
  transition: all var(--transition-base);
}

.expertise-card:hover .expertise-icon {
  background: rgba(62, 207, 207, 0.15);
  box-shadow: 0 0 24px rgba(62, 207, 207, 0.15);
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.expertise-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(62, 207, 207, 0.2);
  border-radius: 20px;
  color: var(--accent-teal);
  background: rgba(62, 207, 207, 0.05);
}

/* ---------- Experience Timeline ---------- */
.experience-section {
  background: var(--gradient-section);
  position: relative;
}

.timeline {
  margin-top: 60px;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-teal), rgba(62, 207, 207, 0.1));
}

.timeline-item {
  position: relative;
  padding: 0 0 60px 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -44px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 12px rgba(62, 207, 207, 0.4);
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(62, 207, 207, 0.3);
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-item p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- Skills / Competencies ---------- */
.skills-section {
  background: var(--bg-secondary);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.skill-category h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-bar-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-bar-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}

.skill-bar-percent {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-teal);
  letter-spacing: 0.05em;
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  width: 0%;
  transition: width 1.5s var(--ease-out-expo);
}


/* ---------- Projects / Highlights ---------- */
.projects-section {
  background: var(--gradient-section);
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.project-card {
  background: var(--surface-glass);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card:hover {
  border-color: rgba(62, 207, 207, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(62, 207, 207, 0.15), rgba(78, 142, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-image-gradient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Placeholder Image Styles ---------- */
.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px dashed rgba(62, 207, 207, 0.25);
}

.placeholder-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(10, 14, 26, 0.8);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.project-image-icon {
  font-size: 48px;
  opacity: 0.4;
}

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

.project-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(62, 207, 207, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: var(--surface-glass);
  transition: all var(--transition-base);
}

.cert-item:hover {
  border-color: rgba(212, 168, 83, 0.2);
  background: rgba(212, 168, 83, 0.03);
}

.cert-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-gold);
}

.cert-info h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- Contact Section ---------- */
.contact-section {
  position: relative;
  background: var(--gradient-section);
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(62, 207, 207, 0.05), transparent);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(62, 207, 207, 0.08);
  border: 1px solid rgba(62, 207, 207, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
}

.contact-info-text a {
  color: var(--accent-teal);
  transition: color var(--transition-base);
}

.contact-info-text a:hover {
  color: var(--text-primary);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  transition: all var(--transition-base);
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(62, 207, 207, 0.4);
  background: rgba(62, 207, 207, 0.03);
  box-shadow: 0 0 24px rgba(62, 207, 207, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
}

.form-submit {
  align-self: flex-start;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 0;
}

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

.footer-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

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

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.active a {
    font-size: 18px;
  }

  .about-grid,
  .skills-wrapper,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-inner {
    flex-direction: column;
    text-align: center;
  }

  .quote-content blockquote::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {

  .section-container,
  .section-wide {
    padding: 0 24px;
  }

  .nav {
    padding: 16px 24px;
  }

  .expertise-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 64px);
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .quote-portrait {
    width: 160px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}