:root{
  --bg:#ffffff; --text:#1f2937; --muted:#6b7280; --accent:#0d6efd; --card:#f8fafc;
}
[data-theme='dark']{
  --bg:#0b1220; --text:#e6eef8; --muted:#9aa6b2; --accent:#66b2ff; --card:#071222;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--text);font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;line-height:1.6}

/* Premium Header Styling */
header{background:linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);box-shadow:0 4px 20px rgba(0,0,0,0.08);border-bottom:none !important}
[data-theme='dark'] header{background:linear-gradient(135deg, #1a2d47 0%, #0b1220 100%);box-shadow:0 4px 20px rgba(0,0,0,0.3)}

.navbar{padding:1.2rem 0 !important;min-height:80px}
.navbar-brand{font-size:1.4rem;font-weight:800;letter-spacing:0.5px;color:var(--text) !important}
.navbar-brand img{width:56px;height:56px;box-shadow:0 4px 12px rgba(13,110,253,0.2);transition:transform 0.3s ease}
.navbar-brand img:hover{transform:scale(1.05)}

.navbar-nav .nav-link{padding:0.75rem 1.2rem !important;margin:0 0.3rem;font-weight:600;color:var(--text) !important;letter-spacing:0.3px;transition:all 0.3s ease;border-radius:6px}
.navbar-nav .nav-link:hover{background:rgba(13,110,253,0.1);color:var(--accent) !important}
.navbar-nav .nav-link.active{background:rgba(13,110,253,0.15);color:var(--accent) !important;border-bottom:3px solid var(--accent)}

#themeToggle{width:48px;height:40px;border-radius:8px;background:rgba(13,110,253,0.1) !important;font-size:1.2rem;transition:all 0.3s ease}
#themeToggle:hover{background:rgba(13,110,253,0.2) !important;transform:scale(1.05)}

@media(max-width:991px){
  .navbar-collapse{background:rgba(255,255,255,0.98);border-radius:0 0 12px 12px;padding:1rem 0}
  [data-theme='dark'] .navbar-collapse{background:rgba(11,18,32,0.98)}
}
.hero-section{min-height:60vh;background-size:cover;background-position:center;display:flex;align-items:center;padding:4rem 0;position:relative}
.hero-section::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.4);z-index:1}
.hero-section .container{position:relative;z-index:2}
h1,h2,h3{color:var(--text)}
.hero-section h1, .hero-section .lead{color:#ffffff;text-shadow:0 2px 4px rgba(0,0,0,0.3)}
.lead{color:var(--muted)}
img{max-width:100%;height:auto}
.card{background:var(--card);border:0}
.card.service-card{background:none !important}
button#themeToggle{width:44px;height:36px}
@media (max-width:767px){.hero-section{padding:4rem 1rem}.display-5{font-size:1.75rem}}
a:focus, button:focus, input:focus{outline:3px solid rgba(13,110,253,.15);outline-offset:2px}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Branding tweaks for SRS Interio */
.brand-name{font-weight:700;color:var(--text);letter-spacing:0.2px}
.btn-primary{background:var(--accent);border-color:var(--accent)}

/* Small animation helpers */
.fade-in{animation:fadeInUp .6s ease both}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* Gallery / project images: fixed-height thumbnails with cover-fit */
.project-img{width:100%;height:420px;object-fit:cover;display:block}

@media (max-width:991px){
  .project-img{height:320px}
}
@media (max-width:575px){
  .project-img{height:220px}
}

/* Gallery carousel: 3-column grid layout with crossfade between sets */
.gallery-carousel{max-width:1200px;margin:0 auto;position:relative;padding:0 60px}
.gallery-carousel .carousel-inner{height:auto;padding:0}
.gallery-carousel .carousel-item{height:auto;padding:0}
.gallery-carousel .gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:0}
.gallery-carousel .gallery-grid img{width:100%;height:300px;object-fit:cover;display:block;border-radius:0.5rem;transition:transform 0.3s ease}
.gallery-carousel .gallery-grid img:hover{transform:scale(1.03)}

/* Gallery carousel controls: positioned at edges */
.gallery-carousel .carousel-control-prev,
.gallery-carousel .carousel-control-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  background:linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
  border:2px solid #ffffff;
  box-shadow:0 4px 16px rgba(13,110,253,0.4);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.3s ease;
  z-index:10;
}
.gallery-carousel .carousel-control-prev:hover,
.gallery-carousel .carousel-control-next:hover{
  background:linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
  box-shadow:0 6px 20px rgba(13,110,253,0.6);
  transform:translateY(-50%) scale(1.1);
}
.gallery-carousel .carousel-control-prev{left:-30px}
.gallery-carousel .carousel-control-next{right:-30px}
.gallery-carousel .carousel-control-prev-icon,
.gallery-carousel .carousel-control-next-icon{
  filter:invert(1) brightness(1.2);
  width:20px;
  height:20px;
}

@media (max-width:991px){
  .gallery-carousel{padding:0 50px}
  .gallery-carousel .carousel-control-prev{left:-25px}
  .gallery-carousel .carousel-control-next{right:-25px}
  .gallery-carousel .carousel-control-prev,
  .gallery-carousel .carousel-control-next{width:48px;height:48px}
  .gallery-carousel .gallery-grid{grid-template-columns:repeat(2,1fr);gap:1rem}
  .gallery-carousel .gallery-grid img{height:240px}
}
@media (max-width:575px){
  .gallery-carousel{padding:0 45px}
  .gallery-carousel .carousel-control-prev{left:-20px}
  .gallery-carousel .carousel-control-next{right:-20px}
  .gallery-carousel .carousel-control-prev,
  .gallery-carousel .carousel-control-next{width:44px;height:44px}
  .gallery-carousel .gallery-grid{grid-template-columns:1fr;gap:0.75rem}
  .gallery-carousel .gallery-grid img{height:200px}
}




/* Rich dark-mode surfaces and improved contrast for key sections */
[data-theme='dark'] body{background:linear-gradient(180deg,#071122 0%, #061018 100%);} 

/* Make cards feel elevated and legible in dark mode */
[data-theme='dark'] .card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(2,6,23,0.5), inset 0 1px 0 rgba(255,255,255,0.02);
}

[data-theme='dark'] .lead{color:rgba(255,255,255,0.9)}
[data-theme='dark'] h1,h2,h3,h4,h5{color:rgba(255,255,255,0.95)}

/* Services section specific polish */
[data-theme='dark'] #servicesSection{background:linear-gradient(180deg, rgba(12,20,30,0.4), rgba(6,10,16,0.15));padding:3rem 0;border-radius:8px}
[data-theme='dark'] #servicesSection .card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border-color:rgba(255,255,255,0.04)}
[data-theme='dark'] #servicesSection .card h5{color:var(--text);opacity:0.98}
[data-theme='dark'] #servicesSection .card p{color:rgba(255,255,255,0.78)}

/* Accent underline for section headings */
.section-accent{position:relative}
.section-accent::after{content:'';display:block;width:60px;height:4px;border-radius:2px;margin-top:12px;background:linear-gradient(90deg,var(--accent), #66b2ff)}

/* Gallery section styling - fix dark theme visibility */
#galleryHeading{color:var(--text);font-weight:800;font-size:2.5rem;margin-bottom:0.5rem;letter-spacing:-0.5px}
.gallery-description{color:var(--text);font-size:1.1rem;line-height:1.8;margin-bottom:2rem;max-width:700px;margin-left:auto;margin-right:auto}
.gallery-description strong{color:var(--accent);font-weight:700}

/* Light theme - gallery section background */
.py-5.bg-light{background-color:#f9fafb}

/* Dark theme - gallery section background (force higher contrast) */
[data-theme='dark'] .py-5.bg-light{background-color:#0f1720 !important}

/* Ensure gallery section headings are always visible in dark mode */
[data-theme='dark'] #galleryHeading{color:#ffffff; text-shadow:0 2px 6px rgba(2,6,23,0.6);}
[data-theme='dark'] .gallery-description{color:#cfe6ff; text-shadow:0 1px 3px rgba(2,6,23,0.45)}


/* Team section - stylized cards (diagonal header + overlapping avatar) */
.team-section{padding:4rem 0}
.team-heading{font-size:2.6rem;font-weight:900;color:var(--text);margin-bottom:0.75rem;letter-spacing:-0.6px;text-align:center}
.team-subheading{color:var(--muted);font-size:1.05rem;margin-bottom:2.5rem;line-height:1.6;text-align:center;max-width:880px;margin-left:auto;margin-right:auto}

.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:2rem;margin-top:2.5rem;align-items:start}

.team-card{position:relative;overflow:visible}
.team-card-inner{position:relative;background:linear-gradient(180deg,#ffffff,#ffffff);border-radius:10px;padding-top:36px;padding-bottom:24px;box-shadow:0 10px 30px rgba(2,6,23,0.06);border:6px solid rgba(255,255,255,1)}

/* colored diagonal header */
.card-accent{height:110px;border-radius:8px 8px 0 0;position:relative;transform:skewY(-6deg);transform-origin:left top;margin:-24px 18px 0 18px}
.card-accent-inner{height:100%;transform:skewY(6deg);border-radius:6px 6px 0 0;display:block}

/* avatar overlapping */
.avatar{
  position:absolute;
  right:22px;
  top:44px;
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  border:5px solid rgba(255,255,255,0.95);
  box-shadow:0 20px 40px rgba(0,0,0,0.22);
  background:linear-gradient(140deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.35) 60%, rgba(255,255,255,0.1) 100%);
}

/* Paper-style backing to mimic an “image pasted on top” look */
.avatar::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  background:rgba(255,255,255,0.45);
  transform:rotate(-4deg);
  z-index:-1;
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  filter:contrast(1.05);
}

.card-body{padding:1.25rem 1.25rem 1.5rem 1.25rem;background:transparent}
.team-name{font-size:1.1rem;font-weight:800;color:var(--text);margin:0 0 6px 0}
.team-role{font-size:0.85rem;color:var(--accent);font-weight:700;margin-bottom:12px;text-transform:uppercase;letter-spacing:0.8px}
.about-title{font-weight:700;color:var(--text);margin:0 0 8px 0;font-size:0.95rem}
.team-bio{color:var(--muted);font-size:0.9rem;line-height:1.6;margin:0}

/* accents (use on .team-card to set color) */
.accent-blue .card-accent-inner{background:linear-gradient(90deg,#0d6efd,#0b5ed7)}
.accent-teal .card-accent-inner{background:linear-gradient(90deg,#20c997,#2cc48a)}
.accent-yellow .card-accent-inner{background:linear-gradient(90deg,#ffb84d,#ff9a2e)}
.accent-orange .card-accent-inner{background:linear-gradient(90deg,#ff804d,#ff5e3a)}

/* border frame effect */
.team-card::after{content:'';position:absolute;left:8px;right:8px;top:8px;bottom:8px;border:3px solid rgba(255,255,255,0.6);z-index:-1;border-radius:12px}

/* Dark theme adjustments */
[data-theme='dark'] .team-card-inner{background:#071122;border:1px solid rgba(255,255,255,0.02)}
[data-theme='dark'] .team-card::after{border-color:rgba(255,255,255,0.06)}
[data-theme='dark'] .team-name{color:var(--text)}
[data-theme='dark'] .team-bio{color:rgba(255,255,255,0.75)}

@media (max-width:991px){
  .team-heading{font-size:2rem}
  .card-accent{height:90px;margin-left:14px;margin-right:14px}
  .avatar{right:18px;top:36px;width:72px;height:72px}
}
@media (max-width:767px){
  .team-grid{grid-template-columns:1fr}
  .card-accent{margin-left:12px;margin-right:12px}
  .avatar{position:relative;right:auto;top:auto;margin:-42px auto 6px;display:block}
  .team-card-inner{padding-top:18px}
}


/* Hero carousel (full-area crossfade) */
.hero-carousel{position:absolute;inset:0;z-index:0}
.hero-carousel .carousel-inner{height:100%}
.hero-carousel .carousel-item{height:100%}
.hero-carousel img{width:100%;height:100%;object-fit:cover;display:block}
.carousel-fade .carousel-item{transition:opacity .8s linear}
.carousel-indicators{bottom:18px}
.carousel-control-prev,.carousel-control-next{width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,0.35);display:flex;align-items:center;justify-content:center;border:0}
.carousel-control-prev-icon,.carousel-control-next-icon{filter:invert(1) brightness(2)}

@media (max-width:767px){
  .carousel-control-prev,.carousel-control-next{width:36px;height:36px}
}







