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

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #90EE90;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin: 0;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('Swamp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Canvas */
#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Content Overlay */
.hero-content {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}


.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #90EE90;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #E6FFE6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 300;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.6);
    background: linear-gradient(135deg, #3CB371, #2E8B57);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2F4F2F;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFED4E, #FFB84D);
}

.btn-tertiary {
    background: transparent;
    color: #90EE90;
    border: 2px solid #90EE90;
    box-shadow: 0 4px 15px rgba(144, 238, 144, 0.2);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    background: rgba(144, 238, 144, 0.1);
    box-shadow: 0 6px 20px rgba(144, 238, 144, 0.4);
    border-color: #98FB98;
}

/* New Button Styles */
.btn-buy {
    background: none;
    color: #90EE90;
    border: none;
    box-shadow: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-buy::before {
    display: none;
}

.btn-buy:hover {
    transform: translateY(-2px);
    color: #98FB98;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.btn-pill {
    background: rgba(144, 238, 144, 0.2);
    color: #90EE90;
    border: 1px solid rgba(144, 238, 144, 0.4);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.btn-pill:hover {
    background: rgba(144, 238, 144, 0.3);
    border-color: rgba(144, 238, 144, 0.6);
    transform: translateY(-2px);
}

/* Loading Screen */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #90EE90;
    font-size: 1.2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(144, 238, 144, 0.3);
    border-top: 3px solid #90EE90;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #1a2f1a, #0d1f0d);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="swamp" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="%23228B22" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23swamp)"/></svg>');
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    color: #90EE90;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(144, 238, 144, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #90EE90, #32CD32, #228B22, #90EE90);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(144, 238, 144, 0.2);
}

.info-card:hover::before {
    opacity: 0.3;
}

.card-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #90EE90;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E6FFE6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .fixed-header {
        padding: 0.8rem 0;
    }
    
    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .how-it-works {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a2f1a, #0d1f0d);
    margin: 15% auto;
    padding: 2rem;
    border: 2px solid rgba(144, 238, 144, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(144, 238, 144, 0.3);
}

.modal-content h3 {
    color: #90EE90;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-content p {
    color: #E6FFE6;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.close-btn {
    color: #90EE90;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: #98FB98;
    text-decoration: none;
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure background stays fixed on mobile */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .modal-content {
        margin: 25% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
}
