/* =========================================================
   Charulika Sharma — Editorial Portfolio
   Palette: Paper & Ink  /  Type: Libre Baskerville + IBM Plex
   ========================================================= */

:root {
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --paper-3: #e2ddd1;
  --ink: #0d0d0d;
  --ink-2: #2d2d2d;
  --ink-3: #5a564f;
  --rule: #d6d1c4;
  /* --accent: #b8442a;        burnt sienna — one bold accent */
  --accent-soft: #f0d9cf;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .55;
  mix-blend-mode: multiply;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; background: var(--paper);
  z-index: 9999; display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-wrapper { text-align: center; font-family: var(--serif); }
.loader-wrapper h3 { font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 18px; color: var(--ink); }
.loader-ring {
  width: 38px; height: 38px; margin: 0 auto;
  border: 1px solid var(--rule); border-top-color: var(--ink);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--ink);
  z-index: 9998;
  transition: width .1s linear;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--rule); }


.header{
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-around;

}
.logo-wrapper{
    position:relative;
    z-index:2;
    padding:12px 0;
}

.logo {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.01em;
}
.logo::after { content: " ●"; color: var(--accent); }

.nav-menu { display: flex; gap: 38px; list-style: none; }
.nav-menu a {
  font-family: var(--mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-2); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width .35s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; position: relative;
}
.mobile-menu-btn span {
  display: block; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform .3s var(--ease), opacity .3s;
}
.mobile-menu-btn.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2){ opacity: 0; }
.mobile-menu-btn.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (Split Screen) ---------- */
.hero {
  padding: 60px 0 100px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero-grid {
  display: grid; 
  grid-template-columns: 1.05fr 0.95fr; 
  gap: 80px;
  align-items: center; min-height: 78vh;
}
.hero-content { position: relative; }
.hero-tag {
  font-family: var(--mono);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ink-3); display: inline-block; margin-bottom: 32px;
  padding-left: 36px; position: relative;
}
.hero-tag::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 24px; height: 1px; background: var(--ink);
}
.hero h1 { margin-bottom: 34px; }
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--accent);
}
.hero-content > p {
  font-size: 1.05rem; max-width: 520px; margin-bottom: 44px; color: var(--ink-2);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* portrait frame */
.hero-image {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.hero-image::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--ink);
  z-index: 2; pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-image img {
  width: 100%; height: 100%; object-fit:cover;
  /* x: 130px; y: 130px; */
  /* padding-right: 30%; */
  filter: grayscale(20%) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.hero-image:hover img { transform: scale(1.03); }
.hero-image .img-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 8rem; color: var(--ink);
  letter-spacing: -0.04em;
}
.hero-image .img-meta {
  position: absolute; left: 22px; bottom: 22px; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink);
  background: var(--paper); padding: 6px 10px;
}

/* marquee under hero */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0; overflow: hidden;
  background: var(--paper);
}
.marquee-track {
  display: flex; gap: 64px; white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif); font-style: italic;
  font-size: 1.5rem; color: var(--ink-2);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after {
  content: "✦"; color: var(--accent); font-style: normal; font-size: 1rem;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Buttons ---------- */
.btn , .filter-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  cursor: pointer; transition: all .3s var(--ease);
  border: 1px solid var(--ink);
  position: relative; overflow: hidden;
}
.btn::after {
  content: "→"; font-family: var(--sans); font-size: 14px;
  transition: transform .3s var(--ease);
}
.btn :hover::after { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; position: relative; }
@media (max-width:1024px){
  .section{
    padding: 40px 0;
  }
}
.section + .section { border-top: 1px  solid var(--rule); }
.section-header {
  display: flex; grid-template-columns: 1fr 2fr; gap: 60px;
  align-items: end; margin-bottom: 80px;
}
.section-header span { /* eyebrow */
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 12px;
}
.section-header span::before {
  content: "0" counter(section, decimal-leading-zero); counter-increment: section;
  font-family: var(--serif); font-style: italic;
  font-size: 1.4rem; color: var(--accent); letter-spacing: 0;
}
body { counter-reset: section; }
.section-header h2 { max-width: 720px; }

/* ---------- Stats ---------- */
.stats {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  padding: 30px 28px; border-right: 1px solid var(--rule);
  background: transparent !important; border-radius: 0 !important;
  backdrop-filter: none !important;
}
.stat-card:last-child { border-right: none; }
.stat-card h3 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.stat-card h3::after { content: "+"; color: var(--accent); font-size: 0.5em; vertical-align: top; margin-left: 4px; }
.stat-card p {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-3);
}

/* ---------- Cards / Glass (flattened to editorial) ---------- */
.glass-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 36px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  position: relative;
}
.glass-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

/* ---------- Expertise ---------- */
.expertise-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}
.expertise-card {
  padding: 48px 40px;
  border: none !important;
  border-right: 1px solid var(--rule) !important;
  border-bottom: 1px solid var(--rule) !important;
  background: var(--paper) !important;
  border-radius: 0 !important;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .4s var(--ease);
}
.expertise-card:nth-child(2n) { border-right: none !important; }
.expertise-card:nth-last-child(-n+2) { border-bottom: none !important; }
.expertise-card:hover { background: var(--paper-2) !important; transform: none; }
.expertise-card i {
  font-size: 1.4rem; color: var(--accent);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--rule);
}
.expertise-card h3 { font-size: 1.4rem; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative; padding-left: 40px;
}


.timeline-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 10px; 
  align-items: start; position: relative;
}

.timeline-year {
  font-size: 1.5rem; color: var(--accent); line-height: 1;
}
.timeline-item .glass-card { padding: 28px 32px; }


.glass-card1{
  padding: 40px;
}

/* ---------- CTA ---------- */
.cta-section { padding: 140px 0; }
.cta-card {
  padding: 90px 60px !important;
  text-align: center; background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper);
}
.cta-card h2 { color: var(--paper); max-width: 780px; margin: 0 auto 24px; }
.cta-card p { color: rgba(245,243,238,0.75); max-width: 560px; margin: 0 auto 40px; }
.cta-card .btn-primary {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.cta-card .btn-primary:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: var(--paper); padding: 80px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 60px;
  align-items: end; padding-bottom: 50px;
  border-bottom: 1px solid rgba(245,243,238,0.15);
}
.footer h3 { color: var(--paper); font-size: 2rem; margin-bottom: 16px; }
.footer p { color: rgba(245,243,238,0.7); font-size: .95rem; }
.social-links { display: flex; gap: 14px; justify-content: flex-end; }
.social-links a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(245,243,238,0.25); color: var(--paper);
  transition: all .3s var(--ease);
}
.social-links a:hover { background: var(--paper); color: var(--ink); }
.copyright {
  text-align: center; padding-top: 30px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(245,243,238,0.5);
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .3s var(--ease);
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 100px 0 10px; border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); margin-bottom: 24px; }
.page-hero p { max-width: 640px; font-size: 1.05rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }




.gallery-filters{
  .btn-outline{
    font-size: 0.8rem;
    padding: 10px;
  }
}

/*------------- Galleryy---------- */
.gallery-card {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;

    width: 100%;
    max-width: 1800px;
    margin: auto;
    padding-bottom: 10vw ;
    box-sizing: border-box;
    padding-top: 20px;
} 

.gallery-item {
    overflow: hidden;
    /* border-radius: 6px; */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Left large image */
.large {
    grid-row: 1 / 3;
}

.gallery-card2 {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    /* grid-template-rows: 1fr 1fr; */
    gap: 20px;

    width: 100%;
    max-width: 1800px;
    margin: auto;
    padding-bottom: 5vw ; 
    box-sizing: border-box;
    padding-top: 20px;
} 


/* Left large image */
.left1 {
    grid-row: 1 / 3;
}
.right1{
  grid-row: 1 / 3;

}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-image { max-width: 480px; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  /* .stats-grid { grid-template-columns: repeat(1fr, fr); } */
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .social-links { justify-content: flex-start; }

  /* -------------- */
  /* .container { padding: 0 22px; } */
  /* .nav-menu {
    position: fixed;
    inset: 78px 0 0 0;
    flex-direction: column; 
    gap: 30px;
    background: var(--paper); 
    padding: 60px 32px;
    transform: translateX(100%); 
    transition: transform .4s var(--ease);
    border-top: 1px solid var(--rule);
    color: black;
    
  }
  .nav-menu.active { 
    height: 100vh;
    transform: translateX(0); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    background-color: rgb(170, 166, 166);
  } */

  .header{
    display: flex;
    flex-direction: column;
  }
  .nav-menu {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;

    justify-content: center;
    gap: 16px; 
    padding-bottom: 8px ; 
    color: black;
    border-radius: 20px;
    
  }
  .navbar{
    display: flex;
    flex-direction: column;
    padding: 0px; 
  }
  .logo-wrapper{
    display:flex;
    justify-content:center;
    padding-top:8px; 
  }
  .navbar{
    transition:
        transform .35s ease,
        opacity .35s ease;
  }

  .navbar.hide{
      transform:translateY(-20px);
      opacity:0;
      pointer-events:none;
  }


  .nav-menu a { font-size: 13px;}
  /* .mobile-menu-btn { display: block; } */
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { border-right: none !important; border-bottom: 1px solid var(--rule) !important; }
  .expertise-card:last-child { border-bottom: none !important; }
  .stats-grid { grid-template-columns: 2fr 2fr ;  }  
  .stat-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .stat-card:last-child { border-bottom: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 16px; }
  .cta-card { padding: 60px 24px !important; }

  .gallery-card{
    display: flex;
    flex-direction: column;
  }
  
}


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

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

.contact-item i {
  width: 55px;
  height: 55px;
  background: #646565;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-content h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-content a {
  color: inherit;
  text-decoration: none;
}

.contact-content a:hover {
  color: #00bcd4;
}