:root {
    --primary-green: #1a4d2e;
    --secondary-green: #4CAF50;
    --accent-gold: #c5a059;
    --dark-bg: #0d2b1a;
    --text-dark: #333333;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: #fbfdfc;
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #ffffff;
    color: var(--text-dark);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Connected Nodes Pattern */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* SVG Pattern: Connected Dots/Network */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a4d2e' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Add a subtle gradient overlay to make pattern fade out */
.sidebar {
    background: linear-gradient(to bottom, #ffffff 80%, rgba(255,255,255,0.9));
}

/* Animated Green Border Strip */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-green), #4CAF50, #ffffff, var(--primary-green));
    background-size: 100% 300%;
    animation: borderFlow 3s linear infinite;
    z-index: 10;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}



.sidebar-logo {
    width: 100%;
    max-width: 200px;
    margin-bottom: 3rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 1.5rem;
}

.sidebar-nav a {
    text-decoration: none;
    /* Card Style Default */
    background-color: white;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 15px 20px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.sidebar-nav a i {
    font-size: 1.2rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: white;
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(26, 77, 46, 0.1);
}

.sidebar-nav a:hover i, .sidebar-nav a.active i {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
}

/* Sidebar Reviews - Compact Version */
.sidebar-reviews {
    margin-top: auto;
    /* Gradient from Green to Yellow/Gold */
    background: linear-gradient(135deg, var(--primary-green), #c5a059); 
    color: white;
    padding: 12px 10px; /* Reduced padding */
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.google-badge {
    color: white;
    font-weight: bold;
    font-size: 0.9rem; /* Smaller font */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2px;
}

.rating-score {
    color: white;
}

.stars {
    color: #ffd700;
    margin-bottom: 5px; /* Reduced margin */
    font-size: 0.7rem; /* Smaller stars */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 5px;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 0; /* Reduced padding */
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.scrolling-text {
    display: inline-block;
    animation: scrollText 15s linear infinite; /* Slower for better readability */
    font-size: 0.75rem; /* Slightly smaller */
    color: white;
    font-weight: 500;
    padding-left: 100%;
}

.sidebar-footer {
    margin-top: 15px;
    text-align: left; /* Align text left */
    font-size: 0.75rem;
    color: #888;
    position: relative;
    z-index: 2;
    font-weight: 500;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: space-between; /* Space between icon and text */
    padding: 0 10px; /* Add some padding */
}

.linkedin-link {
    font-size: 1.5rem;
    color: #0077b5;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.linkedin-link:hover {
    transform: translateY(-3px) scale(1.1);
    color: #005582;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
}

/* Main Content Layout */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    width: calc(100% - var(--sidebar-width));
    position: relative;
    min-height: 100vh;
}

/* =========================================
   HOME PAGE STYLES (Restored)
   ========================================= */

.app-container {
    display: flex;
    width: 100%;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.carousel-wrapper {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel, .carousel-inner {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay for Carousel */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 77, 46, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

/* Home Page Creative Interface */
.creative-interface {
    position: absolute;
    bottom: 50px;
    right: 50px; /* Aligned to right */
    left: auto; /* Reset left */
    transform: none; /* Reset transform */
    z-index: 10;
    width: auto; /* Auto width */
    max-width: 450px;
    text-align: right; /* Align text to right */
}

.interface-glass {
    background: transparent; /* Remove heavy glass background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
    color: white;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align items to right */
    gap: 15px;
}

.info-content {
    text-align: right;
    margin-bottom: 10px;
}

.info-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 0 0 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 700;
}

.badge-desc {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    background: transparent; /* Remove badge background */
    padding: 0;
    border-radius: 0;
    display: inline-block;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.interface-controls {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    align-items: center;
    background: rgba(0,0,0,0.3); /* Subtle background for controls only */
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.creative-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 35px; /* Smaller size */
    height: 35px; /* Smaller size */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.creative-btn:hover {
    background: white;
    color: var(--primary-green);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.creative-btn.main-action {
    width: 45px; /* Smaller main button */
    height: 45px; /* Smaller main button */
    background: var(--secondary-green);
    border: none;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.creative-btn.main-action:hover {
    transform: scale(1.1);
    background: #43a047;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

/* Animations */
.hover-scale:hover {
    transform: scale(1.15);
}

.pulse-anim {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* =========================================
   SOCIETE PAGE STYLES
   ========================================= */

/* Hero Carousel Section (Societe) */
.hero-carousel-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: var(--primary-green);
}

.carousel-slide.active {
    opacity: 1;
}

/* Updated Glass Overlay Hero - Bottom Left & Smaller */
.glass-overlay-hero {
    position: absolute;
    bottom: 80px; /* Position at bottom */
    left: 80px; /* Position at left */
    top: auto; /* Remove top centering */
    transform: none; /* Remove centering transform */
    background: transparent; /* Remove background */
    backdrop-filter: none; /* Remove blur */
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    text-align: left; /* Align text left */
    color: white;
    box-shadow: none;
    max-width: 600px;
    width: auto;
}

.glass-overlay-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem; /* Smaller font size */
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Stronger shadow for readability */
    font-weight: 700;
}

.glass-overlay-hero p {
    font-size: 1.1rem; /* Smaller font size */
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none; /* Normal case */
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

/* Vision Section */
.vision-section {
    padding: 100px 5%;
    position: relative;
    overflow: hidden;
}

.construction-pattern-bg {
    background-color: #fbfdfc;
    background-image: 
        linear-gradient(rgba(26, 77, 46, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 77, 46, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.vision-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.vision-text, .vision-visual {
    flex: 1;
}

/* Natural Underline Style for Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: var(--primary-green);
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* Space for underline */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* Thicker underline */
    background: linear-gradient(90deg, rgba(26, 77, 46, 0.2), rgba(197, 160, 89, 0.4)); /* Green to Gold transparent gradient */
    z-index: -1;
    transform: skew(-10deg) rotate(-1deg);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.section-title:hover::after {
    height: 20px;
    transform: skew(-10deg) rotate(-2deg) scale(1.05);
}

.section-title.no-underline::after {
    display: none;
    content: none;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-green), #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-content {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.relative-z {
    position: relative;
    z-index: 5;
}

.quote-watermark {
    position: absolute;
    top: -50px;
    left: -30px;
    font-size: 10rem;
    color: rgba(26, 77, 46, 0.05);
    z-index: -1;
}

.highlight-green {
    color: var(--secondary-green);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.highlight-green::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(76, 175, 80, 0.2);
    z-index: -1;
    transform: rotate(-1deg);
}

.highlight-box-modern {
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.08), rgba(197, 160, 89, 0.1)); /* Subtle Green to Gold Gradient */
    padding: 25px;
    border-radius: 20px; /* Rounded corners */
    margin-top: 30px;
    border: 1px solid rgba(26, 77, 46, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Animated Border Effect */
.highlight-box-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-green);
    border-radius: 4px 0 0 4px;
}

/* Quote Style within box */
.highlight-box-modern p {
    margin-bottom: 0; 
    font-weight: 500; 
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Specific style for positioning below image */
.quote-below-image {
    margin-top: 40px;
    width: 100%;
    /* Add a subtle animation pulse */
    animation: pulseBorder 4s infinite alternate;
}

@keyframes pulseBorder {
    0% { border-color: rgba(26, 77, 46, 0.1); }
    100% { border-color: rgba(197, 160, 89, 0.3); }
}

.floating-card-wrapper {
    position: relative;
    perspective: 1000px;
}

.tilted-visual {
    width: 100%;
    border-radius: 30px;
    box-shadow: -30px 30px 60px rgba(0,0,0,0.2);
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-card-wrapper:hover .tilted-visual {
    transform: scale(1.1);
}

.floating-badge {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--primary-green);
    animation: floatBadge 3s ease-in-out infinite;
}

/* Stats Section */
.stats-section {
    padding: 100px 5%;
    background: linear-gradient(270deg, #1a4d2e, #000000, #1a4d2e);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Updated Stats Background Pattern - Hexagon Mesh Removed */
.stats-background-pattern {
    display: none;
}

/* New Wave Background Animation */
.waves-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 200%;
    height: 200%;
    background: transparent;
    border-radius: 40%;
    opacity: 0.1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: waveRotate 15s infinite linear;
}

.wave1 {
    animation-duration: 18s;
}

.wave2 {
    animation-duration: 25s;
    animation-direction: reverse;
    border-color: rgba(197, 160, 89, 0.3); /* Gold color for second wave */
}

@keyframes waveRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Stats Title Wrapper - White Rounded Background */
.stats-title-wrapper {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 50px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    /* Animation Pulse */
    animation: pulseTitle 3s infinite ease-in-out;
}

.stats-title-wrapper h2.section-title {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-dark); /* Dark text for contrast */
}

@keyframes pulseTitle {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
}

.gradient-text-light {
    /* Updated gradient for dark text context */
    background: linear-gradient(45deg, var(--primary-green), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    flex: 1;
    min-width: 250px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-green);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Team Section */
.team-section {
    padding: 100px 5%;
    background-color: #f5f5f5;
    text-align: center; /* Ensure content is centered */
}

.team-title-wrapper {
    background: white;
    padding: 20px 60px;
    border-radius: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: inline-block;
    margin-bottom: 60px;
    position: relative;
    /* Reset left/transform and use auto margins for block flow centering if needed, but inline-block + text-align:center works best */
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0,0,0,0.02);
    /* Add underline effect */
    border-bottom: 4px solid var(--primary-green);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Grid for Team */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

.team-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    aspect-ratio: 3/4;
    cursor: pointer;
    background: white;
}

.team-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Team Hover Effects */
.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

/* Animated text colors on hover */
.team-card:hover .team-name {
    animation: colorChange 3s infinite alternate;
}

@keyframes colorChange {
    0% { color: var(--primary-green); }
    100% { color: var(--accent-gold); }
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-green);
    margin: 0 0 5px;
}

.team-role {
    font-weight: 600;
    color: var(--accent-gold);
    margin: 0 0 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.team-card:hover .team-desc {
    opacity: 1;
    transform: translateY(0);
}

.team-socials {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.team-card:hover .team-socials {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gold);
    transform: translateY(-3px);
}

/* =========================================
   SOCIETE PAGE BACKGROUND EFFECTS
   ========================================= */

.societe-background-effects {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: var(--sidebar-width); /* Start after sidebar */
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    pointer-events: none; /* Let clicks pass through */
    z-index: 1; /* Above basic background, below content */
    overflow: hidden;
}

/* Responsive adjustment for background */
@media (max-width: 992px) {
    .societe-background-effects {
        left: 0;
        width: 100%;
    }
}

/* Luminous Lines - Subtle glowing background lines */
.luminous-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    height: 1px;
    width: 100%;
    transform: translateX(-100%);
    animation: luminousFlow 8s infinite linear;
}

.luminous-line.line-1 {
    top: 20%;
    animation-duration: 15s;
    animation-delay: 0s;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.15), transparent); /* Gold tint */
}

.luminous-line.line-2 {
    top: 60%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.luminous-line.line-3 {
    top: 85%;
    animation-duration: 12s;
    animation-delay: 2s;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(26, 77, 46, 0.08), transparent);
}

@keyframes luminousFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Vertical Lines Animation - Thin lines falling down */
.vertical-wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-line {
    position: absolute;
    width: 1px; /* Thin line */
    height: 100px; /* Length of the falling line */
    background: linear-gradient(to bottom, 
        rgba(76, 175, 80, 0) 0%, 
        var(--primary-green) 50%, 
        rgba(76, 175, 80, 0) 100%);
    opacity: 0;
    animation: dropLine 3s infinite ease-in;
}

.wave-line-1 {
    left: 20%;
    animation-duration: 4s;
    animation-delay: 0s;
}

.wave-line-2 {
    left: 80%;
    animation-duration: 5s;
    animation-delay: 2s;
    background: linear-gradient(to bottom, 
        rgba(197, 160, 89, 0) 0%, 
        var(--accent-gold) 50%, 
        rgba(197, 160, 89, 0) 100%); /* Gold line */
}

@keyframes dropLine {
    0% { top: -100px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar { 
        transform: translateX(-100%); 
        width: 280px; /* Keep width fixed even when hidden */
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }

    .main-content { 
        margin-left: 0; 
        width: 100%; 
    }

    /* Mobile Nav Toggle */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 10000;
        background: var(--primary-green);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle:hover {
        background: var(--secondary-green);
        transform: scale(1.1);
    }

    .vision-container { flex-direction: column; }
    
    /* Mobile adjustments for hero text */
    .glass-overlay-hero {
        left: 20px;
        bottom: 40px;
    }
    
    .glass-overlay-hero h1 { font-size: 2rem; }
    .glass-overlay-hero p { font-size: 1rem; }
    
    /* Mobile adjustments for creative interface */
    .creative-interface {
        bottom: 40px;
        right: 20px;
        max-width: 300px;
    }
    
    .info-content h2 {
        font-size: 1.5rem;
    }
    
    .badge-desc {
        font-size: 0.9rem;
    }
}

@media (min-width: 993px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* Contact Hero Carousel */
.contact-hero-carousel {
    height: 60vh; /* Not full height, just header */
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 90%;
}

.text-white {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.contact-section {
    padding: 60px 5%; /* Reduced top padding */
    min-height: auto; /* Allow auto height */
    display: block; /* Reset flex */
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.card-title {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(26, 77, 46, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .icon-box {
    background: var(--primary-green);
    color: white;
    transform: rotate(5deg);
}

.info-text h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.info-text p, .info-text a {
    margin: 0;
    color: #666;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: var(--accent-gold);
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

/* Contact Logo Container */
.contact-logo-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-logo-image {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.contact-logo-image:hover {
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    min-height: 500px;
    background: white;
}

.map-frame {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.map-badge {
    display: none; /* Hide badge as requested */
}

.badge-content strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.rating .score {
    font-weight: bold;
    color: var(--text-dark);
}

.rating .count {
    color: #888;
    font-size: 0.8rem;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }
    
    .map-container {
        width: 100%;
        min-height: 400px; /* Adjusted height for tablet/mobile */
        height: 400px; /* Force height */
        order: -1; /* Show map first on mobile */
        margin-bottom: 20px;
    }
    
    .contact-section {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .map-container {
        min-height: 300px;
        height: 300px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 5% 100px;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial-header {
    margin-bottom: 60px;
    text-align: center;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Carousel Structure */
.testimonial-carousel {
    position: relative;
    height: 400px; /* Adjust based on content */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-track-container {
    height: 100%;
    width: 80%; /* Space for buttons */
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #ffffff, #f0f7f1, #e8f5e9, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Client Avatar Styling */
.client-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 50%;
    padding: 5px; /* Space for gradient border */
}

.avatar-gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-green), var(--accent-gold), var(--primary-green));
    animation: spinAvatarBorder 4s linear infinite;
    z-index: 1;
}

.client-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    background: white; /* Fallback/Mask */
    border: 3px solid white; /* Inner white border */
}

@keyframes spinAvatarBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Testimonial Modern Layout - 2 Columns */
.testimonial-card.modern-layout {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 60px;
    gap: 50px;
    max-width: 1000px;
    /* Glassmorphism & Visuals */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.05),
        0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px auto; /* Center it */
}

.testimonial-card.modern-layout:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.05);
}

.client-column {
    flex: 0 0 250px; /* Fixed width for client info */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding-right: 40px;
}

.text-column {
    flex: 1;
}

.client-column .client-avatar-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.client-column .testimonial-author h4 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.text-column .quote-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 20px;
    text-align: left;
}

.text-column .testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
    font-style: normal; /* Less italic, more modern */
}

/* Natural Underline Highlight */
.highlight-text {
    position: relative;
    font-weight: 600;
    color: var(--primary-green);
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-gold);
    opacity: 0.3;
    transform: skew(-10deg) rotate(-2deg);
    z-index: -1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.testimonial-card:hover .highlight-text::after {
    opacity: 0.5;
    height: 12px;
    bottom: 0;
}

/* Responsive for Modern Layout */
@media (max-width: 900px) {
    .testimonial-card.modern-layout {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .client-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 30px;
        width: 100%;
    }

    .text-column .quote-icon {
        text-align: center;
    }
}

/* Remove old card styles that might conflict or just override them */
.testimonial-card:not(.modern-layout) {
    text-align: center;
    padding: 50px 40px;
}

.testimonial-slide {
    background: transparent; /* Remove solid/gradient bg from slide */
}

/* Remove the old animated gradient from slide and put it on a pseudo element of card if wanted, 
   but for "modern" look, clean glass is better. 
   Let's add a subtle mesh gradient background to the SECTION instead. */

/* Testimonial Section Background Animation */
.testimonials-section {
    position: relative;
    overflow: hidden;
    padding: 80px 5% 120px;
}

/* Background Image with Overlay */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/back01.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; /* Subtle background */
    z-index: 0;
}

/* Animated Crossing Lines */
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 48%, rgba(76, 175, 80, 0.1) 50%, transparent 52%),
        linear-gradient(45deg, transparent 48%, rgba(197, 160, 89, 0.1) 50%, transparent 52%);
    background-size: 200% 200%;
    animation: crossLines 10s ease infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes crossLines {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Additional Animated Segments */
.animated-segment {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    height: 2px;
    width: 200px;
    opacity: 0.5;
    z-index: 1;
}

.segment-1 {
    top: 20%;
    left: -200px;
    animation: slideRight 8s linear infinite;
}

.segment-2 {
    bottom: 30%;
    right: -200px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    animation: slideLeft 10s linear infinite;
}

@keyframes slideRight {
    0% { transform: translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateX(100vw) translateX(200px); opacity: 0; }
}

@keyframes slideLeft {
    0% { transform: translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateX(-100vw) translateX(-200px); opacity: 0; }
}

/* Ensure content is above background */
.testimonials-container {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.3rem;
    font-weight: 300;
    color: #333;
    line-height: 1.8;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-gold); /* Gold accent */
    opacity: 0.8;
    margin-bottom: 25px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 20px;
    }

    .client-avatar-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Move Nav Buttons to bottom on mobile or hide if swipe is enough */
    .nav-btn {
        top: auto;
        bottom: -60px; /* Below the card */
        width: 45px;
        height: 45px;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .prev-btn {
        left: 20%;
    }
    
    .next-btn {
        right: 20%;
    }

    .testimonials-container {
        padding-bottom: 80px; /* Space for buttons */
    }
}

.testimonial-author h4 {
    margin: 0;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-author p {
    margin: 5px 0 0;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-green);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.3);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 15px;
}

.indicator {
    border: none;
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.current-indicator {
    background: var(--primary-green);
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-track-container {
        width: 100%;
        box-shadow: none;
        background: transparent;
    }
    
    .testimonial-slide {
        background: transparent; /* Remove bg on mobile for cleaner look or keep it */
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(255,255,255,0.8);
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
}

/* Play/Pause Control Styling */
.carousel-controls-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.icon-play, .icon-pause {
    position: absolute;
    transition: opacity 0.3s ease;
}

/* Logic for icons: default is playing (show pause icon) */
.play-pause-btn .icon-play {
    opacity: 0;
}
.play-pause-btn .icon-pause {
    opacity: 1;
}

/* Paused state: show play icon */
.play-pause-btn.paused .icon-play {
    opacity: 1;
}
.play-pause-btn.paused .icon-pause {
    opacity: 0;
}

/* Gradient Spinner Border Animation */
.gradient-border-spinner {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--primary-green) 50%, var(--accent-gold) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    animation: spinBorder 4s linear infinite;
}

.play-pause-btn.paused .gradient-border-spinner {
    animation-play-state: paused;
    opacity: 0.5;
}

@keyframes spinBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PDF Gallery Styles */
.pdf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
}

.pdf-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-5px);
}

.pdf-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1.414; /* A4 Ratio */
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.pdf-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 77, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-card:hover .pdf-overlay {
    opacity: 1;
}

.pdf-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.pdf-title {
    margin-top: 15px;
    font-size: 0.95rem; /* Slightly smaller for better fit */
    text-align: center;
    color: #333;
    font-weight: 600;
    text-transform: capitalize;
    
    /* Handle long titles */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    line-height: 1.4;
}

/* PDF Modal & Flipbook */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%); /* Elegant dark radial */
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Background Pattern for Modal - Elegant Wood/Table Texture */
.pdf-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Wood texture simulation */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H20V0z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

/* Spotlight Effect */
.pdf-modal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.pdf-modal.active {
    opacity: 1;
    pointer-events: all;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 11001;
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.close-modal:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.2);
}

.book-container {
    width: 100%;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent spill */
}

.book-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.book-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
}

.book-controls button:hover {
    transform: scale(1.2);
    color: var(--accent-gold);
}

/* Pages inside flipbook */
.my-page {
    background-color: white;
    /* Natural paper look */
    box-shadow: inset 0 0 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.my-page canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Slight contrast boost for text */
    filter: contrast(1.05);
}

.error-msg {
    color: #ff6b6b;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .book-container {
        height: 80%;
        width: 100%;
    }
    
    .book-controls {
        bottom: 20px;
        padding: 8px 20px;
        gap: 20px;
        width: 90%;
        justify-content: space-between;
    }
    
    .book-controls span {
        font-size: 0.9rem;
    }
}

/* Expert Section (Savoir-Faire) */
.expert-section {
    position: relative;
    /* Gradient Background Section */
    background: linear-gradient(180deg, #ffffff 0%, #f7f9f8 100%);
    overflow: hidden;
}

/* Background Pattern for Section */
.expert-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-green) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Image Styling with Animated Ring */
.image-border-wrapper {
    position: relative;
    padding: 20px;
    border-radius: 40px 10px 40px 10px; /* Asymmetric rounding */
    display: inline-block;
}

.animated-border-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 45px 15px 45px 15px; /* Match + offset */
    /* Green to Grey/Silver Gradient */
    background: linear-gradient(45deg, var(--primary-green), #a0a0a0, var(--primary-green));
    background-size: 200% 200%;
    animation: borderFlow 5s linear infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(2px);
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.expert-image {
    width: 100%;
    max-width: 500px;
    border-radius: 35px 5px 35px 5px; /* Inner rounding */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: block;
    background: white;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.expert-image:hover {
    transform: scale(1.02);
}

/* Text Content */
.text-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.text-block strong {
    color: var(--primary-green);
    font-weight: 700;
}

.methodology-intro {
    font-style: italic;
    color: #666;
    border-left: 4px solid var(--accent-gold);
    padding-left: 20px;
    margin-top: 30px;
}

/* Responsive Expert Section */
@media (max-width: 992px) {
    .expert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expert-visual {
        text-align: center;
        order: -1; /* Image on top on mobile */
    }

    .image-border-wrapper {
        max-width: 100%;
    }
}

/* Generic Page Styles */
.page-header {
    padding: 100px 5% 40px;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 15px;
}

.content-section {
    padding: 40px 5% 100px;
}

.coming-soon-wrapper {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.02);
}

.icon-large {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    opacity: 0.8;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 77, 46, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.4);
}

/* =========================================
   NEW SAVOIR-FAIRE STYLES
   ========================================= */

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    height: 85vh; /* Large impactful hero */
    overflow: hidden;
    margin-top: -80px; /* Pull up behind transparent header if applicable, or just sit at top */
}

.project-carousel {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

/* Updated Glass Overlay Hero - Bottom Left, Minimalist */
.glass-overlay-hero {
    position: absolute;
    bottom: 40px;
    left: 40px; /* Position text to the bottom left */
    right: auto;
    top: auto;
    transform: none;
    
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    padding-left: 20px; /* Space for accent line */
    
    text-align: left;
    z-index: 10;
    max-width: 400px;
    animation: none;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 50px;
}

/* Vertical separator line - Left Accent */
.glass-overlay-hero::before {
    content: '';
    position: absolute;
    left: 0; /* Line on the left side */
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 3px; /* Thicker accent */
    height: 100%; /* Full height */
    background: var(--accent-gold); /* Gold accent */
}

.glass-overlay-hero h1.animate-text {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.glass-overlay-hero p.animate-text {
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.8;
    color: white;
    letter-spacing: 0.5px;
}

/* Hero Navigation Controls - Bottom Right */
.carousel-controls-wrapper {
    position: absolute;
    bottom: 40px;
    right: 40px; /* Align to right edge */
    left: auto; /* Remove center align */
    transform: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Modern Expert Section (Green Gradient) */
.modern-expert-section {
    position: relative;
    padding: 120px 5%;
    /* Rich Green Gradient Background */
    background: linear-gradient(135deg, #0d2619 0%, #1a4d2e 50%, #123321 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    color: white;
    overflow: hidden;
}

/* Enhanced Background Pattern */
.modern-expert-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle geometric pattern */
    background-image: 
        radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px, 100px 100px, 100px 100px;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.6;
    z-index: 0;
}

/* Floating Shapes for Depth */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-gold);
    top: -100px;
    right: -100px;
    animation: floatShape1 20s infinite alternate;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #4caf50;
    bottom: -50px;
    left: -50px;
    animation: floatShape2 25s infinite alternate-reverse;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, 50px) rotate(20deg); }
}

@keyframes floatShape2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-nav-btn:hover {
    background: white;
    color: var(--primary-green);
    transform: scale(1.1);
}

.hero-nav-btn i {
    font-size: 1.2rem;
}

/* Adjust existing Play/Pause btn to fit new layout if needed */
.play-pause-btn {
    /* Keep existing styles but maybe adjust size slightly if needed */
}

/* Text Carousel Styles */
.text-carousel-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.text-slides-container {
    position: relative;
    width: 100%;
}

.text-slide {
    display: none;
    animation: fadeText 0.5s ease-in-out;
}

.text-slide.active {
    display: block;
}

@keyframes fadeText {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Modern Expert Section Styles */
.modern-expert-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.expert-visual-modern, .expert-content-modern {
    flex: 1;
}

.modern-expert-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
    .modern-expert-container {
        flex-direction: column;
    }
    .expert-visual-modern {
        order: -1;
    }
}

/* Animated Gradient Border & Tilt for Expert Image */
.image-glow-wrapper {
    position: relative;
    display: inline-block;
    padding: 6px; /* Width of the border */
    border-radius: 24px;
    transform: rotate(0deg);
    background: linear-gradient(90deg, #1a4d2e, #0d2b1a);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 5;
}

.image-glow-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.image-glow-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(60deg, #1a4d2e, #4CAF50, #c5a059, #FFD700, #c5a059, #4CAF50, #1a4d2e);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 26px;
    animation: borderFlowAnim 3s linear infinite;
}

@keyframes borderFlowAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reset image specific styles to fit wrapper */
.modern-expert-image {
    border-radius: 20px;
    display: block;
    width: 100%;
    box-shadow: none !important; /* Remove individual shadow */
}

/* Zoom Image Modal */
.zoom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    z-index: 12000; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

.zoom-modal.active { opacity: 1; pointer-events: all; }

.zoom-image {
    max-width: 90%; max-height: 90%;
    border-radius: 10px; box-shadow: 0 0 50px rgba(255,255,255,0.1);
    transform: scale(0.8); transition: transform 0.3s ease;
}

.zoom-modal.active .zoom-image { transform: scale(1); }

/* Redesigned Reading Modal */
.modern-read-modal {
    background: #fff;
    width: 90%; max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
}

.pdf-modal.active .modern-read-modal { transform: translateY(0); }

.read-header {
    background: linear-gradient(135deg, var(--primary-green), #0d2b1a);
    padding: 30px 40px;
    position: relative; overflow: hidden;
}

.read-header h2 {
    color: var(--accent-gold); margin: 0;
    font-family: var(--font-heading); font-size: 2rem;
    position: relative; z-index: 2;
}

.read-header::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0.3;
}

.read-content {
    padding: 40px;
    max-height: 60vh; overflow-y: auto;
    color: #333; font-size: 1.1rem; line-height: 1.8;
    background: #f9f9f9;
}

.read-content p { margin-bottom: 20px; }

.read-content::-webkit-scrollbar { width: 8px; }
.read-content::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.2); border-radius: 4px; }

.close-read-btn {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.2); border: none;
    color: white; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease; z-index: 10;
}

.close-read-btn:hover { background: rgba(255,255,255,0.4); }

.image-glow-wrapper { cursor: zoom-in; }

/* Glowing Lines Background Animation */
.glowing-lines-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 0;
}

.glowing-line {
    position: absolute;
    width: 2px; height: 150%; /* Taller to cover angles */
    background: linear-gradient(to bottom, transparent, rgba(197, 160, 89, 0.3), transparent);
    opacity: 0.4;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

/* Individual Line Animations */
.line-1 { left: 10%; top: -50%; animation: glowLineMove 8s infinite linear; }
.line-2 { left: 30%; top: -50%; animation: glowLineMove 12s infinite linear 2s; background: linear-gradient(to bottom, transparent, rgba(76, 175, 80, 0.3), transparent); box-shadow: 0 0 10px rgba(76, 175, 80, 0.2); }
.line-3 { left: 50%; top: -50%; animation: glowLineMove 10s infinite linear 1s; }
.line-4 { left: 70%; top: -50%; animation: glowLineMove 14s infinite linear 3s; background: linear-gradient(to bottom, transparent, rgba(76, 175, 80, 0.3), transparent); box-shadow: 0 0 10px rgba(76, 175, 80, 0.2); }
.line-5 { left: 90%; top: -50%; animation: glowLineMove 9s infinite linear 0.5s; }

@keyframes glowLineMove {
    0% { top: -100%; opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* Enhanced Sidebar Reviews Widget */
.sidebar-reviews {
    margin-top: auto;
    background: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-reviews:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.google-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.google-icon-wrapper {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.google-icon-wrapper i {
    font-size: 1.2rem;
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.rating-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stars {
    font-size: 0.7rem;
    color: #FBBC05;
    margin: 0;
}

.review-count {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    padding-left: 44px; /* Align with text */
    margin-top: -5px;
}

.scrolling-text-container {
    background: rgba(26, 77, 46, 0.05);
    padding: 8px 0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.scrolling-text {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.8rem;
    animation: scrollText 20s linear infinite;
}

.review-btn {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    padding-top: 5px;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: color 0.3s ease;
}

.review-btn:hover {
    color: var(--accent-gold);
}

/* Global Responsive Fixes */
@media (max-width: 992px) {
    .sidebar-reviews {
        display: none; /* Hide on mobile sidebar to save space, or style differently */
    }
    
    .container {
        width: 90%;
        padding: 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Fix layout shifts */
    .main-content {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Improve touch targets */
    .sidebar-nav a {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-grid, .expert-grid, .modern-expert-container {
        gap: 30px;
    }
}

/* Sidebar Testimonials Slider */
.testimonials-container {
    height: 250px; /* Visible height */
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 15px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    animation: scrollTestimonials 30s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    border-left: 3px solid var(--accent-gold);
}

.testimonial-card p {
    margin: 0 0 8px 0;
    font-style: italic;
}

.testimonial-meta {
    font-size: 0.75rem;
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes scrollTestimonials {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(-100% + 250px)); } /* Scroll until last item is gone? No, seamless loop needs logic */
}

/* Adjust Keyframes for seamless loop (assuming track height > container) */
/* Since we duplicated the first item, we can just scroll a bit, but real seamless loop needs calculation. */
/* Let's try a simpler marquee approach: transform from 0 to -X% */
/* If we have 4 items (3 + 1 dup), and each is e.g. 150px high... */
/* Let's use a simpler animation that just scrolls up slowly */

@keyframes scrollTestimonials {
    0% { transform: translateY(0); }
    100% { transform: translateY(-75%); } /* Adjust based on content */
}
/* Actually, better to just let it scroll and user can pause on hover */

.sidebar-reviews {
    /* Adjust padding to fit new content */
    padding-bottom: 10px;
}

/* Compact Sidebar Navigation */
.sidebar-nav ul {
    padding: 0;
    margin: 20px 0; /* Reduced top/bottom margin */
}

.sidebar-nav li {
    margin-bottom: 5px; /* Tighter spacing */
}

.sidebar-nav a {
    padding: 10px 20px; /* More compact padding */
    font-size: 0.95rem;
}

.logo {
    margin-bottom: 20px; /* Reduced logo margin */
}

.sidebar-reviews {
    margin-top: 10px; /* Bring reviews closer to nav */
    padding: 12px;
}

.testimonials-container {
    height: 300px; /* Increase height for better visibility */
    margin-bottom: 10px;
    padding-top: 10px;
}

.testimonial-card {
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem; /* Slightly larger text */
}

.review-count {
    margin-bottom: 5px;
}

.scrolling-text-container {
    padding: 5px 0;
    margin-bottom: 8px;
}

/* Optimized Sidebar Layout */
.sidebar {
    padding-top: 10px; /* Reduced top padding */
}

.sidebar-logo {
    max-width: 120px; /* Smaller logo */
    margin-bottom: 10px;
}

.sidebar-nav {
    margin-top: 0;
}

.sidebar-nav ul {
    margin: 10px 0;
}

.sidebar-nav li {
    margin-bottom: 2px; /* Very tight spacing */
}

.sidebar-nav a {
    padding: 8px 15px; /* Compact padding */
    font-size: 0.9rem;
}

.sidebar-reviews {
    margin-top: 5px;
    padding: 10px;
    flex: 1; /* Allow it to take available space if flex */
    display: flex;
    flex-direction: column;
}

.testimonials-container {
    height: 400px; /* Maximize height for visibility */
    margin-bottom: 0;
    flex: 1;
}

.sidebar-footer {
    padding-top: 5px;
    margin-top: 5px;
}

/* =========================================
   MODERN PDF VIEWER STYLES
   ========================================= */

.modern-pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 15, 0.95); /* Deep green/black dark overlay */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modern-pdf-viewer.active {
    opacity: 1;
    pointer-events: all;
}

/* Header / Toolbar */
.pdf-toolbar {
    height: 70px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.pdf-toolbar-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-toolbar-title i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.pdf-btn {
    background: transparent;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.pdf-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.pdf-zoom-level {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pdf-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.pdf-close-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg);
}

/* Main Content Area */
.pdf-viewer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
    scroll-behavior: smooth;
}

.pdf-pages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px; /* Base max width */
    transition: transform 0.3s ease; /* For smooth zooming if using transform, but we will use width */
}

.pdf-page-wrapper {
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    background: white;
}

.pdf-page-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-green);
    font-size: 2rem;
}

/* Scrollbar Styling */
.pdf-viewer-content::-webkit-scrollbar {
    width: 10px;
}

.pdf-viewer-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.pdf-viewer-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.pdf-viewer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Floating Page Indicator */
.pdf-page-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-size: 0.9rem;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pdf-toolbar {
        padding: 0 15px;
        height: 60px;
    }

    .pdf-toolbar-title span {
        display: none; /* Hide title text on mobile to save space */
    }

    .pdf-controls {
        gap: 10px;
        padding: 5px 10px;
    }

    .pdf-viewer-content {
        padding: 20px 10px 60px;
    }
}

/* =========================================
   Modern Testimonial Section
   ========================================= */
.modern-testimonial-section {
    position: relative;
    /* Background styles inherited from .modern-expert-section */
    /* Ensure padding for spacing */
    padding: 100px 5%;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .testimonials-grid {
        gap: 60px;
    }
    
    .modern-expert-section, 
    .vision-section, 
    .stats-section, 
    .team-section, 
    .content-section, 
    .admin-section, 
    .studies-section,
    .contact-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .hero-carousel-section {
        height: 60vh; /* Reduce hero height on mobile */
        min-height: 400px;
    }

    .glass-overlay-hero h1.animate-text {
        font-size: 1.5rem; /* Smaller hero title */
    }

    .glass-overlay-hero p.animate-text {
        font-size: 0.9rem;
    }

    .read-content {
        padding: 20px !important;
    }
    
    .read-header {
        padding: 20px !important;
    }
    
    .read-header h2 {
        font-size: 1.5rem;
    }
}

.testimonial-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 30px 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 30px; /* Space for the floating image */
}

.testimonial-card-modern:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-image-wrapper-modern {
    width: 100px;
    height: 100px;
    margin: -100px auto 30px; /* Pull up outside the card */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-ring {
    position: absolute;
    inset: -10px; /* Larger than image */
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    border-right-color: rgba(76, 175, 80, 0.5);
    border-left-color: rgba(76, 175, 80, 0.5);
    animation: spinRing 6s linear infinite;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}

.animated-ring::before {
    content: '';
    position: absolute;
    inset: 5px; /* Inner ring */
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: spinRing 10s linear infinite reverse;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonial-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(13, 38, 25, 1); /* Match bg color to look cut out or use white */
    border: 4px solid #1a4d2e;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.testimonial-content-modern {
    text-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0.6;
}

.testimonial-content-modern p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.client-info span {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
