:root {
    --primary-color: #3b82f6;
    --secondary-color: #f97316;
    --dark-bg: #0f172a;
    --alt-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--alt-bg);
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2rem 2rem 6rem 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    max-height: 320px;
    height: 25vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

#animationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    cursor: pointer;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 60px; /* Moved more to the left */
}

.hero-title {
    font-size: 2.5rem;
    line-height: 0.8; /* Reduce line-height to eliminate dead space */
    margin-bottom: 0;
    padding-bottom: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #3b82f6, #22d3ee);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out, gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.2;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    margin-top: 0; /* Small gap after reducing h1 line-height */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating shapes in hero */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    width: 1200px;
    height: 1200px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(3px);
    transition: border-radius 2s ease-in-out;
}

.spinning-shape {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.25);
    border: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(3px);
    transition: border-radius 2s ease-in-out, border-color 0.3s ease-out;
    animation: spin 20s linear infinite;
    z-index: 10;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
}

.easter-egg-hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.5;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        min-height: 260px;
        max-height: 280px;
        height: 22vh;
        padding: 1.5rem 2rem 5rem 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
    }
    
    .hero {
        min-height: 250px;
        max-height: 280px;
        height: 28vh;
        padding: 1.5rem 1.5rem 5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}
