/* ============================================================================
   YOUSFIS EU - MEDICAL DEVICE REGULATORY CONSULTANCY
   PROFESSIONAL INSTITUTIONAL DESIGN SYSTEM
   ============================================================================ */

/* CSS RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

ul { list-style: none; }
a { text-decoration: none; }

/* ============================================================================
   COLOR SYSTEM - BRITISH INSTITUTIONAL BLUE
   Clean, Structured, Professional Consultancy Architecture
   ============================================================================ */
:root {
    /* ===== PRIMARY BLUE PALETTE ===== */
    --primary-dark-blue: #0A1F44;      /* Header, footer, structural anchors */
    --primary-light-blue: #2E6EB3;     /* Buttons, links, CTAs, highlights */
    --hover-blue: #1F4D7C;             /* Darker blue for hover states */
    --active-blue: #4A80C0;            /* Lighter blue for active states */
    
    /* ===== NEUTRAL FOUNDATION ===== */
    --white-pure: #FFFFFF;             /* Content blocks, cards */
    --off-white: #F8FAFB;              /* Page background (75% of site) */
    --light-gray: #E8EAED;             /* Subtle dividers, borders */
    
    /* ===== TYPOGRAPHY COLORS ===== */
    --text-primary: #222222;           /* Main body text */
    --text-secondary: #515151;         /* Secondary text, captions */
    --text-light: #707070;             /* Metadata, fine print */
    --text-on-dark: #FFFFFF;           /* Text on dark blue backgrounds */
    
    /* ===== BORDERS & DIVIDERS ===== */
    --border-light: #DFE1E5;           /* Light dividers */
    --border-medium: #BABEC4;          /* Medium emphasis borders */
    --border-dark: #8A8E94;            /* Strong borders */
    
    /* ===== INTERACTIVE STATES ===== */
    --focus-outline: #2E6EB3;          /* Focus state outline */
    --overlay-dark: rgba(255, 255, 255, 0.02);
    --overlay-light: rgba(10, 31, 68, 0.06);
    --hover-overlay: rgba(46, 110, 179, 0.08);
    
    /* ===== PROFESSIONAL SHADOWS ===== */
    --shadow-subtle: 0 1px 3px 0 rgba(10, 31, 68, 0.08);
    --shadow-medium: 0 4px 12px -2px rgba(10, 31, 68, 0.12);
    --shadow-large: 0 12px 24px -4px rgba(10, 31, 68, 0.16);
    --shadow-extra: 0 24px 48px -8px rgba(10, 31, 68, 0.20);
    
    /* ===== TIMING & TRANSITIONS ===== */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   TYPOGRAPHY SYSTEM
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--off-white);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark-blue);
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================================
   LAYOUT FOUNDATION
   ============================================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 6rem 0;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    overflow-x: auto;
}

iframe,
video {
    max-width: 100%;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* ============================================================================
   HEADER - STICKY NAVIGATION WITH CENTERED LOGO
   ============================================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 31, 68, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
    border-bottom-color: rgba(10, 31, 68, 0.12);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    max-width: 100%;
    overflow: visible;
}

/* Logo - Center */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    letter-spacing: 0.02em;
}

/* Navigation Left */
.nav-left {
    flex: 1;
}

.nav-menu-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

/* Navigation Right */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

/* Navigation Links */
.nav-menu-left li a,
.nav-menu-right li a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
    letter-spacing: 0.01em;
    display: inline-block;
}

.nav-menu-left li a::after,
.nav-menu-right li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light-blue);
    transition: width 0.25s ease;
}

.nav-menu-left li a:hover,
.nav-menu-right li a:hover,
.nav-menu-left li a.active,
.nav-menu-right li a.active {
    color: var(--primary-light-blue);
}

.nav-menu-left li a:hover::after,
.nav-menu-right li a:hover::after,
.nav-menu-left li a.active::after,
.nav-menu-right li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid currentColor;
    border-right: 3px solid transparent;
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-dark-blue);
    min-width: 320px;
    max-width: 90vw;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-large);
    margin-top: 1rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--white-pure);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    color: var(--white-pure);
}

/* Nested Dropdown (Submenu) */
.dropdown-menu .has-submenu {
    position: relative;
}

.dropdown-menu .has-submenu > a {
    padding-left: 2.5rem;
}

.dropdown-menu .has-submenu > a::before {
    content: '‹';
    position: absolute;
    left: 1rem;
    right: auto;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.dropdown-menu .submenu {
    position: absolute;
    right: 100%;
    left: auto;
    top: 0;
    background: var(--hover-blue);
    min-width: 260px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-large);
    z-index: 1001;
}

.dropdown-menu .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu .submenu li a {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.dropdown-menu .submenu li a::before {
    display: none;
}

.dropdown-menu .submenu li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Menu */
.nav-mobile {
    display: none;
}

.nav-menu-mobile {
    list-style: none;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--primary-dark-blue);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================================================
   HERO SECTION - FULL VIEWPORT CAROUSEL
   ============================================================================ */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 73px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity:0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white-pure);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    max-width: 900px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--white-pure);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 900px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.4);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--neutral-white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-light-blue);
    border-color: var(--primary-light-blue);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active,
.dot:hover {
    background: var(--primary-light-blue);
    border-color: var(--primary-light-blue);
    transform: scale(1.2);
}

/* ============================================================================
   BUTTON SYSTEM
   ============================================================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light-blue) 0%, #4A7A9A 100%);
    color: var(--white-pure);
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4A7A9A 0%, var(--hover-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46, 110, 179, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white-pure);
    border-color: var(--white-pure);
}

.btn-secondary:hover {
    background: var(--white-pure);
    color: var(--primary-dark-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light-blue);
    border-color: var(--primary-light-blue);
}

.btn-outline:hover {
    background: var(--primary-light-blue);
    color: var(--white-pure);
}

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.8;
    text-align: center;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light-blue) 0%, var(--hover-blue) 100%);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(90, 143, 180, 0.3);
}

/* ============================================================================
   ABOUT SECTION
   ============================================================================ */
.about-section {
    background: var(--white-pure);
    padding: 6rem 0;
    overflow: hidden;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
    width: 100%;
}

.about-text-column p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-text-column p strong {
    color: var(--primary-dark-blue);
}

.about-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.about-buttons .btn {
    opacity: 1;
    animation: none;
}

/* About Slideshow */
.about-slideshow-column {
    position: relative;
    height: 500px;
}

.about-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
}

.about-slide.active {
    opacity: 1;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    text-align: center;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(90, 143, 180, 0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 31, 68, 0.15);
    border-color: rgba(90, 143, 180, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-light-blue) 0%, var(--hover-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ===================================
   SCROLL REVEAL ANIMATIONS
   =================================== */

/* Fade up animation (existing) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left animation */
.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right animation */
.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================================
   SERVICES SECTION
   ============================================================================ */
.services-section {
    background: var(--off-white);
    padding: 6rem 0;
    overflow: hidden;
}

/* Services Intro Layout */
.services-intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
    width: 100%;
}

.services-slideshow-column {
    position: relative;
    height: 500px;
}

.services-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.services-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
}

.services-slide.active {
    opacity: 1;
}

.services-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-text-column .service-intro-text {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.services-text-column .service-intro-text strong {
    color: var(--primary-dark-blue);
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 143, 180, 0.12);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light-blue), var(--hover-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(10, 31, 68, 0.15);
    border-color: rgba(90, 143, 180, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-card .btn {
    opacity: 1;
    animation: none;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
}

.service-link {
    color: var(--primary-light-blue);
    font-weight: 600;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--hover-blue);
}

.service-card h3 .service-link {
    color: inherit;
    text-decoration: none;
}

.service-card h3 .service-link:hover {
    text-decoration: underline;
    color: var(--primary-light-blue);
}

/* ============================================================================
   SERVICE HERO SPLIT LAYOUT (image left / text right)
   ============================================================================ */
.service-hero-split {
    margin-top: 73px;
    padding: 4rem 0 3rem;
    background: var(--primary-dark-blue);
}

.shs-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.shs-image {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.shs-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.shs-slide.active {
    opacity: 1;
}

.shs-text {
    color: var(--white-pure);
}

.shs-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.shs-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--white-pure);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.shs-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.9;
    margin-bottom: 0.75rem;
}

.shs-cta {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 900px) {
    .shs-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .shs-image {
        height: 260px;
    }

    .shs-title {
        font-size: 2rem;
    }
}

/* ============================================================================
   BLOGS/NEWS SECTION
   ============================================================================ */
.blog-preview, .blogs-section {
    background: var(--white-pure);
    padding: 6rem 0;
}

.blog-grid, .blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 143, 180, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
}

.blog-card:hover {
    box-shadow: 0 12px 40px rgba(10, 31, 68, 0.15);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(90, 143, 180, 0.4);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-gray);
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 1.375rem;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-card p, .blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card .btn {
    opacity: 1;
    animation: none;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
}

.blog-link {
    color: var(--primary-light-blue);
    font-weight: 600;
    transition: var(--transition-fast);
}

.blog-link:hover {
    color: var(--hover-blue);
}

/* ============================================================================
   SERVICE PAGES - SPECIFIC COMPONENTS
   ============================================================================ */
.service-hero {
    background: var(--primary-dark-blue);
    padding: 12rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.95) 0%, rgba(31, 77, 124, 0.9) 100%);
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white-pure);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.service-content {
    padding: 6rem 0;
    background: var(--white-pure);
}

.service-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.offerings-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.offering-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px solid rgba(90, 143, 180, 0.15);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
}

.offering-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light-blue), var(--hover-blue));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.offering-item:hover {
    border-color: rgba(90, 143, 180, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(10, 31, 68, 0.15);
}

.offering-item:hover::before {
    transform: scaleY(1);
}

.offering-item h3 {
    color: var(--primary-dark-blue);
    font-size: 1.375rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.offering-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.closing-section {
    padding: 5rem 0;
    background: var(--white-pure);
    text-align: center;
}

.closing-section p {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.closing-section .btn {
    opacity: 1;
    animation: none;
}

/* ============================================================================
   CONTACT / CTA SECTION
   ============================================================================ */
.contact-section, .cta-section {
    background: var(--primary-dark-blue);
    color: var(--white-pure);
    padding: 6rem 0;
    text-align: center;
}

.contact-section .section-title, .cta-content h2 {
    color: var(--white-pure);
}

.contact-section .section-subtitle, .cta-content p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-section .btn, .cta-content .btn {
    opacity: 1;
    animation: none;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--primary-dark-blue);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
    overflow: hidden;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section, .footer-column {
    margin-bottom: 0;
}

.footer-section h3, .footer-column h3, .footer-column h4 {
    font-size: 1.25rem;
    color: var(--white-pure);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p, .footer-column p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul li, .footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a, .footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover, .footer-column ul li a:hover {
    color: var(--white-pure);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white-pure);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-light-blue), var(--hover-blue));
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(90, 143, 180, 0.4);
}

.social-links svg {
    width: 20px;
    height: 20px;
    stroke: var(--white-pure);
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   MODAL / CONSULTATION FORMS
   ============================================================================ */
.consultation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.consultation-modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(90, 143, 180, 0.2);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 25px 60px rgba(10, 31, 68, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 143, 180, 0.2);
    color: var(--primary-dark-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.1);
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary-light-blue), var(--hover-blue));
    color: var(--white-pure);
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 110, 179, 0.3);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

.modal-image {
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 3rem;
}

.modal-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark-blue);
    font-weight: 700;
}

.modal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Medium to Small Laptops */
@media (max-width: 1366px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .stats-grid,
    .services-grid,
    .offerings-grid,
    .blogs-grid {
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-layout,
    .services-intro-layout {
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 968px) {
    /* Hide desktop navigation */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Show mobile navigation */
    .nav-mobile {
        display: block;
        position: fixed;
        left: -100%;
        top: 73px;
        width: 100%;
        background: var(--white-pure);
        transition: 0.3s ease;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
        border-top: 1px solid var(--border-light);
        z-index: 998;
    }

    .nav-mobile.active {
        left: 0;
    }

    .nav-menu-mobile {
        padding: 2rem 0;
    }

    .nav-menu-mobile li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu-mobile li a {
        padding: 1.25rem;
        display: block;
        width: 100%;
        color: var(--primary-dark-blue);
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .nav-menu-mobile li a:hover {
        background: var(--off-white);
    }

    .hamburger {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        background: var(--off-white);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 800px;
    }

    .dropdown-menu li a {
        padding: 1rem 2rem;
    }

    /* Mobile nested submenu */
    .dropdown-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(10, 31, 68, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        margin: 0;
    }

    .dropdown-menu .has-submenu.active .submenu {
        max-height: 300px;
    }

    .dropdown-menu .has-submenu > a::before {
        content: '▼';
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    .dropdown-menu .has-submenu.active > a::before {
        transform: rotate(180deg);
    }

    .dropdown-menu .submenu li a {
        padding: 0.875rem 3rem;
        font-size: 0.875rem;
    }

    /* About section two-column to single column */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-slideshow {
        height: 350px;
    }

    /* Services intro layout two-column to single column */
    .services-intro-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-slideshow-column {
        height: 350px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 1rem;
    }

    .carousel-btn.next {
        right: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .blogs-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .btn {
        width: 100%;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        max-height: 250px;
    }

    .modal-text {
        padding: 2rem;
    }

    .modal-text h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .blog-content {
        padding: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-dots {
        bottom: 1.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-dark-blue);
}

.text-accent {
    color: var(--primary-light-blue);
}

.bg-light {
    background: var(--off-white);
}

.bg-white {
    background: var(--white-pure);
}

.bg-accent-soft {
    background: rgba(46, 110, 179, 0.08);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .header,
    .footer,
    .hamburger,
    .carousel-btn,
    .carousel-dots,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
