@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&family=Cinzel:wght@400;700&display=swap');

:root {
    --color-primary: #0A5FA5;
    --color-primary-dark: #083D6B;
    --color-secondary: #F89B1C;
    --color-secondary-dark: #D97E00;
    --color-white: #FFFFFF;
    --color-bg-light: #F5F7FA;
    --color-text-main: #222222;
    --color-text-muted: #666666;

    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(10, 95, 165, 0.15);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
}

h2.no-after::after {
    display: none;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 155, 28, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
}

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Header */
body {
    padding-top: 80px;
    /* Offset for fixed header */
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-main);
    padding: 10px 15px;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-secondary);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    margin-top: 10px;
    border: 1px solid #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--color-secondary) !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 95, 165, 0.8) 0%, rgba(8, 61, 107, 0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 935px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
    width: 100%;
    margin: 0 auto;
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

/* NEW PREMIUM FEATURES */

/* Stats Bar */
.stats-bar {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 0;
    font-weight: 700;
    font-family: var(--font-body);
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    margin: 0;
    font-weight: 600;
}

/* Premium Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-premium-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-secondary);
}

.service-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-premium-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-icon-float {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    position: absolute;
    bottom: -30px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.service-content {
    padding: 40px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-link:hover {
    color: var(--color-secondary);
    margin-left: 5px;
}

/* Features / Why Us */
.features-section {
    background-color: var(--color-primary);
    color: white;
    padding: 5rem 0;
    background-image: url('../img/footer-pattern.png');
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: 0.3s;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.feature-box h4 {
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations & Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-secondary)
    }
}

@keyframes blinkText {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hero-pole {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-pole:hover {
    animation: blinkText 0.5s ease infinite;
    color: var(--color-secondary) !important;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.typewriter {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    /* Added to prevent horizontal scroll */
}

.typewriter h1 {
    display: inline-block;
    overflow: hidden;
    border-right: .15em solid var(--color-secondary);
    white-space: nowrap;
    letter-spacing: normal;
    width: auto;
    margin: 0;
    color: white;
    font-size: clamp(2.2rem, 7vw, 4rem);
    padding-right: 0.2em;
    animation: blink .75s step-end infinite;
    min-height: 1.2em;
    /* Prevents layout jump while empty */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .typewriter h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
        white-space: normal !important;
        /* Allow wrapping if needed on small screens while typing */
        border-right: .15em solid var(--color-secondary) !important;
    }
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

/* Partners Section - Infinite Marquee */
.partners-section {
    padding: 2.5rem 0;
    background: #fdfdfd;
    border-top: 1px solid #1a1a1a0d;
    border-bottom: 1px solid #1a1a1a0d;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, #fdfdfd 0%, transparent 100%);
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, #fdfdfd 0%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: marqueeRTL 20s linear infinite;
    /* Faster partners marquee */
    will-change: transform;
}

.partner-logo-item {
    flex-shrink: 0;
}

.partner-icon-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.partner-icon-box i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.partner-icon-box span {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #555;
}

.partner-icon-box:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(248, 155, 28, 0.15);
    transform: translateY(-2px);
}

.partner-icon-box:hover i {
    transform: scale(1.1);
}

/* Support pour les images de logos (quand vous remplacerez les icônes) */
.partner-icon-box .partner-logo-img {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

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

/* Si vous utilisez uniquement des images sans texte */
.partner-icon-box img:only-child {
    margin: 0;
}

/* Animation de défilement de droite à gauche */
@keyframes marqueeRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0);
    }
}

.partners-section:hover .partners-track {
    animation-play-state: paused;
}

/* Testimonials - Carousel Dynamique et Premium */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 2.5rem;
    animation: marqueeRTL 60s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    margin-top: 2rem;
    width: 400px;
    max-width: 85vw;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(200, 155, 90, 0.1);
    overflow: hidden;
}

/* Effet de brillance au survol */
.testimonial-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.testimonial-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(248, 155, 28, 0.25);
    border-color: var(--color-secondary);
}

.testimonial-card.active {
    transform: scale(1.05);
    z-index: 10;
}

.testimonial-card i.quote-icon {
    position: absolute;
    top: -25px;
    left: 35px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(248, 155, 28, 0.4);
    transition: all 0.3s ease;
}

.testimonial-card:hover i.quote-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(248, 155, 28, 0.6);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}

.testimonial-rating i {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating i {
    animation: starPulse 0.6s ease infinite alternate;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.testimonial-rating i:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-rating i:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-rating i:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-rating i:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-rating i:nth-child(5) {
    animation-delay: 0.4s;
}

.testimonial-text {
    min-height: 100px;
    font-style: italic;
    color: #444;
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--color-secondary);
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 3rem;
    color: rgba(248, 155, 28, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f5f5f5;
}

.author-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-img {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(248, 155, 28, 0.4);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

/* Navigation Dots - Design Premium */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.testimonials-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.testimonials-dots .dot:hover {
    background: rgba(200, 155, 90, 0.5);
    transform: scale(1.2);
}

.testimonials-dots .dot.active {
    background: var(--color-secondary);
    width: 40px;
    border-radius: 6px;
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(248, 155, 28, 0.4);
}

/* Responsive Testimonials */
@media (max-width: 992px) {
    .testimonial-card {
        min-width: calc(50% - 1.5rem);
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonial-card {
        width: 300px;
        padding: 2rem;
    }

    .testimonial-text {
        min-height: 80px;
        font-size: 1rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESTORED LAYOUT CLASSES */
.about-preview {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* Page About Grid */
.poles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pole-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 2rem;
}

.pole-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 95, 165, 0.15);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    opacity: 0.8;
}

.footer-col a:hover {
    color: var(--color-secondary);
    opacity: 1;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}


/* Footer Newsletter Integrated */
.footer-newsletter-box {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.footer-newsletter-box:focus-within {
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(248, 155, 28, 0.2);
}

.footer-newsletter-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 18px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.footer-newsletter-box button {
    background: var(--color-secondary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.footer-newsletter-box button:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #b08648;
}

.footer-newsletter-box button i {
    font-size: 0.85rem;
    margin-right: 2px;
    /* Slight adjustment for the paper plane icon */
}

/* =========================================================
   RESPONSIVE DESIGN SYSTEM (CLEAN & OPTIMIZED)
   ========================================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .about-preview {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .about-preview {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .about-text {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text ul {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .services-grid,
    .poles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    header nav {
        height: 70px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        padding: 3rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 2rem;
        display: none;
        width: 100%;
        margin-top: 0;
        border: none;
    }

    .dropdown.active-mobile .dropdown-content {
        display: block;
    }

    .dropdown.active-mobile .dropbtn i {
        transform: rotate(180deg);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }

    /* Staggered animation for menu items */
    .nav-links li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }

    .nav-links a.btn {
        background-color: var(--color-secondary);
        color: white;
        border-radius: 50px;
        margin-top: 1rem;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--color-primary);
        padding: 0.5rem;
    }

    .d-none-mobile {
        display: none !important;
    }

    #hero {
        height: auto;
        padding: 6rem 0;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .stats-bar {
        margin-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* Fix flex layouts on mobile */
    #contactForm div[style*="display: flex"],
    #contact .container>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    .page-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }

    .testimonial-card {
        padding: 2rem;
        width: 320px;
    }

    .testimonials-track {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .hero-content h1:not(.typewriter h1) {
        font-size: 1.8rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 3rem 0;
    }

    .testimonials-carousel {
        overflow: hidden !important;
        padding: 2rem 0 !important;
    }

    .testimonials-track {
        animation: none !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        width: 100% !important;
        transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    }

    .testimonial-card {
        width: 100% !important;
        min-width: 100% !important;
        padding: 2rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        white-space: normal !important;
        box-shadow: none !important;
        border-radius: 15px !important;
        flex-shrink: 0 !important;
    }

    .testimonial-author {
        order: -1 !important;
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid #eee !important;
    }

    .testimonial-card i.quote-icon {
        position: static !important;
        margin-bottom: 1rem !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
        box-shadow: none !important;
        transform: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .testimonial-text {
        white-space: normal !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
        font-style: italic !important;
    }
}