/* 
  Mini Enterprises - Premium Industrial Design System
  Colors: Dark Blue (#0a1f44), Charcoal Grey (#1f2937), Orange Accent (#f97316)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Global Animations --- */
@keyframes siteReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
  --primary: #0a1f44;
  --primary-light: #1e293b;
  --secondary: #1f2937;
  --accent: #ff6000; /* Vibrant Orange */
  --accent-hover: #e65100;
  --secondary-accent: #ffffff; /* Clean White */
  --bg-light: #f8fafc;
  --bg-dark: #020617;
  --text-main: #e2e8f0; /* Light Gray for main text */
  --text-muted: #94a3b8; /* Slate Blue for secondary text */
  --white: #ffffff;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark); /* Changed to dark for smooth loading */
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary); /* Headings default to dark for visibility */
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.08) brightness(1.05); /* Increased clarity/pop */
  transition: var(--transition);
}

section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
}

.section-light {
  background-color: var(--white);
  color: var(--primary);
}

.section-light .section-header h2 {
  color: var(--primary);
}

.section-light p,
.section-light .about-text p,
.section-light .about-text span,
.section-light .content-block p {
  color: var(--primary-light) !important;
  opacity: 1 !important;
}

.section-light .about-text h2, 
.section-light .about-text h3 {
  color: var(--primary);
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(10, 31, 68, 0.3);
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: var(--primary);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

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

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
  background: var(--bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.6), rgba(10, 31, 68, 0.3));
  mix-blend-mode: multiply; /* Tints the image with the blue gradient */
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(2, 6, 23, 0.8)); /* Smoother transition to content */
  z-index: 1;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* Subtle dark overlay for better text contrast */
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: bgZoom 20s infinite alternate;
}

@keyframes bgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  width: 100%;
  padding: 0 20px;
}

.hero-tagline {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 15px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-brand {
  font-size: 7.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
  font-style: italic; /* Changed font style per user request */
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-left {
  display: inline-block;
  color: var(--white);
  text-shadow: 0 0 30px rgba(10, 31, 68, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: translateX(-120px);
}

.brand-dot {
  display: inline-block;
  color: var(--white);
  opacity: 0;
  transform: scale(0);
}

.brand-right {
  display: inline-block;
  background: linear-gradient(to bottom, #ff9d00, #ff6000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateX(120px);
}

.hero-legacy {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-accent); /* Clean White */
  margin-bottom: 30px;
  line-height: 1.3;
  opacity: 0;
}

.hero-content p {
  font-size: 1.1rem;
  color: #e2e8f0; /* Very light blue-white */
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0;
  /* Removed transform for subtle fade */
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  /* Removed transform for subtle fade */
}

.hero-btns .btn {
  padding: 16px 40px;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-btns .btn-primary {
  background: rgba(249, 115, 22, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249, 115, 22, 1);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.hero-btns .btn-primary:hover {
  background: rgba(249, 115, 22, 1);
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.6);
  transform: translateY(-3px) scale(1.02);
}

.hero-btns .btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-btns .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Hero Animations */
.hero.active .hero-brand { animation: growBrand 2s ease-out forwards; }
.hero.active .brand-left { animation: slideMeetLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero.active .brand-right { animation: slideMeetRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero.active .hero-legacy { animation: slideUpFromBottom 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero.active .hero-content p { animation: paragraphReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero.active .hero-btns { animation: softFadeIn 1.2s ease-out forwards; }

@keyframes slideMeetLeft {
  0% { opacity: 0; transform: translateX(-300px) scale(0.7) skewX(-15deg); filter: blur(15px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) scale(1) skewX(0); filter: blur(0); }
}
@keyframes slideMeetRight {
  0% { opacity: 0; transform: translateX(300px) scale(0.7) skewX(15deg); filter: blur(15px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateX(0) scale(1) skewX(0); filter: blur(0); }
}
@keyframes popInDot {
  0% { opacity: 0; transform: scale(4) translateY(-30px); filter: blur(10px) brightness(3); }
  50% { filter: brightness(2); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0) brightness(1); }
}
@keyframes slideUpFromBottom {
  0% { opacity: 0; transform: translateY(50vh); filter: blur(10px); }
  70% { transform: translateY(-10px); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes paragraphReveal {
  0% { opacity: 0; transform: translateY(30px); letter-spacing: -2px; filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); letter-spacing: normal; filter: blur(0); }
}
@keyframes softFadeIn {
  to { opacity: 1; }
}
@keyframes growBrand {
  from { 
    transform: scale(1); 
  }
  to { 
    transform: scale(1.15); 
  }
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  margin-bottom: 40px; /* Reduced from 60px */
}

.section-header span {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 20px;
  color: var(--white); /* Default for dark sections */
}

.section-light .section-header h2,
.services-section .section-header h2,
.team-structure .section-header h2 {
  color: var(--primary) !important;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
}

.section-header h2.left-aligned::after {
  left: 0;
  transform: none;
}

/* --- About Section --- */
.service-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-image-container {
        order: -1; /* Move image to top on mobile */
        max-width: 100%;
    }
    .service-image-container img {
        width: 100%;
        height: auto;
    }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Balanced 1:1 ratio for larger images */
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.about-img {
  position: relative;
  max-width: 550px; /* Increased from 450px for better desktop presence */
  width: 100%;
  margin: 0 auto;
}

.about-img img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  animation: floatCard 6s ease-in-out infinite;
  border-right: 8px solid var(--accent);
  border-bottom: 8px solid var(--accent);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.about-img:hover img {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(255, 96, 0, 0.2);
}

.about-img::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  z-index: -1;
  border-radius: 8px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-img:hover::after {
  transform: translateZ(-20px) rotateY(-10deg) scale(0.95);
  opacity: 0.5;
}


.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-main);
}

.experience-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 20px;
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  border-left: 5px solid var(--accent);
  border-radius: 4px;
}

.experience-tag h4 {
  font-size: 2.5rem;
  color: var(--accent);
}

.experience-tag p {
  color: var(--primary) !important;
  opacity: 0.9;
}

/* --- Services --- */
.services-section {
  background-color: #f1f5f9;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  width: calc(33.333% - 20px);
  min-width: 300px;
  flex-grow: 0;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent) !important; /* Force vibrant orange */
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary); /* Absolute visibility on white card */
  transition: var(--transition);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.read-more i {
  width: 18px !important;
  height: 18px !important;
  margin-bottom: 0 !important;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .read-more {
  color: var(--white);
}

.service-card:hover i {
  color: var(--white);
  transform: translateX(5px);
}

.service-card:hover .read-more i {
  transform: translateX(5px);
}
/* --- Why Choose Us Section --- */
.why-choose-us {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 100px 0;
}

.why-choose-us .section-header span,
.why-choose-us .section-header h2 {
  color: var(--white);
}

.features-list h4 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.features-list p {
  color: var(--text-muted);
}

/* --- Counters --- */
.counters {
  background-color: var(--primary);
  padding: 80px 0;
  color: var(--white);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.counter-item h3 {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.counter-item p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--white);
  transform: translateY(50px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.project-overlay p {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Clients Slider --- */
.slider-container {
  overflow: hidden;
  padding: 50px 0;
  white-space: nowrap;
  position: relative;
}

/* Gradient fade masks for smooth entry/exit */
.slider-container::before,
.slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 100px;
}

@media (max-width: 480px) {
  .slider-container::before, .slider-container::after { width: 50px; }
}

.slider-container::before {
  left: 0;
  background: linear-gradient(to right, #020617 0%, rgba(2, 6, 23, 0) 100%);
}

.slider-container::after {
  right: 0;
  background: linear-gradient(to left, #020617 0%, rgba(2, 6, 23, 0) 100%);
}

.slider-wrapper {
  display: inline-flex;
  align-items: center;
  animation: scroll 45s linear infinite;
  width: max-content;
}

.slider-wrapper:hover {
  animation-play-state: paused;
}

.client-slide-text {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 30px;
  padding: 15px 35px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(10, 31, 68, 0.05);
  background: linear-gradient(135deg, var(--accent), #10b981, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* --- Before & After --- */
.comparison-section {
  background-color: #111827;
  color: var(--white);
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-before {
  z-index: 1;
}

.comparison-after {
  z-index: 2;
  width: 50%;
  border-right: 4px solid var(--accent);
  overflow: hidden;
}

.comparison-after img {
  width: 900px; /* Must match container max-width */
  max-width: none;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .comparison-wrapper { aspect-ratio: 4/3; }
  .comparison-after img { width: 100vw; }
}

.comparison-label {
  position: absolute;
  bottom: 20px;
  background: var(--accent);
  color: var(--white);
  padding: 5px 15px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 3;
}

.label-before { left: 20px; }
.label-after { right: 20px; }

/* --- CTA Section --- */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0c4a6e 100%);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .cta { padding: 60px 20px; }
  .cta h2 { font-size: 2rem; }
  .cta p { font-size: 1rem; }
}

/* --- Footer --- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 25px;
  display: inline-block;
  font-size: 2.2rem;
}

.footer-brand p {
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links li a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--white);
  padding-left: 8px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.footer-contact li a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  display: block;
}

.footer-contact li a:hover {
  color: var(--white);
}

.footer-contact i {
  color: var(--accent); /* Orange icons for professional look */
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-contact span, .footer-contact a {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1); /* More visible circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a svg, .footer-social a i {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}
/* --- Responsive Footer & Global Overrides --- */
@media (max-width: 768px) {
  footer {
    padding: 40px 20px 0;
    text-align: left;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    margin-bottom: 30px;
  }

  .footer-brand {
      grid-column: 1 / -1;
      margin-bottom: 10px;
  }

  .footer-brand, .footer-links, .footer-contact {
    display: block;
    text-align: left;
  }

  .footer-brand .logo {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    margin: 0 0 12px;
    color: var(--text-muted);
  }

  .footer-title {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .footer-title::after {
    left: 0;
    transform: none;
    bottom: -4px;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .footer-links li { 
    margin-bottom: 6px; 
  }

  .footer-links li a {
    font-size: 14px;
    padding: 2px 0;
    display: inline-block;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
  }

  .footer-contact .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact li {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
  }

  .footer-contact i {
      font-size: 1.1rem;
      flex-shrink: 0;
      margin-top: 2px;
  }

  .footer-contact span, .footer-contact a {
    font-size: 13px;
    text-align: left;
    max-width: 250px;
    display: inline-block;
  }

  .footer-bottom {
    flex-direction: column;
    padding: 20px 16px;
    gap: 10px;
  }

  .footer-bottom p {
    order: 2;
    font-size: 13px;
  }

  .footer-bottom-links {
    order: 1;
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom-links a {
    font-size: 13px;
    padding: 4px 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
  

}

/* --- Hero & Brand Mobile Scaling --- */
@media (max-width: 900px) {
  .hero-brand { font-size: 5rem; }
}

@media (max-width: 480px) {
  .hero-brand { 
    flex-direction: row !important; 
    text-align: center !important; 
    gap: 4px !important;
    margin-bottom: 24px !important;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.5) !important;
    letter-spacing: -0.5px !important;
    opacity: 1 !important; 
    font-size: 5.2rem !important;
  }
  
  .brand-left {
    font-size: 1em !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    transform: none !important;
    opacity: 1 !important;
    display: inline-block !important;
  }

  .brand-right {
    font-size: 1em !important;
    font-weight: 900 !important;
    color: var(--accent) !important;
    transform: none !important;
    opacity: 1 !important;
    display: inline-block !important;
  }

  .hero-legacy { 
    font-size: 0.9rem !important; 
    line-height: 1.4 !important;
    padding: 0 10px !important;
    opacity: 1 !important; 
    color: rgba(255,255,255,0.85) !important;
  }
  
  .hero-content p { 
    font-size: 0.8rem !important; 
    line-height: 1.4 !important; 
    padding: 0 5px !important; 
    opacity: 0.9 !important; 
  }
}
  
  /* Prevent any shifted layout by killing AOS horizontal motion on tiny screens */
  [data-aos^="fade"][data-aos^="fade"] {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 320px) {
  .hero-brand { font-size: 2rem !important; }
  .hero-content { padding: 0 5px; }
}

/* --- General Responsive Overrides for Inline Grids --- */
@media (max-width: 991px) {
  .service-detail-grid, 
  .mission-vision,
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  .service-detail-section:nth-child(even) .service-detail-grid {
    direction: ltr !important;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item::after { left: 21px; }
  .left, .right { text-align: left; left: 0; }
  
  .container { padding: 0 15px; }
}



.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary);
    padding: 100px 40px;
    transition: var(--transition);
  }
  
  nav.active { right: 0; }
  
  nav ul {
    flex-direction: column;
    gap: 25px;
  }
  
  .menu-toggle { display: block; }
  
  .hero-content h1, .hero-brand { font-size: 4rem; letter-spacing: -2px; }
  .counters-grid { grid-template-columns: 1fr; }
  
  .section-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
}

/* --- Inner Heroes & Service Heroes (Animated Backgrounds) --- */
.inner-hero, .service-hero {
  height: 45vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #020617 0%, #0a1f44 50%, #172554 100%); /* Deeper, more dynamic blue gradient */
}

.inner-hero::before, .service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: none !important; /* Explicitly remove any background images */
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 20s linear infinite alternate;
  filter: brightness(0.65); /* Professional darkening for text clarity */
}

.inner-hero h1, .service-hero h1, .service-hero p {
  position: relative;
  z-index: 2; /* Keep text above animated background */
}

.inner-hero h1, .service-hero h1 {
  color: var(--white) !important;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
  .hero-content h1, .hero-brand { font-size: 8.5vw !important; letter-spacing: -0.5px; }
  .inner-hero h1, .service-hero h1 { font-size: 1.7rem !important; }
  .section-header h2 { font-size: 1.6rem !important; }
  .hero-btns { gap: 10px; }
  .btn { padding: 12px 25px; font-size: 0.9rem; }
}

/* --- Utility Grids --- */
.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.info-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 15px;
  border-top: 5px solid var(--primary);
  transition: var(--transition);
}

.specialized-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.project-mini-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  flex: 0 1 320px;
  transition: var(--transition);
}

.project-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-box-circle {
  width: 50px;
  height: 50px;
  background: rgba(255, 96, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-circle i {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

/* --- Mobile Overrides (768px and below) --- */
@media (max-width: 768px) {
  .responsive-grid-3, .responsive-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 480px) {
  .specialized-grid {
    gap: 15px; /* Tighter gap for 2-column mobile */
  }

  .project-mini-card {
    flex: 0 1 calc(50% - 8px); /* Forces 2 columns */
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
    justify-content: center;
    gap: 10px;
  }
  
  .project-mini-card h4 {
    font-size: 0.85rem !important;
    line-height: 1.3;
  }

  .icon-box-circle {
    width: 40px;
    height: 40px;
  }

  .info-card {
    padding: 20px;
  }
}


/* --- Developer Link --- */
.developer-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    width: 100%;
}

.developer-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.developer-link a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.developer-link i {
    color: var(--accent);
}

@media (max-width: 768px) {
  .inner-hero, .service-hero {
    height: 40vh;
  }
  .inner-hero h1, .service-hero h1 {
    font-size: 2.25rem;
  }
}
