/* --- Hero-style Intro Section Styles: Handles hero, floating words, and intro content --- */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    left: 50%;
    transform: translateX(-50%);
}

/* Background Image Container */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block !important;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(30,40,90,0.18);
    transition: opacity 0.5s ease;
}

/* Dark mode background (default) */
.hero-bg .dark-mode-bg {
    display: block;
}

/* Light mode backgrounds - hide all by default */
.hero-bg .light-mode-bg {
    display: none;
}

/* Show random light mode background based on time/random selection */
body.light-mode .hero-bg .dark-mode-bg {
    display: none;
}

body.light-mode .hero-bg .light-mode-bg {
    display: block;
}

/* Light mode backgrounds - JavaScript will handle random selection */
body.light-mode .hero-bg .light-mode-bg {
    display: none; /* JavaScript will show one randomly */
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 2;
}

/* Main Content Container */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1600px;
    width: 95%;
    margin: 0 auto !important;
    padding: 0 1.5rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 0 !important;
}

/* Name Display */
.hero-name-container {
    margin-bottom: 2.5rem;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}

.hero-name span {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    will-change: transform, opacity;
}

.hero-name span:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-name span:nth-child(2) {
    animation-delay: 0.4s;
}

/* Floating Animated Words */
.hero-floating-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-word {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: floatWord 8s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: transform, opacity;
    white-space: nowrap;
}

/* Repositioned floating words to prevent intersections */
.floating-word:nth-child(1) {
    top: 10%;
    left: 3%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.floating-word:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.floating-word:nth-child(3) {
    top: 40%;
    left: 8%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.floating-word:nth-child(4) {
    top: 50%;
    right: 5%;
    animation-delay: 6s;
    animation-duration: 11s;
}

.floating-word:nth-child(5) {
    top: 70%;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.floating-word:nth-child(6) {
    top: 80%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 8s;
}

/* Quote Section */
.hero-quote {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    will-change: transform, opacity;
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 10rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
    will-change: transform, opacity;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.hero-stat-item a:hover {
    transform: translateY(-5px);
}

.hero-stat-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* CTA Buttons */
.hero-cta-buttons {
    margin-top: 0.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1s forwards;
    will-change: transform, opacity;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-cta-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 ease;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-cta-btn.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
    will-change: opacity;
}

.hero-scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    margin: 0 auto 1rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes floatWord {
    0%, 100% {
        opacity: 0;
        transform: translateY(20px) rotate(-5deg);
    }
    20%, 80% {
        opacity: 0.8;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        width: 100vw;
        left: 0;
        transform: none;
    }
    
    .hero-content {
        padding: 0 0.5rem 2rem 0.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-word {
        font-size: clamp(1rem, 4vw, 2rem);
    }
    
    .hero-name {
        font-size: clamp(1.2rem, 6vw, 2.2rem);
    }
    
    .hero-quote {
        font-size: 1rem;
        max-width: 95vw;
    }
    
    .hero-cta-buttons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-quote {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .floating-word {
        font-size: clamp(0.8rem, 5vw, 1.5rem);
    }
    
    .hero-content {
        padding: 0 1rem 5rem 1rem;
    }
}

/* Dark/Light Mode Support */
body.light-mode .hero-overlay {
    background: none;
}

body.light-mode .hero-name,
body.light-mode .hero-stat-number {
    color: #1a1a1a;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.5);
}

body.light-mode .hero-quote,
body.light-mode .hero-stat-label,
body.light-mode .hero-scroll-text {
    color: rgba(26, 26, 26, 0.9);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

body.light-mode .floating-word {
    color: rgba(26, 26, 26, 0.8);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

body.light-mode .hero-cta-btn {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .hero-cta-btn:hover {
    border-color: rgba(26, 26, 26, 0.6);
    background: rgba(255, 255, 255, 0.3);
}

body.light-mode .hero-scroll-line {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8), transparent);
} 