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

:root {
  --base-deep: #221f35;
  --base-mid: #353152;
  --base-soft: #3b3561;
  --slate-warm: #6B7280;
  --slate-light: #9CA3AF;
  --graphite: #2A2E35;
  --graphite-soft: #3D424A;
  --ivory: #E5E7EB;
  --ivory-muted: #C9CDD4;
  --silver: #B0B8C4;
  --panel-bg: rgba(31, 29, 44, 0.55);
  --panel-border: rgba(169, 165, 192, 0.08);
  --panel-border-hover : rgba(169, 165, 192, 0.228);
  --silk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--base-deep);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BG ── */
.atmosphere {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--base-deep) 0%, var(--base-mid) 35%, var(--base-mid) 70%, var(--base-deep) 100%);
}


/* ── Nav ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; align-items: center;
  padding: 24px 40px;
  transition: background 0.8s var(--silk-ease), padding 0.8s var(--silk-ease);
}
.top-nav.scrolled {
  /* background: rgba(15, 17, 21, 0.85); */
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 16px 40px;
}
.nav-links { display: flex; gap: 6em; list-style: none; align-items: center; }
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate-warm); text-decoration: none; position: relative; padding: 14px 0 6px;
  transition: color 0.8s var(--silk-ease);
}
.nav-links a::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver);
  transform: translateX(-50%) rotate(45deg) translateY(-8px);
  opacity: 0; transition: transform 0.8s var(--silk-ease), opacity 0.6s var(--silk-ease);
  pointer-events: none;
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { opacity: 0.7; transform: translateX(-50%) rotate(45deg) translateY(0); }
.nav-links a.active { color: var(--ivory-muted); }
.nav-links a.active::after { opacity: 0.4; transform: translateX(-50%) rotate(45deg) translateY(0); }

/* ── Hamburger ── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; padding: 0;
}
.toggle-bar {
  display: block; width: 100%; height: 1.5px; background: var(--ivory);
  position: absolute; left: 0;
  transition: transform 0.6s var(--silk-ease), top 0.6s var(--silk-ease);
}
.toggle-bar:nth-child(1) { top: 6px; }
.toggle-bar:nth-child(2) { top: 16px; }
.nav-toggle.active .toggle-bar:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.active .toggle-bar:nth-child(2) { top: 11px; transform: rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 5;
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--silk-ease), visibility 0.6s var(--silk-ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-inner {
  position: absolute; inset: 0;
  background: rgba(15, 17, 21, 0.94);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 40px 60px; overflow-y: auto;
}
.mobile-menu-links { display: flex; flex-direction: column; flex: 1; justify-content: center; }
.mobile-menu-link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em;
  color: var(--ivory); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(156,163,175,0.06); position: relative;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s var(--silk-ease);
}
.mobile-menu.open .mobile-menu-link {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s var(--silk-ease), transform 0.5s var(--silk-ease), color 0.6s var(--silk-ease);
}
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.open .mobile-menu-link:nth-child(6) { transition-delay: 0.36s; }
.mobile-menu.open .mobile-menu-link:nth-child(7) { transition-delay: 0.42s; }
.mobile-menu-link::before {
  content: attr(data-index); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; color: var(--slate-warm); opacity: 0.4;
  min-width: 24px; font-variant-numeric: tabular-nums;
}
.mobile-menu-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(156,163,175,0.06);
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1; transition: opacity 0.5s var(--silk-ease) 0.45s;
}
.mobile-menu-footer a {
  font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.4; text-decoration: none;
}
body.menu-open { overflow: hidden; }
body.menu-open .top-nav { background: rgba(21, 24, 31, 0.95); backdrop-filter: blur(20px); }


/* ── Side Panels ── */
.side-panel {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 24px 0;
}
.side-panel.left { left: 20px; }

.side-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 9px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--slate-warm); opacity: 0.5;
}
.side-track {
  width: 1px; height: 160px;
  background: rgba(156,163,175,0.06); position: relative; border-radius: 1px;
}
.side-track-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--silver), rgba(176,184,196,0.15));
  border-radius: 1px; transition: height 1.2s var(--silk-ease);
}
.side-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-warm); opacity: 0.15;
  transition: opacity 0.8s var(--silk-ease), transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.side-dot.active {
  opacity: 0.8; background: var(--silver);
  box-shadow: 0 0 12px rgba(176,184,196,0.3); transform: scale(1.3);
}

/* ── Container ── */
.main { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.section { padding: 80px 0; position: relative; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  text-align: center; 
  letter-spacing: -0.04em; line-height: 1.15; color: var(--ivory); margin-bottom: 20px;
}
.section-title strong { font-weight: 600; }

.section-text{
   font-size: 1.2em; font-weight: 400; line-height: 2; 
  color: var(--slate-light);  max-width: 85%;
  padding: 20px 0 40px; margin: auto;
  text-align: center;
} 
.section-center { text-align: center; }

.silk-divider { width: 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--panel-border), transparent); margin: 0 auto; }

.btn-primary {
  display: inline-block; padding: 16px 44px; border-radius: 100px;
  background: linear-gradient(135deg, var(--silver), var(--slate-light));
  color: var(--base-deep); font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.8s var(--silk-ease), box-shadow 0.8s var(--silk-ease);
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 8px 40px rgba(176,184,196,0.18); }
.btn-secondary {
  display: inline-block; padding: 16px 44px; border-radius: 100px; background: transparent;
  color: var(--ivory-muted); font-family: inherit; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--panel-border); cursor: pointer; text-decoration: none;
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease), background 0.8s var(--silk-ease);
}
.btn-secondary:hover { transform: scale(1.02); border-color: rgba(156,163,175,0.2); background: rgba(156,163,175,0.04); }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1.2s var(--silk-ease), transform 1.2s var(--silk-ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 120px 0 80px; position: relative;
}
.hero-grid {
  position: absolute; bottom: 0; left: 50%; height: 80%;
  width: 100vw; transform: translateX(-50%);
  z-index: 0; pointer-events: none;
  --mx: 50%; --my: 50%;
  background-image:
    repeating-linear-gradient(30deg,rgba(25, 71, 150, 0.3) 0px,
    rgba(129, 168, 235, 0.1) 1px,transparent 1px, transparent 40px  ),
  repeating-linear-gradient(150deg,rgba(135, 173, 237, 0.3) 0px,
    rgba(16, 72, 169, 0.08) 1px,transparent 1px,transparent 40px);
  background-size: 120px 120px;
  background-position: center bottom;
  -webkit-mask-image:
    radial-gradient(circle 300px at var(--mx) var(--my), rgba(0,0,0,1) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.4) 100%);
  mask-image:
    radial-gradient(circle 300px at var(--mx) var(--my), rgba(0,0,0,1) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.4) 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}
.hero > *:not(.hero-grid) { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 500;
  letter-spacing: 0.05em; line-height: 1;
  opacity: 0; transform: translateY(24px); 
  font-family: 'jose', sans-serif;
  animation: fadeUp 1.4s var(--silk-ease) 0.4s forwards;
}
.hero-sub {
  font-size: clamp(0.85rem, 1.2vw, 1rem); font-weight: 300; line-height: 1.7;
  color: var(--slate-light); max-width: 65vw; margin: 28px auto 28px;
  opacity: 0; transform: translateY(16px); letter-spacing: 2px;
  animation: fadeUp 1.4s var(--silk-ease) 0.6s forwards;
}
.hero-ctas {
  display: flex; gap: 14px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 1.4s var(--silk-ease) 0.8s forwards;
  margin: 28px auto;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }


/* ══════════════════════════════════
   project 
   ══════════════════════════════════ */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  padding: 22px 0;
}
.type{
  margin: 50px 0;
}
.project-type{
  letter-spacing: 3px;
  font-size: 1.5rem;
  text-align: center;
  font-style: oblique;
  font-weight: 100;
  color: var(--ivory-muted);
}
.project-body {
  font-size: 1rem; font-weight: 300; line-height: 1.8; 
  color: rgb(193, 202, 215); max-width: 540px;
}
.project-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory-muted); opacity: 0.6; margin-bottom: 20px;
}
.project.reverse { direction: rtl; }
.project.reverse > * { direction: ltr; }

.project-visual {
  position: relative; height: 320px; border-radius: 32px; overflow: hidden;
  background: var(--panel-bg); 
  border: 1px solid var(--panel-border);
  padding: 12px;
  box-shadow: var(--base-mid) 3px 3px 13px;
}
.project-visual:hover{
  border: 1px solid var(--panel-border-hover);
  transform: scale(1.02);
  box-shadow: var(--base-soft) 3px 3px 23px;
}
.project-visual img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.project-content .desc{
  font-weight: 500;
  margin: 17px 0;
  line-height: 2;
}
.project-name {
  font-size: 3rem; font-weight: 700; letter-spacing: -0.04em;
  color: var(--ivory); line-height: 2; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.design-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px;
}
.design-item {
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 24px 16px;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease);
}
.design-item:hover{
  transform: scale(1.02);
  border: 1px solid var(--panel-border-hover);
}
.design-item img{
   width: 100%; height: 300px; 
   object-fit: cover; border-radius: inherit;
}
.design-name {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ivory); text-transform: uppercase;
}
.design-text{
  font-size: 1rem; font-weight: 300; 
  color: var(--slate-light); margin: 8px 0;
}
.design-item .desc{
  color: var(--ivory-muted);
 font-weight: 500;
  /* margin: 17px 0; */
}
.hide,.tools{
  display: none;
}
.zoom{
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 8;
  background-color: #353152;
}
.zoom button {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 45px;
  background: none;
  border: none;
  color: var(--base-deep);
  cursor: pointer;
}
.zoom button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.zoom img {
  /* width: 70%; */
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  /* margin: 20px; */
}

.zoom-content{
    display: flex;
    gap: clamp(20px, 4vw, 50px);
    width: min(90%, 1200px);
    /* padding: clamp(20px, 3vw, 40px); */
    border-radius: 20px;
}

.zoom-info{
    width: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    gap: clamp(12px, 2vw, 24px);
}

.zoom-title{
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ivory);
}

.zoom-desc{
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--slate-light);
}

.zoom-tool{
    font-size: clamp(0.85rem, 1vw, 1rem);
    line-height: 1.7;
    color: var(--ivory-muted);
}

.zoom-info .zoom-tool h5{
  color: var(--ivory);
}
.zoom-info .zoom-tool li{
  list-style: none;
}
/* about*/
#about{
  text-align: center;

}
.about-text strong{
  color: #C9CDD4;
}
/* Service  */
.service{
  padding-top: 50px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px;
}
.service-item {
   border: 1px solid var(--panel-border);
  border-radius: 20px; padding: 24px 16px; text-align: left;
  backdrop-filter: blur(16px);
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease);
}
.service-item:hover{
  transform: scale(1.02);
  border: 1px solid var(--panel-border-hover);
}
.service-name {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ivory); text-transform: uppercase;
}
.service-text{
  font-size: 1rem; font-weight: 300; 
  color: var(--slate-light); margin: 8px 0;
}
.skill{
  margin: 20px 0;
  align-items: center;
}
.skill-set{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px auto;
  /* max-width: 700px; */
  text-align: center;
  
}
.skill-set .skill-name{
  background: var(--panel-bg); border: 1px solid var(--panel-border);
  border-radius: 70px;  text-align: center;
  backdrop-filter: blur(16px);
  width: fit-content ;
  padding: 10px 8px;
    font-size: 0.9rem;
    /* letter-spacing: .5px; */
  transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease);
}
/* Contact  */

.contact-cta p{
  color: var(--ivory-muted);
  
  margin: 30px 0;
  font-size: 1rem;
  letter-spacing: 6px;
}
.contact-link{
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: normal;
  margin: 2px 12px;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer { padding: 10px 20px; 
  text-align: center; }
.footer-bar {
  display: flex;
  justify-content: space-around;
   align-items: center;
  padding-top: 40px; border-top: 1px solid rgba(156,163,175,0.06);
}
.footer-brand { font-size: 11px; font-weight: 600; 
  letter-spacing: 0.2em; text-transform: uppercase; 
  color: var(--slate-light); opacity: 0.5; }

.footer .links a{
text-decoration: none;
color: var(--slate-light);
font-size: 13px; font-weight: 600;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 1024px) {
  .main { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .side-panel { display: none; }
  .project { grid-template-columns: 1fr; gap: 40px; }
  .project.reverse { direction: ltr; }
  .project-visual { height: 260px; }
 
}

@media (max-width: 768px) {
  .main { padding: 0 20px; }
  .top-nav { padding: 18px 20px; }
  .top-nav.scrolled { padding: 14px 20px; }
  .hero { min-height: 100svh; padding: 100px 0 60px; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  .section { padding: 80px 0; }
  .design-grid ,.services-grid{
  display: block; gap: 16px; margin-top: 56px;
  }
  .design-item ,.service-item{
    margin-top: 1.5em;
    transition: transform 0.8s var(--silk-ease), border-color 0.8s var(--silk-ease);
  }
  .design-desc{
    line-height: 2;
  }
  .project-visual { height: 240px; border-radius: 24px; }
  .footer-bar { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-ctas { flex-direction: column; align-items: center; }
  .mobile-menu-inner { padding: 90px 20px 40px; }


    .zoom-content{
        flex-direction: column;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .zoom-content img{
        max-height: 100%;
    }

    .zoom-info{
        width: 100%;
    }

    .zoom-title{
        font-size: 1.8rem;
    }

    .zoom-desc{
        font-size: 0.95rem;
    }

    .zoom-tool{
        font-size: 0.9rem;
    }

    .close-btn{
        font-size: 2rem;
        top: 12px;
        right: 16px;
    }

}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.7rem; }
  .mobile-menu-link { font-size: 1.4rem; }
  
  .section-text{
    font-size: 16px;
  }
  .section-text strong{
    font-size: 20px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 0 40px; }
  .section { padding: 60px 0; }
  .mobile-menu-inner { padding: 64px 32px 24px; justify-content: flex-start; }
  .mobile-menu-link { font-size: 1.2rem; padding: 8px 0; }
}


/* Focus */
.btn-primary:focus-visible, .btn-secondary:focus-visible,
.nav-links a:focus-visible, .nav-toggle:focus-visible,
.mobile-menu-link:focus-visible, .faq-question:focus-visible,
.toggle-switch:focus-visible, .faq-toggle-all:focus-visible {
  outline: 2px solid var(--silver); outline-offset: 3px;
}
