:root {
    --bg-color: #022050;
    --bg-color-alt: #032863; /* Slightly lighter shade for distinction */
    --text-primary: #f8f9fa;
    --text-secondary: #c2c9d6;
    /* White for accent, pure minimalism */
    --accent-color: #ffffff;
    --accent-hover: rgba(255, 255, 255, 0.85);
    
    --card-bg: rgba(0, 0, 0, 0.15);
    --card-bg-hover: rgba(0, 0, 0, 0.25);
    
    /* Soft, modern typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --spacing-sm: 1.5rem;
    --spacing-md: 3rem;
    --spacing-lg: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px; /* Slightly larger for better reading of serif fonts */
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
    color: var(--bg-color);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* New accent for CTA buttons */
.btn-primary {
    background-color: #d4af37; /* Elegant gold accent */
    color: #022050;
}

.btn-primary:hover {
    background-color: #c5a028; /* Slightly darker gold */
    color: #022050;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.btn-sm {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-sm:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background-color: rgba(2, 32, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-color);
    letter-spacing: -1px;
}

.main-nav {
    display: none; /* Hidden on mobile */
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a:hover::after {
    width: 100%;
}


/* Screen Reader Only for SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

.section-alt {
    background-color: #f4f6f9; /* Light gray for air and distinction */
    color: #2d3748;
    border-top: none;
    border-bottom: none;
}

.section-alt h1, .section-alt h2, .section-alt h3, .section-alt h4 {
    color: var(--bg-color);
}

.section-alt .section-title {
    color: var(--bg-color);
}

.section-alt .section-title::after {
    background-color: rgba(2, 32, 80, 0.3); /* Based on --bg-color */
}

.section-alt .team-member .member-name {
    color: var(--bg-color);
}

.section-alt .team-member .member-degree {
    color: #4a5568;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: -0.2rem;
    margin-bottom: 0.5rem;
}

.section-alt .team-photo {
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Override service cards in light section */
.section-alt .service-details {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.section-alt .service-details[open] {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.section-alt .service-details summary {
    color: var(--bg-color);
}

.section-alt .service-details p {
    color: #4a5568;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    left: 0;
    transform: none;
}

.section-text {
    text-align: center;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto var(--spacing-md);
}

/* Hero */
.hero {
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
    z-index: 20;
    padding: 3rem 0 0;
}

.hero-logo {
    width: 90%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* CTA button that floats on the hero/team boundary */
.hero-cta {
    position: relative;
    z-index: 10;
    transform: translateY(50%);
    margin-bottom: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Cancel the global btn:hover lift — CTA stays in place */
.hero-cta:hover {
    transform: translateY(50%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Team Section */
.team {
    padding-top: calc(var(--spacing-lg) + 2rem); /* extra space for the floating CTA */
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.team-member {
    text-align: center;
}



.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.team-member .member-name {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.team-member .role {
    color: var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
}



/* About Section */
.about-container {
    max-width: 800px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.about-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-list li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Services Accordion */
.services-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-details {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.service-details[open] {
    background: var(--card-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-details summary {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-icon {
    color: #38bdf8; /* Celeste */
    flex-shrink: 0;
}

.service-details summary::-webkit-details-marker {
    display: none;
}

.service-details summary::after {
    content: '+';
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.service-details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.service-details p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    animation: fadeInDown 0.3s ease-in-out;
}

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

/* Testimonials Carousel */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.testimonials-container {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scroll-marquee 35s linear infinite;
    padding: 10px 0; /* space for box-shadows */
}

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

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.testimonial {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    border-left: 4px solid var(--accent-color);
    width: 350px; /* fixed width for carousel */
    white-space: normal;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quote {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.author {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: radial-gradient(circle at top, #022050 0%, #011536 100%);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-cta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.footer-logo {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.footer-phones {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: var(--font-heading);
    white-space: nowrap;
    transition: color 0.3s ease, transform 0.3s ease;
}

.phone-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.phone-link svg {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.made-by {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.made-by:hover {
    opacity: 1;
}

.made-by a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
}

/* Media Queries (Tablet and Desktop) */
@media (min-width: 768px) {
    .logo {
        display: none;
    }

    .main-nav {
        display: flex;
    }

    .hero {
        padding: 4rem 0 0;
    }

    .hero-logo {
        max-width: 800px;
    }


    .section-title {
        font-size: 2.8rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-btn {
    animation: pulse-glow 2s infinite;
}

.pulse-btn:hover {
    animation: none;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
/* Privacy Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background-color: var(--bg-color);
    color: var(--text-primary);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.modal-body h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.modal-body p, .modal-body ul {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    padding-left: 1.5rem;
}

.modal-body strong {
    color: var(--text-primary);
}

.privacy-link {
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin: 0.5rem 0;
    display: inline-block;
}

.privacy-link:hover {
    color: var(--accent-color);
}
