:root {
    --bg-main: #0A192F;
    --bg-sec: #112240;
    --text-main: #E6F1FF;
    --text-muted: #8892b0;
    --accent: #FFC107;
    --accent-glow: rgba(255, 193, 7, 0.3);

    --font-heading: 'Playfair Display', serif;
    /* A bit more class/traditional for the "Phare" aspect */
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

/* Logo Tweaks */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 60px;
    /* Reduced from 90px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.4));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* ... nav links ... */

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-nav {
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--accent) !important;
}

.btn-nav:hover {
    background: rgba(255, 193, 7, 0.1);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
}

/* New Hero Visual using Logo */
.lighthouse-hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-lighthouse-img {
    width: auto;
    /* Let natural aspect ratio dictate width */
    height: 110vh;
    /* slightly taller than viewport to allow scroll effect */
    max-width: 100%;
    /* Don't overflow width */
    object-fit: cover;
    opacity: 0.9;

    /* Center the image specifically */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    /* Restore blue feel: Blend edges into the dark blue background */
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);

    /* Slight blue tint to harmonize with brand color if the image is too warm */
    mix-blend-mode: normal;
}

/* The Beam - Adjusted for Center */
.hero-beam {
    position: absolute;
    top: 35%;
    /* Adjust based on image lantern position */
    left: 50%;
    width: 200vw;
    height: 500px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.9) 0%, rgba(255, 193, 7, 0.15) 30%, transparent 70%);
    clip-path: polygon(50% 50%, 0% 0%, 100% 0%);
    /* Conical beam upwards/outwards or rotation based */
    /* Let's try a rotating sweep effect from center */
    clip-path: none;
    background: conic-gradient(from 250deg at 50% 50%, transparent 0deg, rgba(255, 193, 7, 0.4) 20deg, rgba(255, 193, 7, 0.8) 35deg, rgba(255, 193, 7, 0.4) 50deg, transparent 70deg);

    transform-origin: 50% 50%;
    width: 300vw;
    height: 300vw;
    top: -100vw;
    /* Position the center of gradient at the lantern */
    left: -100vw;

    /* Re-doing the beam approach for a rotating lighthouse style */
}

/* Overwriting the previous beam CSS completely for the new effect */
.lighthouse-hero-visual::after {
    content: '';
    position: absolute;
    /* Approximate lantern position relative to the centered image. 
       Since image is centered 120vh, we need to fine tune. 
       Let's assume lantern is roughly at the top third. */
    top: 35%;
    left: 50%;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 100px 40px rgba(255, 193, 7, 0.9);
    background: white;
    border-radius: 50%;
    z-index: 3;
    animation: flash 4s infinite ease-in-out;
}

.hero-beam {
    /* Actual rotating beam */
    position: absolute;
    top: 35%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 200, 50, 0.05) 20deg, rgba(255, 200, 50, 0.4) 40deg, transparent 60deg);
    transform: translate(-50%, -50%);
    transform-origin: 50% 50%;
    animation: rotation 10s infinite linear;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
    filter: blur(30px);
}

@keyframes rotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* The Beam - Adjusted */
/* Removing old smoothSweep animation as we use rotation now */



@keyframes flash {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 20px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Section Basics */
.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* About Section */
.about-section {
    background-color: var(--bg-sec);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Abstract Lighthouse CSS Art replaced by Image */
.lighthouse-icon-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.agency-visual-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
    filter: brightness(0.9) contrast(1.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.agency-visual-img:hover {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.1);
    box-shadow: 0 30px 60px rgba(255, 193, 7, 0.15);
}

/* Services Section - Premium Glassmorphism */
.services-section {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(17, 34, 64, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(17, 34, 64, 0.4) 0%, transparent 40%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #0A192F;
    /* Fallback */
    height: 350px;
    /* Fixed height for uniformity */
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push text to bottom */
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    /* Gradient Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.3) 0%, rgba(10, 25, 47, 0.95) 85%);
    z-index: 1;
    transition: background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.1) 0%, rgba(10, 25, 47, 0.9) 85%);
}

.service-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: brightness(0.8);
    margin: 0;
    /* Reset margins */
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    filter: brightness(1);
    /* No rotation, just clean zoom */
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: var(--text-main);
    z-index: 2;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    z-index: 2;
    line-height: 1.7;
}

/* Demo Section */
.demo-section {
    background-color: var(--bg-sec);
    text-align: center;
}

.demo-intro {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

#bot-container {
    width: 100%;
    max-width: 800px;
    min-height: 400px;
    margin: 0 auto;
    background: rgba(10, 25, 47, 0.3);
    border: 1px dashed var(--accent);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.bot-placeholder .placeholder-text {
    margin-top: 1rem;
    font-family: monospace;
    color: var(--accent);
    opacity: 0.7;
}

.loader-signal {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Footer */
.footer {
    background-color: #020c1b;
    padding: 3rem 0;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(230, 241, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-links a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, would add hamburger logic in full JS */
    }

    .mobile-menu-btn {
        display: block;
        color: var(--text-main);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links a {
        margin: 0 0.75rem;
    }

    .lighthouse-beam {
        width: 150px;
        filter: blur(40px);
    }
}

/* Pricing Section */
.pricing-section {
    position: relative;
    padding-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    /* Cards same height */
    justify-content: center;
}

.pricing-card {
    background: rgba(10, 25, 47, 0.7);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 193, 7, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.pricing-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.2));
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.pricing-price .period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 5px;
}

.setup-fee {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Push button to bottom */
}

.pricing-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pricing-features li.disabled {
    color: #64748b;
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✕';
    color: #64748b;
}

/* Premium Card - Le Phare */
.pricing-card.premium {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.9), rgba(17, 34, 64, 0.95));
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.premium:hover {
    transform: scale(1.08);
    /* Slightly more pop */
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.25);
}

.best-seller-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.bonus-tag {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent);
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px dashed var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-gold {
    background: var(--accent);
    color: var(--bg-main);
    border: 2px solid var(--accent);
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline-gold:hover {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent);
}

/* Responsive Pricing */
@media (max-width: 992px) {
    .pricing-card.premium {
        transform: scale(1);
    }

    .pricing-card.premium:hover {
        transform: translateY(-5px);
    }
}



/* Engagements Section (Why Choose Us) */
.engagements-section {
    background-color: var(--bg-main);
    padding-top: 2rem;
    padding-bottom: 4rem;
    position: relative;
}

.engagements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.engagement-card {
    background: rgba(17, 34, 64, 0.4);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    /* Centered as requested */
    transition: transform 0.3s ease;
}

.engagement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.engagement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.3));
}

.engagement-card h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.engagement-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-hero .hero-content h1 {
    font-size: 3.5rem;
}

.contact-section {
    background-color: var(--bg-main);
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.contact-form {
    background: rgba(10, 25, 47, 0.7);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(230, 241, 255, 0.1);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.1);
    background: rgba(2, 12, 27, 0.8);
}

.submit-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    margin-top: 1rem;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Responsive adjustments for contact */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-hero .hero-content h1 {
        font-size: 2.5rem;
    }




}