/* ===================================
   Modern Agency - Main Stylesheet
   =================================== */

/* ===== Variables ===== */
:root {
    /* Colors */
    --primary-color: #4c0ee9;  /* Vibrant purple-blue primary color */
    --primary-dark: #3a0bb5;   /* Darker shade for hover states */
    --secondary-color: #10B981; /* Fresh green as secondary color */
    --accent-color: #F59E0B;   /* Warm amber for accents */
    --success-color: #10B981;  /* Green - success states */
    --error-color: #EF4444;    /* Red - error states */
    --warning-color: #F59E0B;  /* Yellow - warning states */
    --info-color: #3B82F6;     /* Blue - info states */
    
    /* Text Colors */
    --heading-color: #040404;   /* Nearly black for main headings */
    --text-color: #1F2937;      /* Dark gray for body text */
    --text-light: #646464;      /* Medium gray for subheadings */
    --text-muted: #9CA3AF;      /* Light gray for meta text */
    --white: #FFFFFF;           /* Pure white */
    --black: #000000;           /* Pure black */
    
    /* Background Colors */
    --bg-color: #F7F7F7;        /* Light gray background */
    --bg-light: #FFFFFF;        /* White background */
    --bg-dark: #111827;         /* Dark background */
    --overlay-color: rgba(0, 0, 0, 0.6); /* For overlays */
    
    /* Border Colors */
    --border-color: #E5E7EB;    /* Light border color */
    --border-dark: #D1D5DB;     /* Slightly darker border */
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.05); /* Subtle shadow */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-2xl: 4rem;    /* 64px */
    --spacing-3xl: 6rem;    /* 96px */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius: 0.375rem;     /* 6px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 1rem;      /* 16px */
    --radius-full: 9999px;  /* Full circle */
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== Base Styles ===== */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

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

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

/* ===== Typography ===== */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--heading-color);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--heading-color);
    line-height: 1.2;
}

.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 20px auto 40px;
    position: relative;
}

/* ===== Testimonials ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-slide {
    transition: all 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-image .image-wrapper {
    transition: all 0.5s ease-in-out;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Navigation ===== */
.navbar {
    padding: 25px 0;
}
/* Hamburger Icon Styles */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  padding: 10px;
  z-index: 1101;
}
/* Scrolled state: dark icon */
.navbar.scrolled .navbar-toggler {
    color: var(--text-color);
}

/* Show hamburger on mobile */
@media (max-width: 767.98px) {
  .navbar-toggler {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .navbar-collapse {
    display: none !important;
  }
}

/* Offcanvas Sidebar Styles */
.mobile-offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  background: #181c24;
  color: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.15);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  outline: none;
}
.mobile-offcanvas.show {
  transform: translateX(0);
}
.mobile-offcanvas-nav {
  width: 100%;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.offcanvas-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  cursor: pointer;
  transition: color 0.2s;
}
.offcanvas-close:hover {
  color: var(--primary-color);
}
.mobile-nav-list {
  list-style: none;
  margin: 2.5rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav-list .nav-link {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-radius: 6px;
  position: relative;
}

.mobile-nav-list .nav-link::after {
  display: none;
}
.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link:focus {
  color: var(--primary-color);
  background: rgba(255,255,255,0.06);
}

/* Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 1199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Prevent background scroll */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 992px) {
  .mobile-offcanvas, .mobile-menu-overlay {
    display: none !important;
  }
  .navbar-toggler {
    display: none !important;
  }
}


.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1001; /* Above offcanvas */
}

.logo-img {
    height: 34px;
    width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Logo container for positioning */
.navbar-brand {
    position: relative;
    display: inline-block;
    height: 34px; /* Match logo height */
    line-height: 0; /* Remove extra space below images */
}

/* Logo base styles */
.logo-img {
    display: block;
    height: 34px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Default state - show white logo, hide black */
.logo-white {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.logo-black {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

/* Scrolled state - show black logo, hide white */
.navbar.scrolled .logo-white {
    opacity: 0;
}

.navbar.scrolled .logo-black {
    opacity: 1;
}

/* Adjust logo size on scroll */
.navbar.scrolled .logo-img {
    height: 30px;
    width: 106px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .logo-img {
        height: 32px;
        width: 110px;
    }
    
    .navbar.scrolled .logo-img {
        height: 28px;
        width: 100px;
    }
}


/* ===== About Section ===== */
.about-image-wrapper {
    position: relative;
    padding-left: 40px;
    padding-top: 40px;
    margin-right: -40px;
}

.about-image {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    aspect-ratio: 4/5;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Ensure picture element takes full width */
.about-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    z-index: 1;
    transform: rotate(5deg);
    opacity: 0.1;
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    z-index: 3;
    min-width: 120px;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    margin-bottom: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Testimonials Section ===== */
.testimonial-content {
    position: relative;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(59, 130, 246, 0.1);
    line-height: 1;
    font-weight: 700;
    z-index: 1;
}

.testimonial-text {
    position: relative;
    z-index: 2;
}

.testimonial-text .lead {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
}

.client-info {
    padding-left: 30px;
    border-left: 3px solid var(--primary-color);
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.client-designation {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.testimonial-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.testimonial-image .image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.testimonial-rating i {
    color: #FFC107;
    font-size: 1.1rem;
}

.testimonial-image:hover img {
    transform: translateY(-5px);
}

.testimonial-rating {
    margin-top: 20px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-nav {
    margin-top: 30px;
}

.testimonial-nav .btn {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.testimonial-nav .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 80px 0 60px;
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: var(--heading-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* About Widget */
.footer-about p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Contact Info */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.footer-contact-info i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    font-size: 16px;
}

.footer-contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--primary-color);
}

/* Newsletter Form */
.newsletter-form .input-group {
    display: flex;
    margin-top: 20px;
}

.newsletter-form .form-control {
    height: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 5px 0 0 5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

.newsletter-form .btn-primary {
    border-radius: 0 5px 5px 0;
    padding: 0 20px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Copyright */
.copyright {
    background: var(--bg-light);
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

.copyright p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    flex: 1;
    padding-left: 20px;
}

.footer-bottom-links li {
    position: relative;
    margin: 0;
}

.footer-bottom-links li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -12px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 0;
    display: inline-block;
    white-space: nowrap;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-5px) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .footer-widget {
        margin-bottom: 40px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .copyright .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget .widget-title {
        margin-bottom: 20px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 10px 20px;
        justify-content: center;
    }
}

/* ===== Team Section ===== */
.team-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    height: 300px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px 20px 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-card:hover .team-social {
    transform: translateY(0);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.team-card:hover .social-icon {
    transform: translateY(0);
    opacity: 1;
}

.social-icon:nth-child(1) { transition-delay: 0.1s; }
.social-icon:nth-child(2) { transition-delay: 0.2s; }
.social-icon:nth-child(3) { transition-delay: 0.3s; }
.social-icon:nth-child(4) { transition-delay: 0.4s; }

.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) !important;
}

.team-info {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.team-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.team-card:hover .team-bio {
    max-height: 100px;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .team-img {
        height: 280px;
    }
    
    .team-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .team-card {
        margin-bottom: 30px;
    }
    
    .team-img {
        height: 320px;
    }
}

/* ===== Contact Section ===== */
.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.contact-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f7fa;
    border-radius: 50%;
    color: var(--heading-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    height: auto;
    min-height: 150px;
    resize: none;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .contact-form-wrapper {
        margin-top: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== Blog Section ===== */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--primary-dark);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .blog-card-img {
        height: 200px;
    }
}

@media (max-width: 767.98px) {
    .blog-card {
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .blog-card-img {
        height: 250px;
    }
}

/* ===== Clients Section ===== */
#clients {
    background-color: #f8f9fa;
}

.client-logo {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.client-logo span {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.client-logo:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) opacity(1);
}

.client-logo:hover span {
    opacity: 1;
    transform: translateY(0);
}

/* Grayscale to color effect */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover .grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .client-logo {
        padding: 20px 15px;
    }
    
    .client-logo img {
        max-height: 50px;
    }
}

/* ===== Mobile Menu Styles ===== */

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        z-index: 1000;
        overflow-y: auto;
        transition: all 0.4s ease-in-out;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar-nav {
        margin-top: 30px;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 15px;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333333 !important; /* Force dark color for better visibility */
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus,
    .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(76, 14, 233, 0.05);
        padding-left: 10px;
    }
    
    /* Navigation container with flex layout */
    .navbar-collapse {
        display: flex;
        flex-direction: column;
    }
    
    /* Push nav items to the top and info button to bottom */
    .navbar-nav {
        flex: 1;
        margin-bottom: 20px;
        overflow-y: auto;
    }
    
    .navbar .info-toggler {
        margin-top: auto; /* Push to bottom */
        margin-bottom: 20px;
        margin-left: 0;
        width: 100%;
        padding: 12px;
        background-color: var(--primary-color);
        color: white !important;
        border: none;
        border-radius: 6px;
        text-align: center;
        font-weight: 500;
        position: sticky;
        bottom: 0;
        z-index: 1001;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar .info-toggler:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }
}

/* Add overlay when mobile menu is open */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Video Section ===== */
.video-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

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

.video-bg picture,
.video-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.1);
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.video-section .container {
    position: relative;
    z-index: 3;
    padding: 40px 0;
}

.video-section .section-subtitle {
    color: white;
    margin-bottom: 15px;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    width: 100%;
}

.video-section .section-title {
    color: white;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    max-width: 100%;
}

.video-section .divider {
    margin: 20px auto 30px;
    background: var(--primary-color);
    height: 3px;
    width: 80px;
    position: relative;
}

.video-play-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.video-play-button {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.video-play-button:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-play-button i {
    margin-left: 4px; /* Adjust play icon position */
}

.video-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 20px;
}

.pulse-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.pulse-animation.delay-1 {
    animation-delay: 0.33s;
}

.pulse-animation.delay-2 {
    animation-delay: 0.66s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Video Popup */
.video-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup-container.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.video-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.video-popup-container.active .video-popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-popup-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

/* Responsive styles for video section */
@media (max-width: 991.98px) {
    .video-section {
        padding: 100px 0;
        min-height: 70vh;
    }
    
    .video-play-button {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .video-section {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .video-section h2 {
        font-size: 1.8rem;
    }
    
    .video-play-button {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }
}

/* ===== Portfolio Section ===== */
.portfolio-filter {
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    margin: 0 10px;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--primary-color);
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 60%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0 15px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
    background: #f8f9fa;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transform: translateY(20px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-content {
    width: 100%;
    color: #fff;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-item:hover .portfolio-category {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.portfolio-item:hover .portfolio-title {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-load-more {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: 2px solid var(--primary-color);
}

.btn-load-more:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Portfolio Responsive */
@media (max-width: 991.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-img {
        aspect-ratio: 4/5;
    }
}

@media (max-width: 575.98px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .portfolio-img {
        aspect-ratio: 3/4;
    }
}

@media (max-width: 767.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .filter-btn {
        margin: 5px;
        padding: 6px 15px;
        font-size: 0.8125rem;
    }
}

/* ===== Services Section ===== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    position: relative;
    border-radius: 3px;
    overflow: visible;
}

/* Service Cards */
.service-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 28px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link i {
    margin-left: 8px;
    font-size: 0.8em;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Centered Navigation */
.navbar > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-collapse {
    flex-grow: 1;
    display: flex !important;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-width: 800px;
    padding: 0 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 10px 16px !important;
    margin: 0 2px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.8rem;
    position: relative;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

/* Navigation link hover states when navbar is transparent */
.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--text-muted) !important;
}

.navbar:not(.scrolled) .nav-link::after {
    background-color: var(--white);
}

/* Change colors when navbar is scrolled */
.navbar.scrolled .nav-link {
    color: var(--text-color) !important;
    text-shadow: none;
}



/* When navbar is scrolled, change to outline style */
.navbar.scrolled .btn-outline-primary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.navbar.scrolled .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: var(--transition);
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    /* background-color: rgba(255, 255, 255, 0.1); */
}

/* Hover and active states when scrolled */
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
    opacity: 1;
}

/* Info Button */
.navbar .info-toggler {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--bg-light);
    color: var(--white);
    white-space: nowrap;
}

.navbar .info-toggler:hover {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Offcanvas Styles */
.offcanvas {
    background-color: var(--bg-light);
    border-left: 1px solid var(--border-color);
    max-width: 380px;
    width: 100%;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.offcanvas-title {
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas .btn-close {
    padding: 0.5rem;
    background-size: 0.8em;
    opacity: 0.7;
    transition: var(--transition);
}

.offcanvas .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ===== Hero Section ===== */
/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    isolation: isolate;
    color: var(--white);
}

/* Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.85) 0%, rgba(30, 64, 123, 0.85) 100%);
    z-index: -1;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
.hero-title {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 278px;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(76, 14, 233, 0.35);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(76, 14, 233, 0.4);
}

.hero-buttons .btn-outline-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.hero-buttons .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-buttons .btn-outline-primary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-buttons .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}


.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--white);
    font-size: 1.5rem;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.scroll-down a:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
    position: relative;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 10px 0 !important;
        margin: 5px 0;
        display: block;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}