:root{
  --bg:#064469;
  --mainbg:#F9F7F3;
  --pill:#fff7ed;
  --text:#2d2d2d;
  --muted:#6d6a67;
  --primary:#a7784e;
  --primary-600:#916844;
  --light:#ffffff;
  --shadow:0 8px 30px rgba(0,0,0,.10);
  --radius-xl:26px;
  --radius-2xl:36px;
  --sand:#f7f2ea;
}

[data-theme="dark"]{
  --bg:#064469;
  --mainbg:#1a1a1a;
  --pill:#2d2d2d;
  --text:#ffffff;
  --muted:#a0a0a0;
  --primary:#d4a574;
  --primary-600:#c19660;
  --light:#ffffff;
  --shadow:0 8px 30px rgba(0,0,0,.3);
  --sand:#2a2a2a;
}

[data-theme="dark"] .btn-light{
  background:var(--bg);
  color:var(--light);
}

[data-theme="dark"] .stack-cards__item{
  background:var(--mainbg);
  border-color:#444;
}

[data-theme="dark"] .why-card{
  background:var(--mainbg);
  border-color:#444;
}

[data-theme="dark"] .why-card:hover{
  background:#333;
  border-color:#666;
}

[data-theme="dark"] .about-us-card{
  background:linear-gradient(135deg, var(--mainbg) 0%, #333 100%);
  border-color:#444;
}

[data-theme="dark"] .info-card-left{
  background:linear-gradient(135deg, var(--mainbg) 0%, #333 100%);
}

[data-theme="dark"] .info-card-left p{
  color:var(--light);
}

[data-theme="dark"] .testimonials{
  background:var(--mainbg);
}

[data-theme="dark"] .testimonial{
  background:var(--mainbg);
  border-color:#444;
}

[data-theme="dark"] .testimonial p{
  color:var(--light);
}

[data-theme="dark"] .about-stats{
  border-color:#444;
}

[data-theme="dark"] .stack-details li::before{
  color:var(--primary);
}

[data-theme="dark"] .info-card-right h3{
  color:var(--light);
}

[data-theme="dark"] .info-card-right p{
  color:rgba(255,255,255,0.88);
}

[data-theme="dark"] .stack-badge{
  color:var(--light);
}

[data-theme="dark"] .about-us-content h3{
  color:var(--light);
}

[data-theme="dark"] .about-us-content p{
  color:rgba(255,255,255,0.88);
}

[data-theme="dark"] .stat-label{
  color:var(--light);
}

[data-theme="dark"] .stack-content h2{
  color:var(--light);
}

[data-theme="dark"] .stack-content p{
  color:rgba(255,255,255,0.88);
}

[data-theme="dark"] .stack-details li{
  color:rgba(255,255,255,0.88);
}

[data-theme="dark"] .why-title{
  color:var(--light);
}

[data-theme="dark"] .why-subtitle{
  color:rgba(255,255,255,0.7);
}

[data-theme="dark"] .why-card h3{
  color:var(--light);
}

[data-theme="dark"] .why-card p{
  color:rgba(255,255,255,0.8);
}

[data-theme="dark"] .testimonials h2{
  color:var(--light);
}

[data-theme="dark"] .profile h4{
  color:var(--light);
}

[data-theme="dark"] .areas-title{
  color:var(--light);
}

[data-theme="dark"] .areas-subtitle{
  color:rgba(255,255,255,0.7);
}

[data-theme="dark"] .services-title{
  color:var(--light);
}

[data-theme="dark"] .gallery-section-title{
  color:var(--light);
}

[data-theme="dark"] .why-card-featured{
  background:var(--bg);
}

[data-theme="dark"] .photo__name{
  -webkit-text-stroke-color:var(--light);
  color:var(--light);
}

.contact-main-title{
  color:white;
}

.contact-main-subtitle{
  color:white;
  opacity:0.9;
}

[data-theme="dark"] .contact-main-title{
  color:white;
}

[data-theme="dark"] .contact-main-subtitle{
  color:white;
  opacity:0.9;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
html,body{height:100%}
body{
  background:var(--mainbg);
  color:var(--bg);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.5;
  overflow-x:hidden;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Frame ---------- */
.page-frame{
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  max-width:1950px;
  padding:0 16px;
  position:relative;
}

/* ---------- Navigation ---------- */
.nav{
  position:fixed;
  top:0;
  left:50%;
  transform:translateX(-50%);
  z-index:1000;
  padding:16px;
  width:calc(100% - 32px);
  max-width:2000px;
  transition:all 0.3s ease;
}

.nav-pill{
  margin:0 auto;
  width:clamp(75%, 85vw, 1600px);
  height:100px;
  background:linear-gradient(135deg, rgba(255,255,255,0.15), rgba(6,68,105,0.08));
  backdrop-filter:blur(25px);
  -webkit-backdrop-filter:blur(25px);
  border-image:linear-gradient(135deg, rgba(6,68,105,0.3), rgba(255,255,255,0.2)) 1;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  gap:20px;
  box-shadow:0 12px 40px rgba(6,68,105,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  min-width:fit-content;
}

.nav-pill::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(6,68,105,0.1), transparent);
  transition:left 0.6s ease;
}

.nav-pill:hover::before{
  left:100%;
}

.nav-pill:hover{
  background:linear-gradient(135deg, rgba(255,255,255,0.25), rgba(6,68,105,0.12));
  box-shadow:0 16px 50px rgba(6,68,105,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
  transform:translateY(-3px);
  border-image:linear-gradient(135deg, rgba(6,68,105,0.5), rgba(255,255,255,0.3)) 1;
}

.nav-pill.scrolled{
  background:rgba(255,255,255,0.2);
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  box-shadow:0 8px 32px rgba(6,68,105,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  border:2px solid rgba(255,255,255,0.3);
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 20px;
  border-radius:50px;
  position:relative;
  overflow:hidden;
}

.logo::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform:translateX(-100%);
  transition:transform 0.6s ease;
}

.logo:hover::before{
  transform:translateX(100%);
}

.logo span{
  color:black;
  font-family:"Russo One", sans-serif;
  font-weight:400;
  font-size:22px;
  letter-spacing:-0.5px;
  position:relative;
  z-index:2;
  text-shadow:0 2px 4px rgba(0,0,0,0.3);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 auto;
  flex-shrink:0;
}

.nav-links a{
  color:black;
  text-decoration:none;
  font-family:"Russo One", sans-serif;
  font-weight:400;
  font-size:18px;
  padding:16px 32px;
  border-radius:30px;
  position:relative;
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background:transparent;
  text-shadow:0 1px 2px rgba(255,255,255,0.8);
  overflow:hidden;
  letter-spacing:-0.3px;
  white-space:nowrap;
  flex-shrink:0;
}

.nav-links a::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:linear-gradient(135deg, var(--bg), rgba(6,68,105,0.8));
  border-radius:30px;
  opacity:0;
  transform:scale(0.8) rotateY(90deg);
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:-1;
  box-shadow:0 4px 15px rgba(6,68,105,0.3);
}

.nav-links a:hover:not(.active){
  color:#fff;
  transform:translateY(-3px);
  text-shadow:0 2px 4px rgba(126, 32, 32, 0.3);
}

.nav-links a:hover:not(.active)::before{
  opacity:1;
  transform:scale(1) rotateY(0deg);
}

.nav-links a:hover:not(.active)::after{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:80%;
  height:2px;
  transform:translate(-50%, -50%);
  z-index:1;
}

.nav-links a.active{
  color:var(--bg);
}

.nav-links a.active::after{
  content:'';
  position:absolute;
  left:50%;
  top: 45px;
  transform:translateX(-50%);
  width:24px;
  height:3px;
  background:var(--bg);
  border-radius:2px;
}

.hamburger{
  display:none;
  flex-direction:column;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  gap:5px;
  z-index:1001;
}

.hamburger{
  background:linear-gradient(135deg, rgba(6,68,105,0.1), rgba(255,255,255,0.1));
  border-radius:12px;
  padding:12px;
  backdrop-filter:blur(10px);
  border:1px solid rgba(6,68,105,0.2);
}

.hamburger span{
  width:22px;
  height:2.5px;
  background:var(--bg);
  border-radius:2px;
  transition:all 0.3s ease;
  box-shadow:0 1px 2px rgba(6,68,105,0.3);
}

.hamburger.active span:nth-child(1){ transform:rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:rotate(-45deg) translate(6px, -6px); }

.ui-switch {
  --switch-bg: rgb(135, 150, 165);
  --switch-width: 48px;
  --switch-height: 20px;
  --circle-diameter: 32px;
  --circle-bg: rgb(0, 56, 146);
  --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
  display: none;
}

.slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: var(--switch-width);
  height: var(--switch-height);
  background: var(--switch-bg);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.slider .circle {
  top: calc(var(--circle-inset) * -1);
  left: 0;
  width: var(--circle-diameter);
  height: var(--circle-diameter);
  position: absolute;
  background: var(--circle-bg);
  border-radius: inherit;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA9LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: center center;
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
}

.slider .circle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: inherit;
  transition: all 500ms;
  opacity: 0;
}

.ui-switch input:checked+.slider .circle {
  left: calc(100% - var(--circle-diameter));
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
}

.ui-switch input:active+.slider .circle::before {
  transition: 0s;
  opacity: 1;
  width: 0;
  height: 0;
}

.mobile-nav-overlay{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.5);
  opacity:0;
  visibility:hidden;
  transition:all 0.3s ease;
  z-index:999;
}

.mobile-nav-overlay.active{
  opacity:1;
  visibility:visible;
}

.mobile-nav{
  position:fixed;
  top:90px;
  left:16px;
  right:16px;
  width:auto;
  background:var(--bg);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.4);
  border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
  padding:20px;
  transform:translateY(-20px) scale(0.95);
  opacity:0;
  visibility:hidden;
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:1000;
}

.mobile-nav-overlay.active .mobile-nav{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}

.mobile-nav a{
  display:block;
  color:white;
  text-decoration:none;
  font-size:16px;
  font-weight:500;
  padding:14px 18px;
  border-radius:12px;
  margin-bottom:8px;
  transition:all 0.3s ease;
}

.mobile-nav a:hover{
  background:rgba(167,120,78,0.1);
  color:var(--primary);
  transform:translateX(4px);
}

.mobile-nav a.active{
  background:rgba(167,120,78,0.12);
  color:var(--primary);
  font-weight:600;
}

.mobile-contact{
  margin-top:12px;
  width:100%;
}

/* ---------- Buttons ---------- */
.btn{
  border:none;
  border-radius:14px;
  padding:14px 28px;
  font-weight:600;
  cursor:pointer;
  font-size:16px;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn:active{
  transform:translateY(0);
}



.btn-primary{
  background:linear-gradient(135deg, var(--bg), rgba(6,68,105,0.8));
  color:#fff;
  box-shadow:0 4px 15px rgba(6,68,105,0.3);
  position:relative;
  overflow:hidden;
}

.btn-primary::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform:translateX(-100%);
  transition:transform 0.6s ease;
}

.btn-primary:hover::before{
  transform:translateX(100%);
}

.btn-primary:hover{
  background:linear-gradient(135deg, rgba(6,68,105,0.9), var(--bg));
  box-shadow:0 6px 20px rgba(6,68,105,0.4);
}

.btn-light{
  background:#fff;
  color:#222;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.btn-light:hover{ 
  background:#f8f8f8;
  box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  margin:16px;
  height:88vh;
  min-height:580px;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
}

.hero-media{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 65%, rgba(0,0,0,.4) 100%);
  pointer-events:none;
}

.hero-content{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  align-items:end;
  gap:32px;
  padding:48px 50px 50px;
}

.hero-title{
  color:#fff;
  font-size:clamp(32px, 4.5vw, 68px);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-0.5px;
  margin:0 0 16px 0;
  text-shadow:0 4px 20px rgba(0,0,0,.4);
  animation:fadeInUp 0.8s ease;
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.hero-card{
  justify-self:end;
  width:min(580px, 95%);
  background:rgba(0,0,0,.38);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:#fff;
  padding:24px 24px 24px 28px;
  border-radius:18px;
  box-shadow:0 12px 40px rgba(0,0,0,.3);
  border:1px solid rgba(255,255,255,0.1);
  animation:fadeInUp 0.8s ease 0.2s both;
}

.hero-card p{
  margin:0 0 16px 0;
  font-weight:500;
  font-size:16px;
  line-height:1.6;
}

/* ---------- Info Cards ---------- */
.info-cards {
  display:flex;
  gap:2rem;
  max-width:1950px;
  margin:0 auto;
  padding:4rem 16px;
}

.info-cards-left {
  display:flex;
  flex-direction:column;
  gap:2rem;
  flex:1;
}

.info-card {
  background:var(--bg);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 40px rgba(0,0,0,0.1);
  border:1px solid rgba(167,120,78,0.15);
  display:flex;
  transition:transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover {
  transform:translateY(-6px);
  box-shadow:0 16px 50px rgba(0,0,0,0.15);
}

.about-us-card {
  flex:1;
  flex-direction:column;
  background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border:2px solid rgba(6,68,105,0.1);
}

.about-us-content {
  padding:2.5rem;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.about-us-content h3 {
  font-size:2rem;
  font-weight:700;
  color:var(--bg);
  margin-bottom:1.5rem;
  text-align:center;
}

.about-us-content p {
  font-size:1rem;
  line-height:1.7;
  color:var(--bg);
  opacity:0.85;
  margin-bottom:1.2rem;
}

.about-stats {
  display:flex;
  justify-content:space-around;
  margin-top:2rem;
  padding-top:2rem;
  border-top:2px solid rgba(6,68,105,0.1);
}

.stat {
  text-align:center;
}

.stat-number {
  display:block;
  font-size:2.2rem;
  font-weight:800;
  color:var(--primary);
  line-height:1;
}

.stat-label {
  display:block;
  font-size:0.9rem;
  color:var(--bg);
  opacity:0.7;
  margin-top:0.5rem;
  font-weight:600;
}

.info-card-left {
  flex:1;
 background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color:var(--bg);
  padding:2.5rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.info-card-left p {
  font-size:0.95rem;
  font-style:italic;
  color: black;
  margin-bottom:1.2rem;
  opacity:0.92;
  line-height:1.5;
}

.info-card-left h2 {
  font-size:1.65rem;
  font-weight:700;
  line-height:1.35;
}

.info-card-right {
  flex:2;
  padding:2.5rem;
  background:var(--bg);
}

.info-card-right h3 {
  margin-bottom:1rem;
  font-size:1.4rem;
  font-weight:700;
  color:#ffffff;
}

.info-card-right p {
  font-size:1.05rem;
  line-height:1.7;
  color:rgba(255,255,255,0.88);
}

/* ---------- Services Section ---------- */
.services-section {
  max-width: 1600px;
  margin:10px auto 0;
  padding:10px 16px 4vh;
}

.services-container {
  width: min(1600px, 92%);
  margin: 0 auto;
}

.services-title {
  font-family:'Playfair Display', serif;
  font-size:clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight:700;
  text-align:center;
  margin-bottom:80px;
  color:var(--bg);
  padding:30px 0;
  letter-spacing:-1px;
}

.stack-cards {
  display:flex;
  flex-direction:column;
  gap:50px;
}

.stack-cards__item {
  position:sticky;
  background:#fff;
  border:1px solid #d0d0d0;
  border-radius:30px;
  box-shadow:0 8px 30px rgba(0,0,0,0.08);
  padding:10px;
  min-height:500px;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  display:flex;
  overflow:hidden;
}

.stack-content {
  flex:1;
  padding:40px 35px;
}

.stack-content-2 {
  flex:1;
  display:flex;
  align-items:stretch;
  margin:-10px -10px -10px 0;
}

.stack-content-2 img {
  width:100%;
  height:100%;
  object-fit:cover;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 10px;
  border-radius: 25px;
}


.stack-cards__item:nth-child(1) { top:152px; }
.stack-cards__item:nth-child(2) { top:172px; }
.stack-cards__item:nth-child(3) { top:192px; }
.stack-cards__item:nth-child(4) { top:212px; }
.stack-cards__item:nth-child(5) { top:232px; }
.stack-cards__item:nth-child(6) { top:252px; }

@media (max-width: 768px) {
  .stack-cards__item {
    position: static !important;
  }
}

.stack-content h2 {
  font-size:2rem;
  color:var(--bg);
  margin-bottom:1.2rem;
  font-weight:700;
  line-height:1.3;
}

.stack-content p {
  color:var(--bg);
  line-height:1.7;
  font-size:1.05rem;
  opacity:0.8;
}

.stack-badge {
  display:inline-block;
  background:var(--bg);
  color:white;
  font-weight:700;
  padding:8px 16px;
  border-radius:24px;
  font-size:0.85rem;
  margin-bottom:1.2rem;
  letter-spacing:0.5px;
}

/* ---------- Why Choose Us ---------- */
.why-choose-us {
  max-width: 1600px;
  margin:0 auto;
  padding:100px 16px;
}

.why-container {
  width: min(1600px, 92%);
  margin: 0 auto;
}

.why-header {
  margin-bottom:60px;
}

.why-title {
  font-family:'Playfair Display', serif;
  font-size:52px;
  font-weight:700;
  margin:0 0 12px 0;
  color:var(--bg);
  letter-spacing:-1px;
}

.why-subtitle {
  font-size:19px;
  font-style:italic;
  color:var(--bg);
  opacity:0.7;
  margin:0;
}

.why-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.why-card {
  background:#f7f7f7;
  border:2px solid #e5e5e5;
  border-radius:18px;
  padding:36px;
  transition:all 0.4s ease;
}

.why-card:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 35px rgba(0,0,0,0.12);
  border-color:#999;
  background:#fff;
}

.why-card-tall:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 35px rgba(0,0,0,0.12);
  border-color:#999;
  background:#fff;
}

.why-card h3 {
  font-size:21px;
  font-weight:700;
  margin:0 0 16px 0;
  color:var(--bg);
  line-height:1.3;
}

.why-card p {
  font-size:15.5px;
  line-height:1.65;
  color:var(--bg);
  opacity:0.8;
  margin:0;
}

.why-card-tall {
  grid-row:span 2;
  /* Background can be customized via inline styles or additional classes */
  color: white;
  position: relative;
  overflow: hidden;
}

.why-card-tall::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,68,105,0.8), rgba(6,68,105,0.6));
  z-index: 1;
}

.why-card-tall h3,
.why-card-tall p {
  position: relative;
  z-index: 2;
  color: white;
}

.why-card-tall:hover {
  transform: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.why-card-wide {
  grid-column:span 2;
}

.why-card-featured {
  /* Background can be customized via inline styles or additional classes */
  border:none;
  color:white;
  position:relative;
  overflow:hidden;
}

.why-card-featured:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 35px rgba(0,0,0,0.12);
  border-color:#999;
  background:#fff;
}

.why-card-featured h3,
.why-card-featured p {
  color:white !important;
}

.why-card-featured:hover h3,
.why-card-featured:hover p {
  color:white !important;
}

.why-card-featured::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events:none;
}

.why-card-featured h3,
.why-card-featured p {
  color:var(--bg);
  position:relative;
  z-index:2;
}

.icon-placeholder {
  width:64px;
  height:64px;
  background:rgba(255,255,255,0.25);
  border-radius:14px;
  margin-bottom:22px;
  position:relative;
  z-index:2;
}

/* ---------- Our Projects ---------- */
.our-projects {
  max-width: 1600px;
  margin:0 auto;
  padding:140px 16px;
}

.projects-container {
  width: min(1200px, 75%);
  margin: 0 auto;
}

.projects-title {
  font-family:'Playfair Display', serif;
  font-size:clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight:700;
  font-style:italic;
  margin-bottom:70px;
  color:var(--bg);
  letter-spacing:-1px;
}

.projects-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:repeat(2, 300px);
  gap:24px;
}

.project-card {
  position:relative;
  border-radius:22px;
  overflow:hidden;
  cursor:pointer;
  transition:transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
  box-shadow:0 6px 25px rgba(0,0,0,0.12);
}

.project-card:hover {
  transform:translateY(-10px);
  box-shadow:0 16px 50px rgba(0,0,0,0.25);
}

.project-card-1 { grid-column:1; grid-row:1; }
.project-card-2 { grid-column:2; grid-row:1; }
.project-card-3 { grid-column:3; grid-row:1; }
.project-card-4 { grid-column:1 / 3; grid-row:2; }
.project-card-5 { grid-column:3; grid-row:2; }

.project-image {
  width:100%;
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.project-placeholder {
  width:82%;
  height:82%;
  background:rgba(255,255,255,0.22);
  border-radius:14px;
  backdrop-filter:blur(12px);
  border:2px solid rgba(255,255,255,0.35);
  transition:transform 0.5s ease;
}

.project-card:hover .project-placeholder{
  transform:scale(1.05);
}

.project-overlay {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:35px;
  background:linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  transition:background 0.4s ease;
}

.project-card:hover .project-overlay {
  background:linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.35));
}

.project-overlay h3 {
  color:white;
  font-size:clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight:700;
  margin:0;
  text-shadow:0 3px 6px rgba(0,0,0,0.4);
  line-height:1.3;
}

/* ---------- Testimonials Section ---------- */
    .testimonials {
      text-align: center;
      max-width: 1600px;
      margin: 0 auto;
      padding: 100px 16px;
      background: #f8f9fa;
    }

    .testimonials h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.8rem, 5.5vw, 4.5rem);
      font-weight: 700;
      margin-bottom: 60px;
      color: #1a1a1a;
      letter-spacing: -1px;
    }

    .testimonial-container {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      max-width: 1400px;
      margin: 0 auto;
    }

    .arrow {
      background: white;
      border: 1px solid #ccc;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      font-size: 20px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      flex-shrink: 0;
      z-index: 10;
    }

    .arrow:hover {
      background: var(--primary);
      color: white;
      transform: scale(1.1);
      border-color: var(--primary);
    }

    .arrow:active {
      transform: scale(0.95);
    }

    .testimonial-wrapper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      width: 100%;
      max-width: 1300px;
      margin: 0 20px;
      position: relative;
      min-height: 300px;
      overflow: hidden;
    }

    .testimonial {
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 20px;
      padding: 40px 35px;
      margin: 0;
      transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 8px 30px rgba(0,0,0,0.08);
      width: 100%;
      height: 320px;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .testimonial-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .stars {
      color: #ffb400;
      font-size: 20px;
      margin-bottom: 20px;
      letter-spacing: 2px;
    }

    .testimonial > p {
      font-size: 16px;
      line-height: 1.7;
      color: #444;
      margin-bottom: 25px;
      font-style: italic;
      text-align: left;
      flex: 1;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
    }

    .profile {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-top: 0;
    }

    .profile img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #e5e7eb;
    }

    .profile div {
      text-align: left;
    }

    .profile h4 {
      font-size: 18px;
      margin: 0 0 10px 0;
      font-weight: 700;
      color: var(--bg);
    }

    .profile p {
      margin: 0;
      padding-bottom: 20px;
      font-size: 14px;
      color: #666;
      font-style: normal;
    }

    /* Dots indicator */
    .dots-container {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 30px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #ccc;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .dot.active {
      background: var(--bg);
      transform: scale(1.2);
    }

    .dot:hover {
      background: #999;
    }

    /* Mobile responsive */
    @media (max-width: 1024px) {
      .testimonial-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
    }

    @media (max-width: 768px) {
      .testimonials h2 { font-size: clamp(2rem, 6vw, 3rem); }
      
      .testimonial-container {
        flex-direction: column;
      }

      .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 16px;
      }

      .arrow.left {
        left: 0;
      }

      .arrow.right {
        right: 0;
      }

      .testimonial-wrapper {
        margin: 0;
        padding: 0 30px;
        grid-template-columns: 1fr;
        gap: 15px;
      }

      .testimonial {
        padding: 25px 20px;
      }
      
      .testimonial > p {
        font-size: 14px;
      }
      
      .profile h4 {
        font-size: 16px;
      }
      
      .profile p {
        font-size: 12px;
      }

      .testimonials {
        padding: 60px 16px;
      }
    }

/* ---------- Areas Section ---------- */
.areas-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 100px 16px;
}

.areas-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.areas-subtitle {
  text-align: center;
  font-size: 20px;
  color: #666;
  margin-bottom: 60px;
  font-style: italic;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.area-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: white;
  padding: 35px 30px;
  border-radius: 18px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 25px rgba(167,120,78,0.25);
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(167,120,78,0.35);
}

.area-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.area-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ---------- Contact Section ---------- */
.contact-section {
  max-width: 2000px;
  margin: 0 auto;
  padding: 120px 16px;
  color: #fff;
}

.contact-main-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 15px;
  color: white;
  letter-spacing: -1px;
}

.contact-main-subtitle {
  text-align: left;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: white;
  opacity: 0.9;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-top: 20px;
}

.contact-form h3 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.form-subtitle {
  color: rgba(255,255,255,0.9);
  text-align: center;
  margin-bottom: 35px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form label {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.7);
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: min(1600px, 92%);
  margin: 0 auto;
}

.contact-left-section {
  display: flex;
  flex-direction: column;
  height: 700px;
  background: var(--bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tagline-details-container {
  display: flex;
  flex-direction: column;
  height: 700px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  gap: 40px;
}

.tagline-part {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.5s ease;
  flex: 3;
}

.tagline-heading {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: white;
  opacity: 1;
  margin: 0;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tagline-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tagline-content p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.tagline-part:hover .tagline-heading {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  margin: 0;
}

.tagline-part:hover .tagline-content {
  opacity: 1;
  transform: translateY(0);
}

.details-part {
  background: #fff;
  color: #000;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.info h4 {
  color: #4b2c1c;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info p {
  color: #333;
  font-weight: 500;
  line-height: 1.5;
}


/* ---------- Responsive Styles ---------- */
@media (max-width: 1200px){
  .nav-pill{ height:85px; gap:16px; }
  .nav-links{ gap:6px; }
  .nav-links a{ font-size:16px; padding:14px 24px; }
  .btn-primary{ padding:12px 20px; font-size:14px; }
}

@media (max-width: 960px){
  .nav-pill{ height:80px; gap:12px; }
  .nav-links{ gap:4px; }
  .nav-links a{ font-size:15px; padding:12px 20px; }
  
  .hero-content{
    grid-template-columns:1fr;
    padding:32px 24px;
  }
  .hero-card{ justify-self:start; width:100%; }
  
  .info-cards { flex-direction:column; }
  .info-cards-left { flex-direction:column; }
  .about-us-card { margin-top:2rem; }
  
  .why-grid { grid-template-columns:repeat(2, 1fr); }
  .why-card-wide { grid-column:span 1; }
  
  .projects-grid {
    grid-template-columns:repeat(2, 1fr);
    grid-template-rows:repeat(3, 260px);
  }
  .project-card-1 { grid-column:1; grid-row:1; }
  .project-card-2 { grid-column:2; grid-row:1; }
  .project-card-3 { grid-column:1; grid-row:2; }
  .project-card-4 { grid-column:2; grid-row:2; }
  .project-card-5 { grid-column:1 / 3; grid-row:3; }
}

@media (max-width:860px){
  .nav-pill{ padding:0 20px; gap:8px; width:clamp(80%, 90vw, 1600px); }
  .nav-links{ gap:2px; }
  .nav-links a{ font-size:14px; padding:10px 16px; }
  .btn-primary{ padding:10px 16px; font-size:13px; }
}

@media (max-width:800px){
  .nav-pill{ padding:0 18px; gap:6px; width:clamp(85%, 92vw, 1600px); }
  .nav-links{ gap:1px; }
  .nav-links a{ font-size:13px; padding:8px 12px; }
  .btn-primary{ padding:8px 14px; font-size:12px; }
  .logo span{ font-size:20px; }
}

@media (max-width:768px){
  .nav{ top:0; width:100%; padding:12px 16px; }
  .nav-pill{ height:70px; border-radius:20px; width:100%; padding:0 20px; }
  .nav-links, .btn-primary{ display:none; }
  .hamburger{ display:flex; }
  
  .page-frame{ margin-top:94px; width:100%; max-width:100%; padding:0; }
  .hero{ margin:0; border-radius:0; height:60vh; width:100%; }
  .hero-content{ padding:24px 20px; }
  
  .info-card{ flex-direction:column; }
  .info-card-left, .info-card-right { width:100%; }
  .about-us-content { padding:2rem; }
  
  .why-grid { grid-template-columns:1fr; }
  .why-card-tall, .why-card-wide { grid-column:span 1; grid-row:span 1; }
  .why-title { font-size:40px; }
  
  .projects-grid {
    grid-template-columns:1fr;
    grid-template-rows:repeat(5, 240px);
  }
  .project-card-1,
  .project-card-2,
  .project-card-3,
  .project-card-4,
  .project-card-5 { grid-column:1; }
  .project-card-1 { grid-row:1; }
  .project-card-2 { grid-row:2; }
  .project-card-3 { grid-row:3; }
  .project-card-4 { grid-row:4; }
  .project-card-5 { grid-row:5; }
  
  .services-section{ 
    padding:70px 16px 4vh;
   }
  .stack-cards__item{ 
    padding:35px 25px;
    flex-direction:column;
    gap:25px;
    text-align:center;
  }
  
  .stack-content {
    order: 1;
  }
  
  .stack-content-2 {
    order: 2;
  }
  
  .contact-container { width: min(720px, 90%); height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 15px; }
  
  .testimonials, .areas-section { padding: 70px 16px; }
  .testimonials h2, .areas-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  
  .testimonial-wrapper {
    width: 100%;
    margin: 0 10px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .testimonial {
    padding: 30px 25px;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .area-card {
    padding: 30px 25px;
  }
}



@media (max-width:520px){
  .nav{ padding:8px 12px; }
  .nav-pill{ height:60px; padding:0 16px; }
  .logo{ padding:8px 16px; }
  .logo span { font-size:17px; }
  .page-frame{ margin-top:84px; }
  .nav-links a{ font-size:12px; padding:6px 10px; }
  .btn-primary{ padding:6px 12px; font-size:11px; }
  
  .hero{ height:52vh; }
  .hero-content{ padding:20px 16px; }
  .hero-title{ font-size:clamp(26px, 9vw, 38px); }
  .hero-card{ padding:18px 20px; }
  
  .info-cards{ padding:3rem 12px; }
  .why-choose-us, .our-projects, .testimonials, .areas-section, .contact-section{ padding:80px 12px; }
  .contact-container { width: min(350px, 95%); height: auto; }
  
  .stack-cards__item {
    flex-direction: column;
    padding: 16px;
    min-height: 250px;
  }
  
  .stack-content {
    order: 1;
  }
  
  .stack-content h2 { font-size: 1.2rem; }
  .stack-content p { font-size: 0.85rem; }
  .stack-details li { font-size: 0.75rem; }
  
  .stack-content-2 {
    display: none;
  }
  
  .tagline-heading { font-size: 1.8rem !important; }
  .tagline-part { padding: 25px 15px; }
  .details-part { padding: 25px 15px; }
  
  .areas-grid {
    gap: 15px;
  }
  
  .area-card {
    padding: 25px 20px;
  }
  
  .testimonial-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .testimonial-wrapper {
    width: 90%;
    margin: 0;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .testimonial {
    padding: 20px 15px;
    margin: 0 5px;
  }
  
  .testimonial > p {
    font-size: 13px;
  }
  
  .profile h4 {
    font-size: 15px;
  }
  
  .profile p {
    font-size: 11px;
  }
  
  .stars {
    font-size: 16px;
  }
}
/* ---------- Gallery Section ---------- */
.gallery-section {
  margin: 80px 0;
  overflow: hidden;
  position: relative;
}

.gallery-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--bg);
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6,68,105,0.2);
  border-top: 3px solid var(--bg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gallery-loader p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.gallery {
  display: none;
}

.gallery.loaded {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
  max-width: 1300px;
  margin: auto;
}

.gallery-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: black;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -1px;
}

.gallery__strip {
  min-height: 100vh;
}

.gallery__strip__wrapper {
  flex: 0 0 100%;
  justify-content: flex-end;
  background: var(--mainbg);
  border-right: 2px solid rgba(6,68,105,0.1);
  position: relative;
}

@media (min-width: 500px) {
  .gallery__strip__wrapper {
    flex: 0 0 50%;
  }
}

@media (min-width: 950px) {
  .gallery {
    height: 100vh;
  }
  
  .gallery__strip.one {
    animation: 60s move-it ease alternate infinite 5s;
    transform: translateY(2%);
  }
  
  .gallery__strip.three {
    animation: 70s move-it ease alternate infinite 6s;
    transform: translateY(2%);
  }
  
  .gallery__strip.two {
    animation: 58s move-it-2 ease alternate infinite 5s;
    transform: translateY(-50%);
  }
  
  .gallery__strip.four {
    animation: 65s move-it-2 ease alternate infinite 5.5s;
    transform: translateY(-50%);
  }
  
  .gallery__strip:hover {
    animation-play-state: paused;
  }
  
  .gallery__strip__wrapper {
    flex: 0 0 25%;
  }
}

.photo {
  position: relative;
  text-align: right;
  padding-bottom: 3rem;
}

.photo__image img {
  width: 90%;
  transform: translateX(30%);
  transition: 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.photo__name {
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 1px;
  color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--bg);
  margin-top: -15px;
  transition: 0.4s ease-in-out 0.4s;
  position: relative;
  width: 100%;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
}

.photo:hover .photo__image img {
  transform: translateX(0%);
}

.photo:hover .photo__name {
  color: var(--bg);
}

@keyframes move-it {
  0%, 90%, 100% {
    transform: translateY(2%);
  }
  45% {
    transform: translateY(-50%);
  }
}

@keyframes move-it-2 {
  0%, 90%, 100% {
    transform: translateY(-50%);
  }
  45% {
    transform: translateY(5%);
  }
}

/* Mobile Gallery Carousel */
@media (max-width: 768px) {
  .gallery {
    height: auto;
    display: block;
    position: relative;
  }
  
  .gallery__strip {
    animation: none !important;
    transform: none !important;
    min-height: auto;
  }
  
  .gallery__strip__wrapper {
    flex: none;
    display: block;
  }
  
  .gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .gallery-carousel::-webkit-scrollbar {
    display: none;
  }
  
  .gallery-carousel .photo {
    flex: 0 0 280px;
    scroll-snap-align: center;
    text-align: center;
    padding-bottom: 1rem;
  }
  
  .gallery-carousel .photo__image img {
    width: 100%;
    transform: none;
    height: 200px;
    object-fit: cover;
  }
  
  .photo__name {
    font-size: 16px;
    margin-top: 10px;
  }
  
  .gallery-nav {
    display: none;
  }
}

.gallery-more-btn {
  text-align: center;
  margin-top: 40px;
}

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--light);
  margin: 2% auto;
  padding: 40px;
  width: 95%;
  max-width: 1400px;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--bg);
  z-index: 10;
}

.modal-content h3 {
  color: var(--bg);
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.modal-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  background: #fff;
}

.modal-photo:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.modal-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal-gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  background: #fff;
}

.modal-gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.modal-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal-gallery-item .photo__name {
  padding: 16px;
  background: var(--mainbg);
  color: var(--bg);
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .modal-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 16px 0;
  }
  
  .modal-photo img,
  .modal-gallery-item img {
    height: 180px;
  }
}

[data-theme="dark"] .modal-content {
  background: var(--mainbg);
}

[data-theme="dark"] .modal-gallery-item .photo__name {
  background: var(--light);
  color: var(--bg);
}

.modal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--bg);
}

.modal-loader .loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(6,68,105,0.2);
  border-top: 3px solid var(--bg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.modal-loader p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
/* ---------- Drop Down Animations ---------- */
.hero, .info-cards, .credentials-section, .services-section, .why-choose-us, .gallery-section, .testimonials, .areas-section, .contact-section {
  opacity: 0;
  transform: translateY(50px);
  animation: dropDown 0.8s ease forwards;
}

.hero { animation-delay: 0.1s; }
.info-cards { animation-delay: 0.2s; }
.credentials-section { animation-delay: 0.3s; }
.services-section { animation-delay: 0.4s; }
.why-choose-us { animation-delay: 0.5s; }
.gallery-section { animation-delay: 0.6s; }
.testimonials { animation-delay: 0.7s; }
.areas-section { animation-delay: 0.8s; }
.contact-section { animation-delay: 0.9s; }

@keyframes dropDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stack-details {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}

.stack-details li {
  color: var(--bg);
  font-size: 14px;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  opacity: 0.9;
}

.stack-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
}
.area-card {
  position: relative;
  height: 200px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,68,105,0.8), rgba(6,68,105,0.6));
  transition: all 0.3s ease;
}

.area-card:hover .area-overlay {
  background: linear-gradient(135deg, rgba(6,68,105,0.9), rgba(6,68,105,0.7));
}

.area-content {
  position: relative;
  z-index: 2;
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.area-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.area-content p {
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  font-size: 14px;
}
/* ---------- Enhanced Mobile Responsive ---------- */
@media (max-width: 1200px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-card { justify-self: center; max-width: 500px; }
  .info-cards { flex-direction: column; }
  .info-card { width: 100%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card-wide { grid-column: span 1; }
  .stack-cards__item { flex-direction: column; gap: 24px; }
  .stack-content { order: 1; }
  .stack-content-2 { order: 2; }
  .testimonial-wrapper { grid-template-columns: repeat(2, 1fr); }
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .page-frame { margin-top: 40px; padding: 0 12px; }
  .nav { padding: 12px; width: calc(100% - 24px); }
  .nav-pill { height: 80px; padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { height: 70vh; min-height: 500px; margin: 12px; }
  .hero-content { padding: 32px 24px; }
  .hero-title { font-size: clamp(28px, 8vw, 48px); }
  .info-card { flex-direction: column; padding: 1.5rem; }
  .info-card-left, .info-card-right { width: 100%; padding: 1.5rem; }
  .about-us-content { padding: 1.5rem; }
  .credentials-grid { grid-template-columns: 1fr; }
  .services-section { padding: 70px 16px; }
  .stack-cards__item { padding: 20px; text-align: center; flex-direction: column; min-height: 300px; }
  .stack-content { order: 1; }
  .stack-content h2 { font-size: 1.4rem; }
  .stack-content p { font-size: 0.9rem; }
  .stack-details li { font-size: 0.8rem; }
  .stack-content-2 { display: none; }
  .why-choose-us { padding: 60px 16px; }
  .why-title { font-size: clamp(2rem, 8vw, 3rem); text-align: center; }
  .why-subtitle { text-align: center; font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 20px 16px; }
  .why-card-tall, .why-card-wide { grid-column: span 1; grid-row: span 1; }
  .gallery { height: auto; }
  .gallery__strip { animation: none !important; transform: none !important; min-height: auto; }
  .gallery__strip__wrapper { flex: 0 0 100%; }
  .photo__name { font-size: 16px; }
  .testimonial { height: 250px; }
  .testimonial-wrapper { grid-template-columns: 1fr; }
  .testimonial-container { padding: 0 20px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { height: 150px; }
  .contact-section { padding: 40px 24px; }
  .testimonials, .areas-section { padding: 60px 24px; }
  
  .contact-container { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .contact-left-section { height: auto; }
  .tagline-details-container { height: auto; }
  .tagline-part { padding: 30px 20px; }
  .tagline-part:hover .tagline-heading { position: static; top: auto; left: auto; font-size: 2rem; }
  .tagline-content { opacity: 1; transform: translateY(0); }
  .details-part { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .hero-content { padding: 24px 20px; }
  .info-card { padding: 24px; }
  .stack-cards__item { padding: 20px; }
  .why-card { padding: 24px; }
  .testimonial { padding: 24px; }
  .contact-section { padding: 32px 20px; }
  .contact-left-section { padding: 30px 20px; }
  .testimonials, .areas-section { padding: 40px 20px; }
  .area-content { padding: 20px 16px; }
  .area-card h3 { font-size: 18px; }
  .area-card p { font-size: 13px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  color: white;
  text-align: center;
  padding: 20px 16px;
  font-size: 14px;
  margin-top: auto;
}

.footer p {
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .page-frame {
    flex: 1;
  }
}
/* Gallery Loading and Error States */
.loading-state, .error-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
}

.loading-state::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(6,68,105,0.2);
  border-top: 2px solid var(--bg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

.error-state {
  color: #dc3545;
}

/* Performance optimizations */
.modal-gallery-item img {
  will-change: transform;
}

.photo__image img {
  will-change: transform;
}