/* =========================================
   VARIABLES & THEME CONFIGURATION
   ========================================= */
:root {
    /* Light Mode Variables */
    /* --bg-color: #eef9ff; 
    --surface-color: #abe3ff;
    --text-color: #0c0e11;
    --text-muted: #4b5359;
    --primary-color: #5B9ECE;
    --primary-dark: #3e729b;
    --secondary-color: #E6AF2E;
    --secondary-dark: #b48925;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.616);
    --overlay-color: rgba(11, 19, 25, 0.763);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */

    /* Light Mode - Crisp, Trustworthy, Elegant */
    --bg-color: #FFFFFF;              /* Pure white for maximum crispness */
    --surface-color: #F4F9FC;         /* A very subtle icy baby-blue tint for cards/sections */
    --text-color: #1A2634;            /* Deep slate navy instead of harsh black */
    --text-muted: #5A6B7C;            /* Legible, sophisticated gray-blue */
    --primary-color: #7ABBE0;         /* Refined Corporate Baby Blue */
    --primary-dark: #5A9BC0;          /* Slightly deeper blue for hover states */
    --secondary-color: #E6AF2E;       /* Classic Premium Gold */
    --secondary-dark: #b48925;        /* Deeper gold for hover/shadows */
    --border-color: #E2EDF3;          /* Soft boundary lines */
    --shadow: 0 12px 36px rgba(26, 38, 52, 0.06); /* Softer, broader premium shadow */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --overlay-color: rgba(6, 12, 20, 0.75); /* Dark navy overlay for the hero text */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Toggle Switch Light Variables */
    --toggle-track-bg-light: #D4AF37; 
    --toggle-track-shadow-light: inset 0 2px 4px rgba(0,0,0,0.15);
    --toggle-sun-color: #ffffff;
    --toggle-moon-color: #1A2634;
}

[data-theme="dark"] {
    /* Dark Mode Variables */
    /* --bg-color: #0b1319;
    --surface-color: #15222E;
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --primary-color: #5B9ECE;
    --primary-dark: #4a86b3;
    --border-color: #2c3e50;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(11, 19, 25, 0.8);
    --overlay-color: rgba(11, 19, 25, 0.763); */

    /* Dark Mode - Deep, Luxurious, High-Contrast */
    --bg-color: #0A1118;              /* Rich Midnight Navy (feels much more premium than black) */
    --surface-color: #121E2B;         /* Slightly elevated navy for cards */
    --text-color: #F0F4F8;            /* Soft ice-white for readability */
    --text-muted: #A0B1C1;            /* Cool muted gray */
    --primary-color: #89CFF0;         /* Brighter Baby Blue to pop against dark navy */
    --primary-dark: #6BAED0;          
    --secondary-color: #E6AF2E;       /* Slightly brighter Gold to ensure contrast in dark mode */
    --secondary-dark: #b48925;        
    --border-color: #1C2D3D;          /* Subtle dark boundaries */
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.4); 
    --glass-bg: rgba(10, 17, 24, 0.85);
    --overlay-color: rgba(6, 12, 20, 0.75);
    /* Toggle Switch Dark Variables */
    --toggle-track-bg-light: #121E2B;
    --toggle-track-shadow-light: inset 0 2px 4px rgba(0,0,0,0.5);
}


/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.bg-surface {
    background-color: var(--surface-color);
}

.gold-text,
.logo-text {
    color: var(--secondary-color);
}


/* =========================================
   TYPOGRAPHY & BUTTONS
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}


/* =========================================
   PRELOADER & SCROLL
   ========================================= */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--surface-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.scroll-progress {
    position: fixed;
    top: 0; left: 0; height: 3px;
    background: var(--secondary-color);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}


/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 5px 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: transparent;
}

.navbar.scrolled {
    padding: 2px 0;
    background: var(--glass-bg);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    max-height: 45px; /* Adjust this number to make the logo bigger or smaller */
    width: auto;
    display: block;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Slight pop effect on hover */
}

.logo-text {
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    left: -13px;
    top: -10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* =========================================
   NAVBAR LINKS PREMIUM HOVER EFFECT
   ========================================= */

/* Prepare the link container for the animated line */
.navbar .nav-links a {
    position: relative;
    padding-bottom: 5px; /* Space between the text and the line */
    text-decoration: none;
}

/* Create the invisible line sitting at the bottom */
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;          /* Starts at 0 width (invisible) */
    height: 2px;       /* Thickness of the solid line */
    background-color: var(--secondary-color); /* Your Gold Accent */
    transition: width 0.3s ease-in-out; /* Smooth animation speed */
}

/* Expand the line to 100% width when hovered */
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
    width: 100%;
}

/* =========================================
   NAVBAR FONT COLOR DYNAMICS
   ========================================= */

/* 1. Light Mode - Top of page (Static): White Text */
body:not([data-theme="dark"]) .navbar:not(.scrolled) .nav-links a {
    color: #ffffff;
}

/* 2. Light Mode - Scrolled into view: Black Text */
body:not([data-theme="dark"]) .navbar.scrolled .nav-links a {
    color: #000000;
}

/* 3. Dark Mode - Always White Text for visibility */
body[data-theme="dark"] .navbar .nav-links a {
    color: #ffffff;
}

/* -----------------------------------------
   NEW REDEFINED CUSTOM TOGGLE (BASED ON USER IMAGE)
   ----------------------------------------- */
   .nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1005;
}

.switch {
    width: 30%;
    height: 100%;
    text-align: right;
    padding-right: 5px;
    position: relative;
    z-index: 10;
  }
  
  .switch input {
    position: fixed;
    transform: translateX(-100%);
    display: none;
  }
  
  .toy-toggle {
    background:    radial-gradient(at top left, #E6AF2E 10%, #E6AF2E 20%),    radial-gradient(at top right, #E6AF2E 20%, #E6AF2E 35%);
    border-radius: 6em;
    cursor: pointer;
    display: inline-block;
    font-size: 0.23rem;
    position: relative;
    margin: 10px 0 0 0;
    width: 20em;
    height: 12em;
    -webkit-tap-highlight-color: transparent;
  }
  
  .toy-toggle span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
  }
  
  .toy-toggle>span:not(.handle) {
    transform: translate(-50%, -50%);
  }
  
  .border1 {
    background: #E6AF2E;
    border-radius: 5.5em;
    box-shadow: 0 0 0.2em 0.1em #E6AF2E;
    width: 19em;
    height: 11em;
  }
  
  .border2 {
    background: linear-gradient(0deg, #E6AF2E 33%, #E6AF2E 45%);
    border-radius: 4.75em;
    box-shadow: 0 0 0.2em 0.3em #E6AF2E inset;
    width: 16.5em;
    height: 9.5em;
  }
  
  .border3,
  .handle {
    background: linear-gradient(90deg, var(--on) 50%, var(--off) 0);
  }
  
  .border3 {
    background-position: 75% 0;
    background-size: 200% 100%;
    border-radius: 4.25em;
    box-shadow:    0 0 0.1em 0.1em #E6AF2E inset,    0 1.5em 1.5em 1em #0004 inset,    0 0 0 4.25em #0002 inset;
    width: 15.5em;
    height: 8.5em;
    transition: background-position var(--transDur) ease-in-out;
  }
  
  .sun,
  .moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
  }
  
  .sun {
    left: 12px;
    color: var(--toggle-sun-color);
  }
  
  .moon {
    right: 15px;
    color: var(--toggle-moon-color);
  }
  
  .handle {
    border-radius: 50%;
    box-shadow: 0 0 0.5em 0 #0007;
    width: 8.5em;
    height: 8.5em;
    transform: translate(-95%, -50%);
    transition: transform 0.4s ease-in-out;
    z-index: 2;
  }
  
  .handle::before {
    background:    radial-gradient(2em 1.5em at 50% 35%, rgba(3, 128, 253, 0.4) 15%, #5B9ECE),    radial-gradient(1.5em 2.5em at 75% 40%, #fff6 15%, #E9F3ED),    radial-gradient(100% 100% at 50% 33%, #0000 25%, #0003 50%);
    border-radius: 50%;
    box-shadow: 0 0 0.3em 0.1em #0003 inset;
    content: " ";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
  }
  
  .handle-off,
  .handle-on {
    width: 50%;
    height: 100%;
    transition: transform calc(var(--transDur)/2);
    z-index: 2;
  }
  
  .handle-off {
    background: var(--off);
    border-radius: 100% 0 0 100% / 50% 50% 50% 50%;
    right: 50%;
    transform-origin: 100% 50%;
    transition-delay: calc(var(--transDur)/2);
    transition-timing-function: ease-out;
  }
  
  .handle-on {
    background: var(--on);
    border-radius: 0 100% 100% 0 / 50% 50% 50% 50%;
    left: 50%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition-timing-function: ease-in;
  }
  
  input:checked+.toy-toggle .border3 {
    background-position: 25% 0;
  }
  
  input:checked+.toy-toggle .handle {
    transform: translate(-10%, -50%);
  }
  
  input:checked+.toy-toggle .handle-off {
    transform: scaleX(0);
    transition-delay: 0s;
    transition-timing-function: ease-in;
  }
  
  input:checked+.toy-toggle .handle-on {
    transform: scaleX(1);
    transition-delay: cacl(var(--transDur)/2);
    transition-timing-function: ease-out;
  }

  /* hamburger and theme container reset */
    #theme-toggle, .hamburger {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        color: var(--text-color);
        font-size: 2.5rem;
        display: none;
    }


/* =========================================
   NEW HERO SECTION (FULL HEIGHT BACKGORUND & TEXT OVERLAY)
   ========================================= */
   .hero {
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0; /* Reset generic section padding */
}

/* New Background Layer */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1; /* Base layer */
}

/* NEW: 3D Canvas Layer */
#bg-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3; /* Sits above the image */
    pointer-events: none; /* Allows users to click buttons through the animation */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--overlay-color);
    z-index: 2; /* Sits above the 3D canvas to ensure text readability */
    transition: background-color 0.4s ease;
}

.hero-content {
    position: relative;
    z-index: 5; /* Text and buttons sit at the very front */
    max-width: 1100px;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 4.1rem;
    margin: 90px 0px 20px;
    color: #fff; /* Ensure generic white text for visibility */
}

/* Specific text muted for readability against white h1 */
.hero p {
    font-size: 1.2rem;
    color: #f1f1f1; 
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}


/* =========================================
   HERO FEATURES (PILLARS)
   ========================================= */
  /*  .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-features span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
} */

/* =========================================
   HERO FEATURES BOXES (NEUTRAL TO MUSTARD/GOLD)
   ========================================= */
   .hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the entire row perfectly */
    gap: 15px;
    margin-top: 100px;
    width: 100%;
}

.hero-feature-box {
    /* --- NEW ALIGNMENT RULES --- */
    flex: 1 1 auto;          /* Allows them to flexibly grow/shrink */
    min-width: 200px;        /* Keeps them from getting too squished on mobile */
    max-width: 280px;        /* Prevents them from stretching too wide on large screens */
    justify-content: center; /* Centers the icon and text inside the box itself */
    /* background: var(--glass-bg); */
    background: transparent;
    border-radius: 8px;          
    box-shadow: var(--shadow);   
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    /* color: var(--text-color); */
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    backdrop-filter: blur(10px);
}

.hero-feature-box i {
    font-size: 1.2rem;
    transition: color 0.4s ease;
}

/* THE HOVER STATE */
.hero-feature-box:hover {
    background: #E6AF2E;         
    color: #1A2634;              
    border-color: #E6AF2E;
    box-shadow: 0 15px 30px rgba(230, 175, 46, 0.3); 
    position: relative;
    top: -8px;          
}

.hero-feature-box:hover i {
    color: #1A2634 !important;   /* Makes the icon match the dark text */
}

/* =========================================
   HERO CONTINUOUS FADE-IN-OUT LOOP
   ========================================= */
/* Applying a 6-second infinite loop to the elements */
.hero-content h1 {
    animation: fadeLoop 10s ease-in-out infinite;
    opacity: 0; /* Starts hidden */
}
.hero-content p {
    animation: fadeLoop 10s ease-in-out infinite 0.3s;
    opacity: 0;
}
.hero-btns {
    animation: fadeLoop 10s ease-in-out infinite 0.6s;
    opacity: 0;
}

/* Staggering the feature boxes so they follow the text */
.stagger-animate .hero-feature-box {
    animation: fadeLoop 10s ease-in-out infinite;
    opacity: 0;
}
.stagger-animate .hero-feature-box:nth-child(1) { animation-delay: 0.9s; }
.stagger-animate .hero-feature-box:nth-child(2) { animation-delay: 1.1s; }
.stagger-animate .hero-feature-box:nth-child(3) { animation-delay: 1.3s; }
.stagger-animate .hero-feature-box:nth-child(4) { animation-delay: 1.5s; }

/* The Looping Keyframe Logic */
@keyframes fadeLoop {
    0%   { opacity: 0; transform: translateY(20px); }  /* Start slightly below and invisible */
    15%  { opacity: 1; transform: translateY(0); }     /* Fade in and lock into place */
    85%  { opacity: 1; transform: translateY(0); }     /* Hold perfectly still so users can read it */
    100% { opacity: 0; transform: translateY(-20px); } /* Smoothly float upward as it fades out */
}


/* =========================================
   AUTOMATIC MOVING PARTNERS SLIDER (MARQUEE)
   ========================================= */
   .marquee-section {
    overflow: hidden;
    padding: 40px 100px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 80px; /* Space between logos */
    animation: scrollMarquee 15s linear infinite; /* Adjust seconds to speed up/slow down */
}

.marquee-track:hover {
    animation-play-state: paused; /* Pauses the slider when user hovers over it */
}

.marquee-track img {
    height: 45px; /* Restrict logo height */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half the width to loop seamlessly */
}


/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.core-values {
    margin-top: 10px;
}

.core-values li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--secondary-color);
}

.stat-box h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}


/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* =========================================
   STRATEGY CARDS & READ MORE ARROW ANIMATION
   ========================================= */
/* Enhancing the service/strategy cards to pop on hover */
.blog-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* "Read More" Arrow Hover Animation */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.service-card:hover .read-more i,
.blog-card:hover .read-more i {
    transform: translateX(8px); /* Shoots the arrow to the right on hover */
    color: var(--secondary-color);
}

/* =========================================
   WHY CHOOSE US & NEW PERFECT FITTING OFFICE IMAGE
   ========================================= */
   .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-img {
    height: 400px;
}

/* CRITICAL: Perfect fitting, cover, object-position, block, shadow */
.img-fit {
    width: 100%; height: 100%;
    object-fit: cover; /* PERFECT FIT, COVER AND CROP */
    object-position: center; /* FOCUS ON CENTER */
    display: block; /* REMOVE WIERD SPACE */
    border-radius: 8px;
}

/* Specific Shadow for premium fitting images */
.img-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-block {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}


/* =========================================
   LEADERSHIP SECTION
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.img-fit {
    object-fit: cover;     /* CRITICAL: Crops the image to fit the box without distorting the aspect ratio */
    object-position: top;  /* Ensures the person's face/head isn't cut off if the image is tall */
}

.team-img.placeholder-img {
    height: 300px;
    border: none;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-info {
    padding: 25px;
}

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* =========================================
   BIO MODAL STYLES
   ========================================= */
   .btn-read-bio {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-read-bio:hover {
    background: var(--primary-color);
    color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.modal-body p { margin-bottom: 15px; }
.modal-body ul { margin-top: 10px; padding-left: 20px; }
.modal-body ul li { list-style-type: disc; margin-bottom: 5px; }


/* =========================================
   TESTIMONIALS
   ========================================= */
/* .testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 20px 0;
} */

/* =========================================
   CAROUSEL STYLES
   ========================================= */
   .carousel-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 50px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 40px;
    text-align: center;
    box-sizing: border-box;
}

.client-logo {
    max-height: 70px;
    margin-bottom: 25px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

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

.carousel-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0 15px 20px;
    color: var(--text-color);
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: var(--secondary-color); }


/* =========================================
   BLOG SECTION
   ========================================= */
   .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover { transform: translateY(-5px); }
.blog-content { padding: 25px; }

.blog-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 { font-size: 1.25rem; margin-bottom: 15px; }
.blog-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }


/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: rgba(0, 23, 43, 0.963);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: var(--secondary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #9ea6ad;
}

.inner-footer-bottom {
    color: #9da4ab;
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

/* Scroll Reveal Classes */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
}

    /* =========================================
   MOBILE RESIZING (NAVBAR & TOGGLE)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Resize the Gold Text / Logo Text */
    .logo-text {
        font-size: 0.65rem; /* Scaled down from 1.5rem */
    }

    /* 2. Resize the Logo (If you used the image logo above) */
    .logo {
        max-height: 35px; /* Slightly smaller for mobile headers */
    }

    /* 3. Resize the Custom Toggle Button */
    .toy-toggle {
        /* The original was 0.23rem. Lowering this single value shrinks the whole switch! */
        font-size: 0.16rem !important; 
    }

    .sun,
    .moon {
        font-size: 0.8rem;
    }
  
  .sun {
    left: 8px;
  }
  
  .moon {
    right: 10px;
  }
    
    /* Adjust the hamburger spacing to match the new smaller toggle */
    .switch {
        margin-right: 10px !important;
    }

    /* Give the hamburger icon a bit more clickable area and spacing */
    .hamburger {
        padding-left: 10px;
        font-size: 1.5rem; /* Slightly larger for easier tapping */
        display: block;
        position: relative;
        top: 2px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
        z-index: 1000;
    }

    .navbar.menu-open .switch {
        opacity: 0;
        pointer-events: none;
    }

        /* 1. Light Mode - Hamburger Top of page (Static): White Text */
    body:not([data-theme="dark"]) .navbar:not(.scrolled) .hamburger i {
        color: #ffffff;
    }

    /* 2. Light Mode - Top of page (Static): White Text */
    body:not([data-theme="dark"]) .navbar:not(.scrolled) .nav-links a {
        color: #000000;
    }

    /* 3. Light Mode - Scrolled into view: Black Text */
    body:not([data-theme="dark"]) .navbar.scrolled .nav-links a {
        color: #000000;
    }

    /* 4. Dark Mode - Always White Text for visibility */
    body[data-theme="dark"] .navbar .nav-links a {
        color: #ffffff;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }

    .footer {
        font-size: 1rem;
    }

    .footer-bottom  {
        font-size: 0.7rem;
    }
}