/* --- Variables & Reset --- */
:root {
    --primary-color: #0d2546;
    /* Deep Navy from potential logo analysis */
    --primary-light: #1a3a63;
    --accent-color: #ff6b00;
    /* Vibrant Orange */
    --accent-hover: #e65100;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --success: #25d366;
    /* WhatsApp Green */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

/* --- Utilities --- */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

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

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

.btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
    padding: 8px 24px;
}

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Button Icon Spacing */
.btn i {
    margin-right: 8px;
    /* Adds space between icon and text */
}


/* --- Header --- */
/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: var(--primary-color);
    /* Navy Blue Background */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 2px solid var(--accent-color);
    /* Orange Border */
}

header.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transform: translateZ(0);
    backface-visibility: hidden;
    filter: brightness(0) invert(1);
    /* Force white logo */
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

.navbar .nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    /* White text */
    position: relative;
}

header.scrolled .navbar .nav-links a {
    color: var(--white);
}

/* Hover underline effect */
.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Updated Header Button Styles for Blue Background */
.btn-secondary-header {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--white) !important;
    padding: 8px 15px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

.btn-secondary-header:hover {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
}

/* --- Office Gallery --- */
.office-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.office-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.office-img:hover {
    transform: scale(1.02);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
    /* Aligned left for footer col */
}

.social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 1.1rem;
    text-decoration: none !important;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

header.scrolled .mobile-menu-toggle {
    color: var(--primary-color);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 100px;
    /* Adjusted size for the symbol */
    animation: breathing 2s infinite ease-in-out;
}

@keyframes breathing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 5px rgba(13, 37, 70, 0.2));
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.4));
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 5px rgba(13, 37, 70, 0.2));
    }
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
    /* Fallback */
    background: url('familia.jpg') no-repeat center center/cover;
    /* Family Image */
}

/* Dark Overlay for Readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 18, 59, 0.85);
    /* Deep Blue/Black Overlay */
    z-index: 1;
}

.hero-bg {
    display: none;
    /* Hide previous watermark container if not needed, or adjust */
}

.container.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the text block */
    z-index: 2;
    position: relative;
    margin-top: 60px;
    text-align: center;
    /* Center alignment */
}

.hero-text {
    max-width: 800px;
    /* Limit width for readability */
    color: var(--white);
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Moving the 'Faixa' to a subtle background watermark */
.hero-bg .overlay {
    position: absolute;
    top: 50%;
    right: -10%;
    /* Positioning nicely on the side */
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    background: url('MOD2.png') no-repeat center right;
    background-size: contain;
    opacity: 0.2;
    /* Slightly increased for visibility */
    pointer-events: none;
}

/* --- About Section --- */
.about {
    background-color: var(--white);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

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

.about-decoration {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    opacity: 0.2;
    z-index: 0;
}

.about-logo-large {
    width: 80%;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.about-text {
    flex: 1;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 10px;
    border-radius: 2px;
}

.center .section-title::after {
    margin: 10px auto 0;
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.about-features {
    margin-top: 25px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.about-features li i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- Services Section --- */
.services {
    background-color: var(--off-white);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(13, 37, 70, 0.05);
    /* Light Navy */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--accent-color);
}

.service-card:hover i {
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(13, 37, 70, 0.9), rgba(13, 37, 70, 0.9)), url('MOD2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(rgba(5, 16, 31, 0.95), rgba(5, 16, 31, 0.98)), url('MOD2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Very Dark Navy fallback */
    background-color: #05101f;
    color: #b0c4de;
    padding-top: 80px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    background: var(--white);
    /* Optional: bg for logo visibility if needed */
    padding: 10px;
    border-radius: 8px;
    /* Fix rendering */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer ul li {
    margin-bottom: 15px;
}

.footer a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Footer App/Review Buttons */
.footer-app-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.btn-app {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--white) !important;
    transition: var(--transition);
    min-width: 170px;
    z-index: 5;
}

.btn-app i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.btn-app .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-app .btn-text span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-app .btn-text strong {
    font-size: 1rem;
    font-family: var(--font-heading);
}

.btn-app:hover {
    background: var(--white);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-app:hover i {
    color: var(--primary-color);
}

.btn-app:hover .btn-text span {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Specific colors on hover */
.btn-playstore:hover {
    border-color: #34a853;
}

.btn-google-review:hover {
    border-color: #4285f4;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Why Choose Section --- */
.why-choose {
    background-color: var(--white);
    padding-bottom: 80px;
    overflow: hidden;
    /* Ensure animations don't scrollbar */
}

.why-choose-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.why-choose-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-choose-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.why-choose-image:hover img {
    transform: scale(1.05);
}

.benefits-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.benefit-item {
    background: var(--off-white);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    background: var(--white);
}

.benefit-item i {
    color: var(--success);
    font-size: 1.2rem;
}

.benefit-item span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--off-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fcfcfc;
}

.faq-answer p {
    padding: 0 25px 25px;
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Active State */
.faq-item.active .faq-question {
    background-color: rgba(255, 107, 0, 0.05);
    /* Very light orange */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Allow enough space */
}

/* --- Guide Section --- */
.faq-guide {
    background-color: var(--white);
}

.guide-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 107, 0, 0.15);
    /* Accent transparent */
    line-height: 0.8;
    min-width: 60px;
    text-align: right;
    font-family: var(--font-heading);
}

.step-info h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.step-info ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.step-info li {
    margin-bottom: 8px;
}

/* --- Media Queries --- */
/* --- Media Queries (Definitive Fix) --- */

/* Tablet & Mobile (Below 992px) */
@media (max-width: 992px) {

    /* Header Adjustments */
    .header-container {
        padding: 0 15px;
        /* Ensure padding on sides */
    }

    /* Hide desktop CTA and Nav Links initially */
    .header-cta,
    .navbar .nav-links {
        display: none !important;
    }

    /* Show the hamburger menu */
    .mobile-menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: #ffffff !important;
        /* Force White */
        margin-right: 15px;
        /* Add spacing from edge */
        z-index: 1002;
    }

    /* Mobile Menu Active State */
    .navbar.active .nav-links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        /* Navy Blue Background */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 20px;
        align-items: center;
        gap: 15px;
        max-height: 85vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile Menu Buttons (Injected via JS) */
    .navbar.active .nav-links li .btn {
        width: 100%;
        display: block;
        margin-top: 15px;
        /* Increased separation */
        padding: 12px 25px;
        /* Added horizontal padding */
        text-align: center;
        color: var(--white) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        background-color: transparent !important;
        border-radius: 50px;
        /* Rounded pill shape */
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Add extra space specifically before the first button (which follows nav links) */
    .navbar.active .nav-links li:nth-child(5) .btn,
    /* Assuming 4 nav links */
    .navbar.active .nav-links li:first-of-type .btn {
        /* Fallback */
        margin-top: 25px;
    }

    .navbar.active .nav-links li .btn:hover {
        background-color: var(--white) !important;
        color: var(--primary-color) !important;
    }

    /* Fix Nav Links Color in Mobile Menu */
    .navbar.active .nav-links a {
        color: var(--white) !important;
        /* White text */
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle divider */
        width: 100%;
        text-align: center;
    }

    .navbar.active .nav-links a:hover {
        color: var(--accent-color) !important;
    }

    /* Hero Section Fixes */
    .hero {
        height: auto;
        /* Remove fixed height */
        min-height: auto;
        /* Allow content to dictate height */
        padding-top: 120px;
        /* More space for header */
        padding-bottom: 60px;
    }

    .container.hero-content {
        flex-direction: column;
        text-align: center;
        margin-top: 0;
        /* Remove extra margin */
    }

    .hero-text {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        /* Readable size */
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 20px auto 0;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        display: flex;
        /* Centering content */
        justify-content: center;
        align-items: center;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image {
        margin-bottom: 20px;
    }

    .about-decoration {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
        opacity: 0.15;
        /* Sligthly less intrusive */
    }

    .about-features li {
        justify-content: flex-start;
        /* Align left for readability */
        text-align: left;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer a {
        justify-content: center;
    }

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

    .footer-app-btns {
        display: flex !important;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .btn-app {
        min-width: 150px;
        padding: 8px 12px;
    }

    /* FAQ/Guide Responsiveness */
    .guide-step {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .step-number {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .step-info ul {
        text-align: left;
        /* Keep lists readable */
        display: inline-block;
    }

    /* Why Choose Responsiveness */
    .why-choose-content {
        flex-direction: column;
        gap: 30px;
    }

    .why-choose-image {
        width: 100%;
        max-width: 500px;
        /* Limit image size on mobile */
        margin: 0 auto;
    }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
    .logo img {
        height: 40px;
        /* Smaller logo */
    }

    .hero-text h1 {
        font-size: 1.8rem;
        /* Fit screen */
    }

    .hero-text p {
        font-size: 1rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px 20px;
    }

    /* Ensure Header content doesn't overflow */
    .header-container {
        padding: 0 10px;
    }
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="zoom-in"] {
    transform: scale(0.9);
}

/* Active State */
.animated {
    opacity: 1 !important;
    transform: text-transform(none) !important;
}

/* Specific Transforms for Active State */
.animated.fade-up {
    transform: translateY(0);
}

.animated.fade-left {
    transform: translateX(0);
}

.animated.fade-right {
    transform: translateX(0);
}

.animated.zoom-in {
    transform: scale(1);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}