/* Intro Screen Styles */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a1128 0%, #162447 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Matrix Code Rain Canvas */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
}

/* Geometric Grid Canvas */
.grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

/* Northern Lights Effect - AMPLIFIED */
.northern-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.35), transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.25), transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(244, 208, 63, 0.2), transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(212, 175, 55, 0.3), transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(184, 148, 31, 0.25), transparent 48%),
        radial-gradient(ellipse at 40% 10%, rgba(244, 208, 63, 0.18), transparent 52%);
    animation: aurora-flow 15s ease-in-out infinite, aurora-shift 20s ease-in-out infinite;
    z-index: 0;
    filter: blur(60px);
}

.northern-lights::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.4), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.3), transparent 40%);
    animation: aurora-rotate 25s linear infinite;
    filter: blur(80px);
}

.northern-lights::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, rgba(212, 175, 55, 0.15) 0%, transparent 50%, rgba(6, 182, 212, 0.15) 100%);
    animation: aurora-wave 18s ease-in-out infinite;
}

@keyframes aurora-flow {

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

    33% {
        transform: translateY(-30px) scale(1.08);
        opacity: 0.8;
    }

    66% {
        transform: translateY(30px) scale(0.92);
        opacity: 0.7;
    }
}

@keyframes aurora-shift {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50px);
    }
}

@keyframes aurora-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes aurora-wave {

    0%,
    100% {
        transform: skewX(0deg);
        opacity: 0.5;
    }

    50% {
        transform: skewX(5deg);
        opacity: 0.8;
    }
}

/* Scanline Overlay */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 2;
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Logo with Animated Rings */
.intro-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

/* Zoom In Animation */
.zoom-in {
    animation: zoomInFromDistance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes zoomInFromDistance {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

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

/* Staggered Element Reveals */
.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.8s ease forwards;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.6s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.9s;
}

.stagger-item:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.logo-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Mouse-reactive rings */
.intro-logo:hover .ring-1 {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.intro-logo:hover .ring-2 {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: rgba(244, 208, 63, 0.6);
}

.intro-logo:hover .ring-3 {
    transform: translate(-50%, -50%) scale(1.25);
    border-color: rgba(212, 175, 55, 0.7);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ring-2 {
    width: 85%;
    height: 85%;
    animation-delay: 0.5s;
    border-color: rgba(244, 208, 63, 0.4);
}

.ring-3 {
    width: 70%;
    height: 70%;
    animation-delay: 1s;
    border-color: rgba(212, 175, 55, 0.5);
}

/* Breathing pulse animation */
@keyframes pulse-ring {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }
}

/* 3D Rotating Logo */
.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    animation: glow-text 2s ease-in-out infinite;
}

.logo-3d {
    transform-style: preserve-3d;
    animation: rotate3d 8s ease-in-out infinite, glow-text 2s ease-in-out infinite;
}

@keyframes rotate3d {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translate(-50%, -50%) rotateY(10deg) rotateX(5deg);
    }

    50% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(10deg);
    }

    75% {
        transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg);
    }
}

@keyframes glow-text {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.9));
    }
}

/* Intro Tagline */
.intro-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

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

/* Skill Carousel */
.skill-carousel {
    height: 40px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.skill-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.skill-item.active {
    opacity: 1;
    animation: skillPulse 0.5s ease;
}

@keyframes skillPulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Progress Bar */
.intro-progress {
    position: relative;
    width: 300px;
    height: 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Progress Bar Glow Pulse */
.glow-pulse {
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 1), 0 0 60px rgba(212, 175, 55, 0.5);
    }
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Enter Button */
.enter-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--background-dark);
    background: var(--gradient-1);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.enter-btn:active::before {
    width: 300px;
    height: 300px;
}

.enter-btn.visible {
    opacity: 1;
    pointer-events: all;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.enter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
    background: var(--gradient-2);
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.15s ease-out;
}

.magnetic-btn.magnetic-active {
    transition: transform 0.05s ease-out;
}