/* style.css - Enhanced Version */

/* Base Styles */
:root {
    --primary-blue: #3b82f6;
    --dark-blue: #2563eb;
    --light-blue: #60a5fa;
    --success-green: #48bb78;
    --dark-green: #38a169;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    background-color: #f8f8f8;
}

.font-serif {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
}

/* Hero Section Improvements */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
}

.geometric-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
}

/* Tower Styles with Individual Animations */
.tower {
    position: absolute;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 100%);
    border-left: 2px solid rgba(255,255,255,0.8);
    border-right: 2px solid rgba(255,255,255,0.8);
    box-shadow: 
        inset 0 0 20px rgba(255,255,255,0.5),
        0 10px 40px rgba(0,0,0,0.1);
    animation: floatTowers 15s ease-in-out infinite;
    z-index: 0;
    opacity: 0.7;
    backdrop-filter: blur(2px);
}

/* Individual tower positioning and animation delays */
.t1 {
    width: 40px;
    height: 400px;
    left: 10%;
    bottom: -400px;
    animation-delay: 0s;
}

.t2 {
    width: 60px;
    height: 500px;
    left: 25%;
    bottom: -500px;
    animation-delay: -3s;
}

.t3 {
    width: 50px;
    height: 450px;
    left: 40%;
    bottom: -450px;
    animation-delay: -6s;
}

.t4 {
    width: 70px;
    height: 550px;
    left: 60%;
    bottom: -550px;
    animation-delay: -9s;
}

.t5 {
    width: 45px;
    height: 420px;
    left: 80%;
    bottom: -420px;
    animation-delay: -12s;
}

@keyframes floatTowers {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        box-shadow: 
            inset 0 0 20px rgba(255,255,255,0.5),
            0 10px 40px rgba(0,0,0,0.1);
    }
    25% {
        transform: translateY(-20px) translateX(8px) rotate(0.5deg);
        box-shadow: 
            inset 0 0 25px rgba(255,255,255,0.6),
            0 15px 50px rgba(0,0,0,0.15);
    }
    50% {
        transform: translateY(0) translateX(15px) rotate(0deg);
        box-shadow: 
            inset 0 0 20px rgba(255,255,255,0.5),
            0 10px 40px rgba(0,0,0,0.1);
    }
    75% {
        transform: translateY(-15px) translateX(-5px) rotate(-0.5deg);
        box-shadow: 
            inset 0 0 25px rgba(255,255,255,0.6),
            0 15px 50px rgba(0,0,0,0.15);
    }
}

/* Green Elements with Glow Effect */
.green-element {
    position: absolute;
    background: linear-gradient(135deg, var(--success-green), var(--dark-green));
    border-radius: 50%;
    box-shadow: 
        0 5px 20px rgba(72, 187, 120, 0.4),
        0 0 50px rgba(72, 187, 120, 0.2);
    z-index: 0;
    filter: blur(1px);
    opacity: 0.4;
}

.hero-section .green-element:nth-child(1) {
    width: 20vw;
    height: 20vw;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
    max-width: 300px;
    max-height: 300px;
}

.hero-section .green-element:nth-child(2) {
    width: 12vw;
    height: 12vw;
    bottom: 20%;
    left: 20%;
    animation: float 6s ease-in-out infinite reverse;
    max-width: 200px;
    max-height: 200px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fadeIn {
    opacity: 1;
    transform: translateY(0);
}

/* Typography Improvements */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    font-weight: 300;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-blue), var(--dark-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--dark-blue), #1e40af);
}

/* Hover Effects */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary::after {
    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-primary:hover::after {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .tower {
        opacity: 0.4;
    }
    
    .green-element {
        opacity: 0.2;
    }
}

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

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}