/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-green: #016435;
    --dark-green: #004d29;
    --accent-green: #2ecc71;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-muted: #e0e0e0;
}

body {
    background-color: var(--primary-green);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    /* Rich radial gradient background for depth */
    background: radial-gradient(circle at 50% 50%, #017a41 0%, #016435 50%, #00381e 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-green);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

/* Stack Container */
.stack-container {
    width: 100%;
}

/* Card Styles - THE STACK EFFECT & FLOATING DESIGN */
.card {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px; /* The "gap" from the edge */
    perspective: 1000px; /* For 3D effects */
    /* Ensure cards below don't peek through weirdly */
    background: transparent; 
}

.card-content {
    width: 100%;
    height: 100%;
    
    /* Creating the Floating Glass Effect */
    background: rgba(1, 100, 53, 0.7); /* Semi-transparent base */
    backdrop-filter: blur(20px); /* Heavy blur for glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    
    /* The "Border of 30px" - simulated with Box Shadow or Inner Border? 
       User asked for "margin 30px and border 30px".
       We have 30px outer padding (margin).
       Let's add a thick translucent border styling or inner spacing. */
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5), /* Deep shadow for floating */
        inset 0 0 0 1px rgba(255,255,255,0.1); /* Inner light edge */
        
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    
    /* Animations */
    transform-origin: center top;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Subtle pulse animation for background elements */
.card-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography & Content Animations */
h1.logo {
    display: none; /* Replaced by image in HTML update, but keeping just in case */
}

.hero-content img {
    /* Logo animation */
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
    animation: floatLogo 6s ease-in-out infinite;
    margin-bottom: 2rem;
    max-width: 80%;
    object-fit: contain;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a8e6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.3s;
    max-width: 900px;
}

p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 30px;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Icons */
.bg-icon {
    position: absolute;
    width: 60vw; /* Use vw/vh based on orientation? or just max size. Let's stick to vh or clamp. */
    height: 60vh; 
    max-width: 600px;
    max-height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08; /* Slightly more visible */
    stroke: #ffffff;
    stroke-width: 0.15; /* Thinner stroke (0.15 * ~600px coordinates if scale applies? No, wait. 
                           If SVG has viewBox 0 0 24 24, and is scaled to 600px...
                           Coordinate space is magnified 25x.
                           So 0.15 unit = 0.15 * 25 = 3.75px. This is good. */
    z-index: -1;
    pointer-events: none;
    animation: floatIcon 12s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translate(-50%, -50%) rotate(-10deg) scale(0.9); }
    100% { transform: translate(-50%, -50%) rotate(5deg) scale(1.1); }
}

/* Specific Card Tweaks for "Pretty" Colors */
/* We keep the base green but add subtle variances via gradients overlay */
.card:nth-child(2) .card-content { background: linear-gradient(180deg, rgba(1,100,53,0.8), rgba(0,77,41,0.9)); }
.card:nth-child(3) .card-content { background: linear-gradient(180deg, rgba(0,77,41,0.9), rgba(1,100,53,0.8)); }
.card:nth-child(4) .card-content { background: linear-gradient(180deg, rgba(1,100,53,0.8), rgba(0,56,30,0.9)); } 
.card:nth-child(5) .card-content { background: linear-gradient(180deg, rgba(0,56,30,0.9), rgba(1,100,53,0.8)); }
.card:nth-child(6) .card-content { background: linear-gradient(180deg, rgba(1,100,53,0.8), rgba(0,40,20,0.95)); }


/* Navigation */
.card-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

.card-nav a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    position: relative;
}

.card-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s;
}

.card-nav a:hover {
    color: #fff;
}

.card-nav a:hover::after {
    width: 100%;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    background: #fff;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    
    opacity: 0;
    animation: zoomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: var(--accent-green);
    color: #fff;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
}
.whatsapp-btn:hover {
    background: #1ebc57;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

/* Form Elements */
.form-container {
    width: 100%;
    max-width: 600px;
    perspective: 1000px;
}

textarea {
    width: 100%;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    min-height: 180px;
    resize: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.2);
}

.small-note {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 15px;
}

/* Social Icons */
.card-header .social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: var(--primary-green);
    transform: rotate(360deg);
}

/* Card Specific Layouts */
.card#home .card-content {
    /* Special layout for home */
    justify-content: flex-end; /* Push content slightly down or center? Center is safer for varying heights */
    justify-content: center;
    padding-bottom: 100px; /* Make room for footer nav */
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        padding: 10px; /* reduced margin on mobile */
    }
    
    .card-content {
        border-width: 1px; /* Thinner borders */
        padding: 20px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content img {
        width: 180px; /* Resize logo */
        height: auto;
    }
    
    .card-nav {
        gap: 15px;
        padding: 10px 20px;
    }
    
    .card-nav a {
        font-size: 0.7rem;
    }
    
    .card-content::before {
        display: none; /* Perf optimization */
    }
    
    /* Ensure no overflow */
    p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}