/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #333333;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-weight: 300;
}

/* Subtle shadow overlay that follows mouse */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 10%, 
        rgba(0, 0, 0, 0.05) 20%,
        transparent 30%);
    pointer-events: none;
    z-index: 0;
    transition: all 0.2s ease;
}

/* Floating geometric shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    animation: float1 8s ease-in-out infinite;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    animation: float2 10s ease-in-out infinite;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    animation: float3 6s ease-in-out infinite;
    border-radius: 0;
    transform: rotate(45deg);
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    animation: float4 12s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(-30px) rotate(360deg); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(225deg) scale(1.2); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(15px); }
    66% { transform: translateY(15px) translateX(-15px); }
}

/* Particle System - Floating Leaves */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 8px;
    height: 12px;
    background: rgba(76, 175, 80, 0.6);
    border-radius: 0 100% 0 100%;
    transform-origin: center bottom;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.leaf::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 6px;
    background: rgba(139, 69, 19, 0.8);
    transform: translate(-50%, -50%);
}

.leaf:nth-child(odd) {
    background: rgba(46, 125, 50, 0.5);
    border-radius: 100% 0 100% 0;
}

.leaf:nth-child(3n) {
    background: rgba(102, 187, 106, 0.4);
    width: 6px;
    height: 10px;
}

.leaf:nth-child(4n) {
    background: rgba(67, 160, 71, 0.7);
    width: 10px;
    height: 14px;
}

/* Leaf animations */
@keyframes fall1 {
    0% { 
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh) translateX(200px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall2 {
    0% { 
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh) translateX(-150px) rotate(-270deg);
        opacity: 0;
    }
}

@keyframes fall3 {
    0% { 
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% { transform: translateY(50vh) translateX(100px) rotate(180deg); }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh) translateX(50px) rotate(450deg);
        opacity: 0;
    }
}

@keyframes fall4 {
    0% { 
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    30% { transform: translateY(30vh) translateX(-80px) rotate(90deg); }
    70% { transform: translateY(70vh) translateX(120px) rotate(270deg); }
    90% { opacity: 1; }
    100% { 
        transform: translateY(100vh) translateX(-200px) rotate(540deg);
        opacity: 0;
    }
}

/* Realistic Lighting Effects */
.lighting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.01) 20%,
        transparent 40%
    );
    transition: all 0.3s ease;
}

.content-shadow {
    filter: drop-shadow(
        calc((var(--mouse-x, 50%) - 50%) * 0.1px) 
        calc((var(--mouse-y, 50%) - 50%) * 0.1px) 
        2px rgba(0, 0, 0, 0.3)
    );
    transition: filter 0.2s ease;
}

/* 3D Forest Scene Styles */
.forest-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, #1a1a2e, #0f0f23);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    pointer-events: none;
}

.forest-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.toggle-3d-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.toggle-3d-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toggle-3d-btn.active {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

/* 3D Scene Instructions */
.forest-instructions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    z-index: 12;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.forest-instructions kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 2px;
}

/* Embossed Tree Logo Background */
.tree-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 375px;
    opacity: 0.08;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 75%,
        rgba(255, 255, 255, 0.05) 100%);
    clip-path: polygon(
        50% 0%,
        45% 15%,
        55% 15%,
        50% 30%,
        40% 30%,
        60% 30%,
        35% 45%,
        65% 45%,
        30% 60%,
        70% 60%,
        25% 75%,
        75% 75%,
        45% 90%,
        55% 90%,
        50% 100%
    );
    z-index: 2;
    pointer-events: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tree-logo:hover {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.05);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.25) 75%,
        rgba(255, 255, 255, 0.08) 100%);
    cursor: pointer;
}

header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 3;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 8rem); /* Account for footer height */
}

.hero {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #5a5a5a, #3a3a3a);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Logo styling */
.logo-container {
    margin-top: 2rem;
    text-align: center;
}

.main-logo {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    /* Darker than background, no outer effects */
    filter: brightness(0) saturate(100%) invert(15%);
}

.main-logo:hover {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(70%);
}

/* Embossed Tree Logo Background */
.tree-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        /* Tree crown - multiple circles for foliage */
        radial-gradient(circle at 200px 150px, #444 60px, transparent 61px),
        radial-gradient(circle at 160px 180px, #444 50px, transparent 51px),
        radial-gradient(circle at 240px 180px, #444 50px, transparent 51px),
        radial-gradient(circle at 200px 200px, #444 70px, transparent 71px),
        radial-gradient(circle at 140px 220px, #444 45px, transparent 46px),
        radial-gradient(circle at 260px 220px, #444 45px, transparent 46px),
        radial-gradient(circle at 200px 240px, #444 55px, transparent 56px),
        
        /* Tree trunk */
        linear-gradient(to bottom, 
            transparent 280px,
            #444 280px,
            #444 450px,
            transparent 450px
        );
    background-size: 
        400px 500px,
        400px 500px,
        400px 500px,
        400px 500px,
        400px 500px,
        400px 500px,
        400px 500px,
        400px 500px;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Emboss effect */
    filter: 
        drop-shadow(2px 2px 0px rgba(0,0,0,0.1))
        drop-shadow(-1px -1px 0px rgba(255,255,255,0.02));
}

/* Trunk positioning */
.tree-logo::before {
    content: '';
    position: absolute;
    top: 280px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 170px;
    background: #444;
    opacity: 0.5;
}

header {
    text-align: center;
    padding: 3rem 0 2rem 0;
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: #f5f5f5;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 8rem); /* Account for footer height */
}

.hero {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: #f0f0f0;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-style: normal;
    font-weight: 300;
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    color: #f0f0f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #5a5a5a, #3a3a3a);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

footer {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .tree-logo {
        width: 300px;
        height: 375px;
        opacity: 0.02;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .tree-logo {
        width: 250px;
        height: 312px;
    }
    
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}
