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

body,
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #050505;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.7);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Script Font Class */
.script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
}

/* Monochrome Background */
.hero-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #050505;
    overflow: hidden;
}

/* Grayscale Spotlight Gradient */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, #181818 0%, #0a0a0a 30%, #050505 50%, #000000 100%);
    animation: spotlightShift 25s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Film Grain Texture */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, transparent 1px, transparent 2px, rgba(255, 255, 255, 0.015) 3px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0px, transparent 1px, transparent 2px, rgba(255, 255, 255, 0.015) 3px);
    background-size: 4px 4px;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes spotlightShift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-1%, 1%) scale(1.02);
        opacity: 0.95;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    z-index: 2;
}

/* Logo Container */
.logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    position: relative;
    z-index: 3;
}

.logo-container img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.08));
    transition: transform 0.3s ease-out;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* Main Content */
.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* HELLO WORLD Title */
.hello-world {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    color: #f5f5f5;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards, glitch 3s infinite;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    position: relative;
}

/* Glitch Animation */
@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
        text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: -2px 2px 0 rgba(255, 0, 0, 0.3), 2px -2px 0 rgba(0, 255, 255, 0.3);
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: 2px -2px 0 rgba(255, 0, 0, 0.3), -2px 2px 0 rgba(0, 255, 255, 0.3);
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: -2px -2px 0 rgba(255, 0, 0, 0.3), 2px 2px 0 rgba(0, 255, 255, 0.3);
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: 2px 2px 0 rgba(255, 0, 0, 0.3), -2px -2px 0 rgba(0, 255, 255, 0.3);
    }
}

/* Welcome Subtitle */
.welcome-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

/* Buttons Container */
.hero-ctas {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    position: relative;
    z-index: 3;
}

/* Primary Button */
.cta-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #f5f5f5;
    color: #050505;
    font-family: var(--anita-t-heading-ff, 'Rajdhani', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease-out;
    border: 1px solid transparent;
    min-width: 200px;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.cta-primary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}

/* Secondary Button (Ghost) */
.cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: #f5f5f5;
    font-family: var(--anita-t-heading-ff, 'Rajdhani', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease-out;
    min-width: 200px;
}

.cta-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.cta-secondary:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}

/* Decorative Visual Elements */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Left Vertical Line */
.visual-line-left {
    position: absolute;
    left: 10%;
    top: 15%;
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    transform-origin: top;
    transform: scaleY(0);
    animation: lineDraw 1s ease-out 0.8s forwards;
}

/* Right Vertical Line */
.visual-line-right {
    position: absolute;
    right: 10%;
    top: 15%;
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    transform-origin: top;
    transform: scaleY(0);
    animation: lineDraw 1s ease-out 1s forwards;
}

@keyframes lineDraw {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Left Frame Rectangle */
.visual-frame-left {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(-5deg);
    width: 180px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(to bottom, rgba(24, 24, 24, 0.3) 0%, rgba(5, 5, 5, 0.8) 100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: frameAppear 0.8s ease-out 1.2s forwards;
}

/* Right Frame Rectangle */
.visual-frame-right {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) scale(0) rotate(5deg);
    width: 180px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(to bottom, rgba(24, 24, 24, 0.3) 0%, rgba(5, 5, 5, 0.8) 100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: frameAppear 0.8s ease-out 1.4s forwards;
}

@keyframes frameAppear {
    0% {
        transform: translateY(-50%) scale(0) rotate(var(--rotation, 0deg));
        opacity: 0;
    }

    100% {
        transform: translateY(-50%) scale(1) rotate(var(--rotation, 0deg));
        opacity: 1;
    }
}

/* Horizontal Accent Lines */
.visual-line-horizontal-top {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineDrawHorizontal 0.8s ease-out 1.6s forwards;
}

.visual-line-horizontal-bottom {
    position: absolute;
    left: 20%;
    bottom: 20%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineDrawHorizontal 0.8s ease-out 1.8s forwards;
}

@keyframes lineDrawHorizontal {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: cornerFadeIn 0.6s ease-out forwards;
}

.corner-accent-top-left {
    top: 5%;
    left: 5%;
    border-right: none;
    border-bottom: none;
    animation-delay: 2s;
}

.corner-accent-top-right {
    top: 5%;
    right: 5%;
    border-left: none;
    border-bottom: none;
    animation-delay: 2.1s;
}

.corner-accent-bottom-left {
    bottom: 5%;
    left: 5%;
    border-right: none;
    border-top: none;
    animation-delay: 2.2s;
}

.corner-accent-bottom-right {
    bottom: 5%;
    right: 5%;
    border-left: none;
    border-top: none;
    animation-delay: 2.3s;
}

@keyframes cornerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Soft Grayscale Glows */
.hero-visual::before {
    content: '';
    position: absolute;
    left: -10%;
    top: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    right: -10%;
    bottom: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite 2s;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.hero.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-background::before {
        animation: none;
    }

    .visual-line-left,
    .visual-line-right {
        animation: none;
        transform: scaleY(1);
    }

    .visual-frame-left,
    .visual-frame-right {
        animation: none;
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    .visual-line-horizontal-top,
    .visual-line-horizontal-bottom {
        animation: none;
        transform: scaleX(1);
    }

    .corner-accent {
        animation: none;
        opacity: 1;
        transform: scale(1);
    }

    .hello-world {
        animation: fadeInUp 0.8s ease-out 0.3s forwards !important;
    }

    .floating-quote {
        transition: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1023px) {

    .visual-line-left,
    .visual-line-right {
        display: none;
    }

    .visual-frame-left,
    .visual-frame-right {
        width: 120px;
        height: 160px;
    }

    .corner-accent {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .logo-container img {
        width: 140px;
        height: 140px;
    }

    .hello-world {
        margin-bottom: 1.5rem;
    }

    .welcome-subtitle {
        margin-bottom: 3rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
    }

    .visual-frame-left,
    .visual-frame-right {
        width: 100px;
        height: 130px;
    }

    .visual-line-horizontal-top,
    .visual-line-horizontal-bottom {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .logo-container img {
        width: 120px;
        height: 120px;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.875rem 2rem;
        font-size: 0.8rem;
    }
}

/* Loading state */
.cta-primary.loading,
.cta-secondary.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.cta-primary.loading::after,
.cta-secondary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Floating Quotes */
.floating-quote {
    position: fixed;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    max-width: 300px;
    text-align: center;
    line-height: 1.4;
    transition: opacity 4s ease-in-out;
}

.floating-quote.visible {
    opacity: 1;
}

.floating-quote.hidden {
    opacity: 0;
}

@media (max-width: 768px) {
    .floating-quote {
        font-size: clamp(1rem, 3vw, 1.4rem);
        max-width: 250px;
    }
}
