/* ============================================================
   CHETHANA S M PORTFOLIO
   Premium Luxury Portfolio — Version 2.0 (consolidated)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;700;800&display=swap');

:root{
  --primary:#d4af37;
  --primary-light:#ffd86b;
  --dark:#06070b;
  --dark2:#0d1018;
  --dark3:#131926;
  --glass:rgba(255,255,255,.06);
  --white:#ffffff;
  --gray:#b5b5b5;
  --border:rgba(255,255,255,.08);
  --radius:25px;
  --shadow:0 20px 60px rgba(0,0,0,.45);
  --goldShadow:0 0 40px rgba(212,175,55,.35);
  --transition:.4s ease;
}

/* ============================================================ */
/* RESET & BASE */
/* ============================================================ */

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

html{
  scroll-behavior:smooth;
}

body{
  background:linear-gradient(135deg,#06070b,#111827,#06070b);
  font-family:'Poppins',sans-serif;
  color:var(--white);
  overflow-x:hidden;
  line-height:1.6;
}

body::before{
  content:"";
  position:fixed;
  width:900px;
  height:900px;
  background:radial-gradient(circle,rgba(212,175,55,.18),transparent 70%);
  top:-300px;
  right:-300px;
  z-index:-1;
  animation:aurora 12s infinite alternate;
}

body::after{
  content:"";
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(212,175,55,.06), transparent),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.04), transparent);
  pointer-events:none;
  z-index:-2;
}

@keyframes aurora{
  0%{ transform:translateY(0px); }
  100%{ transform:translateY(120px); }
}

::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:#07080b; }
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#d4af37,#ffd86b);
  border-radius:50px;
}

::selection{ background:var(--primary); color:black; }

a{
  text-decoration:none;
  color:var(--white);
  transition:.35s;
}

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

section{
  padding:120px 8%;
  position:relative;
}

/* ============================================================ */
/* HEADER / NAVBAR */
/* ============================================================ */

header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:22px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:999;
  backdrop-filter:blur(25px);
  background:rgba(5,5,5,.30);
  border-bottom:1px solid rgba(255,255,255,.05);
  transition:background .3s;
}

header.sticky{
  background:rgba(6,7,11,.95);
  box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.logo{
  font-size:34px;
  font-weight:700;
  letter-spacing:3px;
  font-family:'Playfair Display',serif;
}

.logo span{ color:var(--primary); }

nav{ display:flex; gap:40px; }

nav a{
  font-size:15px;
  font-weight:500;
  letter-spacing:1px;
  position:relative;
}

nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:2px;
  background:var(--primary);
  transition:.35s;
}

nav a:hover::after, nav a.active::after{ width:100%; }
nav a:hover, nav a.active{ color:var(--primary); }

/* ============================================================ */
/* BUTTONS */
/* ============================================================ */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:16px 40px;
  border-radius:60px;
  font-weight:600;
  letter-spacing:1px;
  background:linear-gradient(135deg,#d4af37,#f2cf61);
  color:black;
  border:none;
  box-shadow:var(--goldShadow);
  transition:var(--transition);
  cursor:pointer;
  font-size:15px;
  position:relative;
  overflow:hidden;
}

.btn:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 60px rgba(212,175,55,.45);
}

.btn-outline{
  background:none;
  border:2px solid var(--primary);
  color:var(--white);
}

.btn-outline:hover{ background:var(--primary); color:black; }

/* ============================================================ */
/* HERO */
/* ============================================================ */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:80px;
  position:relative;
  overflow:hidden;
  padding-top:160px;
}

.hero::before{
  content:"";
  position:absolute;
  width:900px;
  height:900px;
  background:radial-gradient(circle, rgba(212,175,55,.18), transparent);
  right:-300px;
  top:-200px;
  animation:rotateGlow 18s linear infinite;
  z-index:-1;
}

@keyframes rotateGlow{ 100%{ transform:rotate(360deg); } }

.hero-content{ max-width:650px; }

.hero h4{
  font-size:18px;
  font-weight:500;
  color:var(--primary);
  letter-spacing:4px;
  margin-bottom:20px;
}

.hero h1{
  font-size:clamp(42px, 7vw, 96px);
  line-height:1;
  font-family:'Playfair Display',serif;
  margin-bottom:18px;
}

.hero h2{
  font-size:clamp(22px, 3vw, 36px);
  font-weight:300;
  margin-bottom:25px;
  color:#e8e8e8;
}

.hero p{
  font-size:18px;
  line-height:1.9;
  color:#bdbdbd;
  max-width:620px;
  margin-bottom:40px;
}

.hero-image{ position:relative; }

.hero-image::before{
  content:"";
  position:absolute;
  width:480px;
  height:480px;
  background:radial-gradient(circle, rgba(212,175,55,.35), transparent 70%);
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  filter:blur(20px);
  animation:pulse 4s infinite;
}

.hero-image img{
  width:460px;
  max-width:100%;
  position:relative;
  z-index:2;
  border-radius:25px;
  filter:drop-shadow(0 20px 60px rgba(0,0,0,.6));
}

@keyframes pulse{ 50%{ transform:translate(-50%,-50%) scale(1.08); } }

.portfolio-hero{ padding-top:200px; padding-bottom:60px; }

/* ============================================================ */
/* GLASS CARD */
/* ============================================================ */

.glass{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:var(--glass);
  border:1px solid var(--border);
  backdrop-filter:blur(25px);
  border-radius:30px;
  box-shadow:var(--shadow);
}

.glass::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:220px 220px;
  opacity:.05;
  mix-blend-mode:overlay;
  animation:glassGrain 22s linear infinite;
  pointer-events:none;
}

@keyframes glassGrain{
  0%{ transform:translate(0,0); }
  100%{ transform:translate(-220px,-220px); }
}

/* ============================================================ */
/* STATS */
/* ============================================================ */

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

.stat{ padding:35px; text-align:center; }
.stat h2{ font-size:42px; color:var(--primary); margin-bottom:10px; }
.stat p{ color:#d3d3d3; font-size:14px; text-transform:uppercase; letter-spacing:1px; }

/* ============================================================ */
/* SECTION TITLES */
/* ============================================================ */

.section-title{
  font-size:clamp(34px, 5vw, 60px);
  font-family:'Playfair Display', serif;
  margin-bottom:20px;
  text-align:center;
}

.section-title span{ color:var(--primary); }

.section-sub{
  font-size:18px;
  color:#bfbfbf;
  max-width:700px;
  margin:0 auto 60px;
  line-height:1.8;
  text-align:center;
}

/* ============================================================ */
/* CARDS / GRID */
/* ============================================================ */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:35px;
}

.card{
  padding:40px;
  background:#101521;
  border-radius:28px;
  transition:.4s;
  overflow:hidden;
  position:relative;
  border:1px solid rgba(255,255,255,.05);
  text-align:center;
}

.card img{
  border-radius:18px;
  margin-bottom:20px;
}

.card:hover{
  transform:translateY(-15px);
  border-color:var(--primary);
  box-shadow:0 25px 80px rgba(0,0,0,.45), 0 0 30px rgba(212,175,55,.18);
}

.card h3{ font-size:24px; margin:15px 0; }
.card p{ line-height:1.8; color:#c8c8c8; }

.testimonial{ text-align:center; color:var(--primary); font-size:20px; }
.testimonial p{ color:#e0e0e0; font-size:16px; margin-top:15px; line-height:1.8; }

/* ============================================================ */
/* MARQUEE */
/* ============================================================ */

.marquee{
  display:flex;
  gap:50px;
  animation:marquee 30s linear infinite;
  white-space:nowrap;
}

.marquee div{
  font-size:22px;
  font-weight:600;
  color:#8a8a8a;
}

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

/* ============================================================ */
/* FOOTER (secondary pages) */
/* ============================================================ */

footer{
  padding:80px 8%;
  background:#08090d;
  border-top:1px solid rgba(255,255,255,.05);
  text-align:center;
}

footer h2{
  font-size:clamp(28px, 4vw, 42px);
  margin-bottom:25px;
  font-family:'Playfair Display', serif;
}

footer p{ color:#bdbdbd; }

.footer-menu-inline{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:30px;
  margin-bottom:25px;
}

.footer-menu-inline a{ color:#d7d7d7; }
.footer-menu-inline a:hover{ color:var(--primary); }

/* ============================================================ */
/* PORTFOLIO */
/* ============================================================ */

.portfolio-filter{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:20px;
  margin:20px 0 50px;
}

.filter-btn{
  padding:14px 28px;
  border-radius:40px;
  background:#111827;
  color:var(--white);
  border:1px solid rgba(255,255,255,.05);
  cursor:pointer;
  transition:.4s;
  font-size:15px;
  font-family:inherit;
}

.filter-btn:hover, .filter-btn.active{ background:var(--primary); color:black; }

.portfolio-card{ border-radius:25px; overflow:hidden; position:relative; }
.portfolio-card img{ width:100%; height:420px; object-fit:cover; }

.overlay{
  position:absolute;
  bottom:-100%;
  left:0;
  width:100%;
  padding:40px;
  background:linear-gradient(transparent, rgba(0,0,0,.95));
  transition:.45s;
}

.portfolio-card:hover .overlay{ bottom:0; }
.overlay h3{ font-size:28px; margin-bottom:15px; }
.overlay p{ margin-bottom:25px; line-height:1.8; }

/* ============================================================ */
/* MASONRY GALLERY */
/* ============================================================ */

.gallery-grid{
  columns:4 280px;
  column-gap:18px;
  margin-top:40px;
}

.gallery-item{
  position:relative;
  margin-bottom:18px;
  overflow:hidden;
  border-radius:22px;
  break-inside:avoid;
  cursor:pointer;
  transition:.4s;
}

.gallery-item img{
  width:100%;
  display:block;
  transition:.5s;
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,.4);
}

.gallery-item:hover{ transform:translateY(-8px); }
.gallery-item:hover img{ transform:scale(1.08); }

.gallery-caption{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  padding:25px;
  background:linear-gradient(transparent, rgba(0,0,0,.95));
  font-size:18px;
  opacity:0;
  transition:.4s;
}

.gallery-item:hover .gallery-caption{ opacity:1; }

.gallery-item.large img{ height:550px; object-fit:cover; }
.gallery-item.tall img{ height:650px; object-fit:cover; }
.gallery-item.wide img{ height:350px; object-fit:cover; }

.gallery-item.is-hidden{ display:none; }

/* ============================================================ */
/* BLOG */
/* ============================================================ */

.blog-search{
  display:flex;
  gap:20px;
  padding:30px;
  margin-bottom:60px;
}

.blog-search input{
  flex:1;
  padding:18px;
  background:#101521;
  border:none;
  border-radius:50px;
  color:var(--white);
  font-size:16px;
}

.featured-blog{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  padding:40px;
  margin-bottom:20px;
}

.featured-image img{ width:100%; height:100%; object-fit:cover; border-radius:25px; }
.featured-content{ display:flex; flex-direction:column; justify-content:center; }

.tag{
  display:inline-block;
  padding:8px 16px;
  background:var(--primary);
  color:#000;
  border-radius:30px;
  font-size:14px;
  margin-bottom:20px;
  font-weight:600;
}

.meta{ display:flex; gap:20px; margin:25px 0; color:#aaa; }

.topic-pills{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
}

.topic-filter{
  cursor:pointer;
  font-family:inherit;
  font-size:15px;
  font-weight:500;
  letter-spacing:.3px;
  color:var(--white);
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  padding:14px 26px;
  border-radius:40px;
  transition:var(--transition);
}

.topic-filter:hover{
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-3px);
}

.topic-filter.active{
  background:var(--primary);
  border-color:var(--primary);
  color:#000;
  font-weight:600;
  box-shadow:var(--goldShadow);
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:35px;
}

.blog-card{ overflow:hidden; border-radius:24px; transition:.4s; }
.blog-card:hover{ transform:translateY(-10px); }
.blog-card img{ width:100%; height:220px; object-fit:cover; }
.blog-card.is-hidden{ display:none; }

.blog-content{ padding:30px; text-align:left; }
.blog-content h3{ margin:15px 0; font-size:24px; }
.blog-content p{ color:#bcbcbc; line-height:1.8; margin-bottom:20px; }
.blog-content a{ color:var(--primary); font-weight:600; }

.newsletter{ padding:60px; text-align:center; }

.newsletter form{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:30px;
  flex-wrap:wrap;
}

.newsletter input{
  padding:18px;
  width:380px;
  max-width:100%;
  background:#101521;
  border:none;
  border-radius:40px;
  color:var(--white);
}

/* ============================================================ */
/* CONTACT PAGE */
/* ============================================================ */

.contact-container{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:40px;
}

.contact-info, .contact-form{ padding:45px; border-radius:30px; }

.contact-card{ padding:20px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.contact-card h3{ margin-bottom:10px; color:var(--primary); }
.contact-card p{ color:#bfbfbf; line-height:1.8; }

.contact-form form{ display:grid; gap:20px; margin-top:30px; }

.contact-form input, .contact-form textarea{
  padding:18px;
  background:#101521;
  border:none;
  border-radius:15px;
  color:var(--white);
  font-size:16px;
  font-family:inherit;
}

.contact-form textarea{ resize:none; }

.social-icons{ display:flex; flex-wrap:wrap; gap:15px; margin-top:30px; }

.social-icons a{
  padding:12px 18px;
  border-radius:30px;
  background:#101521;
  transition:.35s;
}

.social-icons a:hover{ background:var(--primary); color:black; }

/* This pill background stays dark in both themes on purpose,
   so its text must stay light regardless of theme. */
body.light .social-icons a{ color:#fff; }
body.light .social-icons a:hover{ color:#000; }

.faq{ display:grid; gap:25px; }
.faq-item{ padding:35px; }
.faq-item h3{ margin-bottom:15px; color:var(--primary); }
.faq-item p{ line-height:1.8; color:#cfcfcf; }

.map-box{ overflow:hidden; border-radius:30px; }
.map-box iframe{ width:100%; height:280px; border:0; }

.cta{ padding:70px; text-align:center; }
.cta h2{ font-size:clamp(30px, 4vw, 48px); margin-bottom:20px; }
.cta p{ max-width:700px; margin:0 auto 35px; color:#bdbdbd; line-height:1.8; }

/* ============================================================ */
/* RESUME PAGE */
/* ============================================================ */

.resume-header{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:40px;
  padding:50px;
  align-items:center;
}

.resume-photo img{
  width:220px;
  height:220px;
  object-fit:cover;
  border-radius:50%;
  border:4px solid var(--primary);
  box-shadow:0 0 30px rgba(212,175,55,.3);
}

.resume-contact{ display:flex; flex-wrap:wrap; gap:20px; margin-top:25px; color:#bdbdbd; }

.timeline{ display:grid; gap:30px; }
.timeline-item{ padding:35px; position:relative; }
.timeline-item h3{ margin-bottom:10px; color:var(--white); }
.timeline-item h4{ color:var(--primary); margin-bottom:10px; }
.timeline-item span{ display:block; margin-bottom:15px; color:#aaa; font-size:14px; }

.skills{ display:grid; gap:25px; margin-bottom:30px; }
.skill-head{ display:flex; justify-content:space-between; margin-bottom:8px; font-weight:600; }
.skill-bar{ height:10px; background:#1c2333; border-radius:50px; overflow:hidden; }

.skill-progress{
  height:100%;
  width:0;
  background:linear-gradient(90deg,#d4af37,#ffd76c);
  border-radius:50px;
  transition:width 1.4s ease;
}

.tool-tags{ display:flex; flex-wrap:wrap; gap:15px; }
.tool-tags .tag{ background:#101521; color:var(--primary); border:1px solid var(--border); }

/* ============================================================ */
/* CINEMATIC FOOTER (homepage) */
/* ============================================================ */

.cinematic-footer{
  position:relative;
  min-height:100vh;
  padding:120px 8% 60px;
  background:#040404;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.gold-glow{
  position:absolute;
  width:900px;
  height:900px;
  background:radial-gradient(circle, rgba(212,175,55,.18), transparent 70%);
  top:-350px;
  right:-250px;
  filter:blur(70px);
  animation:rotateGlow 18s linear infinite;
}

.noise{
  position:absolute;
  inset:0;
  opacity:.04;
  pointer-events:none;
}

.footer-content{ max-width:950px; margin:auto; text-align:center; z-index:5; }

.footer-small{
  letter-spacing:5px;
  font-size:13px;
  color:var(--primary);
  margin-bottom:35px;
  text-transform:uppercase;
}

.footer-content h1{
  font-size:clamp(46px, 9vw, 110px);
  font-family:'Playfair Display', serif;
  line-height:.95;
  margin-bottom:40px;
}

.footer-content span{ color:var(--primary); }

.footer-content p{
  font-size:clamp(16px, 2vw, 22px);
  line-height:2;
  color:#bdbdbd;
  max-width:850px;
  margin:auto;
}

.footer-buttons{
  display:flex;
  justify-content:center;
  gap:30px;
  margin-top:70px;
  flex-wrap:wrap;
}

.footer-primary{
  padding:22px 55px;
  background:var(--primary);
  color:black;
  font-weight:700;
  border-radius:60px;
  transition:.4s;
  display:inline-block;
}

.footer-primary:hover{ transform:translateY(-10px); box-shadow:0 25px 60px rgba(212,175,55,.35); }

.footer-secondary{
  padding:22px 55px;
  border:2px solid var(--primary);
  border-radius:60px;
  color:var(--white);
  transition:.4s;
  display:inline-block;
}

.footer-secondary:hover{ background:var(--primary); color:black; }

.footer-bottom{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:60px;
  margin-top:100px;
  align-items:flex-start;
  z-index:10;
}

.footer-bottom h2{ font-size:40px; font-family:'Playfair Display', serif; }
.footer-bottom span{ color:var(--primary); }
.footer-bottom p{ color:#9b9b9b; line-height:2; margin-top:15px; }

.footer-menu, .footer-social{ display:flex; flex-direction:column; gap:18px; }
.footer-menu a, .footer-social a{ font-size:17px; color:#d7d7d7; transition:.35s; }
.footer-menu a:hover, .footer-social a:hover{ color:var(--primary); padding-left:10px; }

.footer-watermark{
  position:absolute;
  font-size:18vw;
  font-weight:900;
  top:45%;
  left:50%;
  transform:translate(-50%,-50%);
  opacity:.03;
  letter-spacing:25px;
  pointer-events:none;
  font-family:'Poppins', sans-serif;
  white-space:nowrap;
}

.copyright{
  margin-top:70px;
  padding-top:40px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:#777;
  font-size:15px;
}

/* ============================================================ */
/* UTILITY: LOADER, CURSOR, THEME TOGGLE, SOCIAL BAR, WHATSAPP */
/* ============================================================ */

.loader-wrapper{
  position:fixed;
  top:0; left:0;
  width:100%; height:100vh;
  background:#050505;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:999999;
  transition:opacity .4s;
}

.loader-logo{
  font-size:clamp(38px, 6vw, 65px);
  font-family:'Playfair Display', serif;
  letter-spacing:12px;
  color:var(--primary);
  animation:pulse 2s infinite;
}

.cursor{
  position:fixed;
  width:10px; height:10px;
  background:var(--primary);
  border-radius:50%;
  pointer-events:none;
  z-index:999999;
}

.cursor2{
  position:fixed;
  width:45px; height:45px;
  border:1px solid var(--primary);
  border-radius:50%;
  pointer-events:none;
  transition:.08s;
  z-index:999998;
}

.theme-toggle{
  position:fixed;
  right:30px;
  top:100px;
  width:60px; height:60px;
  border-radius:50%;
  background:var(--primary);
  border:none;
  cursor:pointer;
  font-size:22px;
  z-index:998;
}

body.light{ background:#f6f6f6; color:#222; }
body.light header{ background:rgba(255,255,255,.85); }
body.light .card, body.light .glass{ background:rgba(0,0,0,.04); color:#222; }

.social-bar{
  position:fixed;
  left:40px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:20px;
  z-index:500;
}

.social-bar a{
  width:46px; height:46px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#101521;
  border-radius:50%;
  color:var(--white);
  font-size:13px;
}

.social-bar a:hover{ background:var(--primary); color:black; }

.whatsapp{
  position:fixed;
  bottom:30px;
  left:30px;
  width:60px; height:60px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:26px;
  color:white;
  box-shadow:0 15px 35px rgba(0,0,0,.3);
  z-index:500;
}

.gradient{
  background:linear-gradient(90deg,#ffd76c,#d4af37,#ffffff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Scroll progress + back-to-top */

.progress-bar{
  position:fixed;
  top:0; left:0;
  height:4px;
  width:0;
  background:var(--primary);
  z-index:99999;
}

.back-top{
  position:fixed;
  right:30px;
  bottom:30px;
  width:55px; height:55px;
  border:none;
  border-radius:50%;
  background:var(--primary);
  color:#000;
  font-size:22px;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:500;
}

.back-top.show{ opacity:1; pointer-events:auto; }

.mouse-glow{
  position:fixed;
  width:300px; height:300px;
  border-radius:50%;
  pointer-events:none;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(212,175,55,.12), transparent 70%);
  z-index:-1;
}

/* ============================================================ */
/* PRINT */
/* ============================================================ */

@media print{
  header, footer, .whatsapp, .social-bar, .cursor, .cursor2, .theme-toggle, .back-top{ display:none; }
  body{ background:white; color:black; }
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */

@media(max-width:1100px){
  .hero{ flex-direction:column; text-align:center; padding-top:150px; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .contact-container{ grid-template-columns:1fr; }
  .featured-blog{ grid-template-columns:1fr; }
  .resume-header{ grid-template-columns:1fr; text-align:center; }
  .resume-photo{ display:flex; justify-content:center; }
  .resume-contact{ justify-content:center; }
  .footer-bottom{ grid-template-columns:1fr; text-align:center; }
  .footer-menu, .footer-social{ align-items:center; }
}

@media(max-width:768px){
  header{ padding:18px 6%; }
  nav{ display:none; }
  .hero h1{ font-size:48px; }
  .hero-image img{ width:280px; }
  section{ padding:90px 6%; }
  .social-bar{ display:none; }
  .gallery-grid{ columns:2 220px; }
}

/* ============================================================ */
/* CASE STUDIES */
/* ============================================================ */

.case-studies-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
  margin-top:10px;
}

.case-study-card{
  --cs-accent:var(--primary);
  position:relative;
  padding:38px 34px 32px;
  background:#101521;
  border:1px solid rgba(255,255,255,.05);
  border-radius:22px;
  overflow:hidden;
  text-align:left;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
}

.case-study-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:5px;
  background:var(--cs-accent);
}

.case-study-card:hover{
  transform:translateY(-10px);
  border-color:var(--cs-accent);
  box-shadow:0 25px 70px rgba(0,0,0,.4);
}

.case-study-card .cs-tag{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cs-accent);
  margin-bottom:16px;
}

.case-study-card h3{
  font-family:'Playfair Display', serif;
  font-size:26px;
  margin-bottom:6px;
}

.case-study-card .cs-role{
  font-size:13px;
  color:#9a9a9a;
  margin-bottom:16px;
}

.case-study-card p{
  font-size:15px;
  color:#c8c8c8;
  line-height:1.7;
  margin-bottom:24px;
  flex-grow:1;
}

.case-study-card .cs-link{
  align-self:flex-start;
  padding:12px 28px;
  font-size:13px;
  border-radius:60px;
}

@media(max-width:640px){
  .case-study-card{ padding:30px 26px 26px; }
}


/* ============================================================
   VISUAL THEORY — GLOBAL NAV + THEME FINAL OVERRIDES
   Applies to all shared-layout pages. Index footer remains untouched.
============================================================ */

.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:18px 8%;
  z-index:9999;
  display:flex;
  align-items:center;
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  background:rgba(5,5,5,.72);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.site-header .container{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.site-header .logo{ color:var(--white); white-space:nowrap; }

.site-header .main-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:28px;
}

.site-header .main-nav a{ white-space:nowrap; }

.site-header .theme-toggle,
header .theme-toggle{
  position:static !important;
  top:auto !important;
  right:auto !important;
  width:40px !important;
  height:40px !important;
  min-width:40px;
  margin:0 0 0 4px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  outline:none;
  background:rgba(255,255,255,.08);
  color:var(--primary);
  font-size:17px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
  transition:.3s ease;
  z-index:10000;
}

.site-header .theme-toggle:hover,
header .theme-toggle:hover{
  background:var(--primary);
  color:#08090d;
  transform:rotate(12deg);
}

/* Light theme — consolidated readability pass */
body.light{
  background:linear-gradient(135deg,#fafafa,#f1f1f1,#fafafa) !important;
  color:#171717 !important;
}

body.light::before{
  background:radial-gradient(circle,rgba(212,175,55,.10),transparent 70%);
}

body.light::after{
  background:
    radial-gradient(circle at 20% 20%,rgba(212,175,55,.04),transparent),
    radial-gradient(circle at 80% 70%,rgba(0,0,0,.025),transparent);
}

body.light a{ color:#171717; }
body.light .site-header,
body.light header{
  background:rgba(255,255,255,.88);
  border-bottom-color:rgba(0,0,0,.08);
  box-shadow:0 10px 35px rgba(0,0,0,.06);
}

body.light .site-header .logo,
body.light header .logo{ color:#171717; }

body.light .site-header .main-nav a,
body.light header nav a{ color:#262626; }
body.light .site-header .main-nav a:hover,
body.light .site-header .main-nav a.active,
body.light header nav a:hover,
body.light header nav a.active{ color:#9a7813; }

body.light .site-header .theme-toggle,
body.light header .theme-toggle{
  background:rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.12);
  color:#9a7813;
}

body.light section,
body.light .hero,
body.light .portfolio-hero,
body.light main{ color:#171717; }

body.light h1,
body.light h2,
body.light h3,
body.light h4,
body.light h5,
body.light h6{ color:#171717; }

body.light p,
body.light .section-sub,
body.light .card p,
body.light .testimonial p,
body.light .project-intro,
body.light .project-description,
body.light .article-excerpt,
body.light .article-content,
body.light .blog-loading,
body.light .blog-empty p{
  color:#4d4d4d;
}

body.light .card,
body.light .glass,
body.light .stat{
  background:rgba(255,255,255,.78);
  color:#171717;
  border-color:rgba(0,0,0,.08);
  box-shadow:0 16px 45px rgba(0,0,0,.06);
}

body.light input,
body.light textarea,
body.light select{
  background:#fff;
  color:#171717;
  border-color:rgba(0,0,0,.14);
}

body.light input::placeholder,
body.light textarea::placeholder{ color:#777; }

body.light .filter-btn,
body.light .portfolio-filter .filter-btn{
  background:#fff;
  color:#333;
  border-color:rgba(0,0,0,.12);
}

body.light .filter-btn:hover,
body.light .filter-btn.active{
  background:var(--primary);
  color:#111;
}

body.light .social-bar a{
  background:#fff;
  color:#222;
  border:1px solid rgba(0,0,0,.08);
}

body.light footer:not(.final),
body.light .site-footer{
  background:#f0f0f0;
  color:#171717;
  border-top-color:rgba(0,0,0,.08);
}

/* Homepage's cinematic footer isn't a <footer> tag and has its
   own dramatic dark styling by design — it still needs its own
   light-mode palette rather than inheriting the rule above. */
body.light .cinematic-footer{
  background:#f0f0f0;
}

body.light .footer-content h1,
body.light .footer-bottom h2{
  color:#171717;
}

body.light .footer-content p{
  color:#555;
}

body.light .footer-bottom p{
  color:#666;
}

body.light .footer-secondary{
  color:#171717;
}

body.light .footer-menu a,
body.light .footer-social a{
  color:#333;
}

body.light .footer-menu a:hover,
body.light .footer-social a:hover{
  color:#9a7813;
}

body.light .footer-watermark{
  color:#171717;
}

body.light .copyright{
  color:#666;
  border-top-color:rgba(0,0,0,.08);
}

body.light footer:not(.final) h2,
body.light .site-footer h2{ color:#171717; }
body.light footer:not(.final) p,
body.light .site-footer p{ color:#666; }
body.light .footer-menu-inline a{ color:#444; }
body.light .footer-menu-inline a:hover{ color:#9a7813; }

@media (max-width:900px){
  .site-header{ padding:15px 5%; }
  .site-header .container{ gap:15px; }
  .site-header .main-nav{ gap:16px; }
  .site-header .main-nav a{ font-size:13px; }
}

@media (max-width:700px){
  .site-header{ padding:14px 4%; }
  .site-header .container{ align-items:center; }
  .site-header .logo{ font-size:24px; letter-spacing:2px; }
  .site-header .main-nav{ gap:11px; overflow-x:auto; scrollbar-width:none; }
  .site-header .main-nav::-webkit-scrollbar{ display:none; }
  .site-header .main-nav a{ font-size:11px; letter-spacing:.5px; }
  .site-header .theme-toggle{ width:34px !important; height:34px !important; min-width:34px; font-size:14px; }
  .site-header .container{ min-width:0; }
}


html.light-preload body{
  background:linear-gradient(135deg,#fafafa,#f1f1f1,#fafafa) !important;
  color:#171717 !important;
}

html.light-preload body .site-header,
html.light-preload body header{
  background:rgba(255,255,255,.88) !important;
  border-bottom-color:rgba(0,0,0,.08) !important;
}

html.light-preload body h1,
html.light-preload body h2,
html.light-preload body h3,
html.light-preload body h4,
html.light-preload body h5,
html.light-preload body h6,
html.light-preload body p{
  color:#171717;
}
