/* ===== CSS Variables & Reset ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glow-purple: rgba(102, 126, 234, 0.5);
    --glow-pink: rgba(240, 147, 251, 0.5);
    --glow-cyan: rgba(0, 242, 254, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* ===== Custom Cursor ===== */
.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--glow-purple);
    background: rgba(102, 126, 234, 0.1);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out;
}

/* ===== Background Animation ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, var(--dark-bg) 70%);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-purple);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--glow-pink);
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--glow-cyan);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 200px;
    height: 200px;
    background: var(--glow-purple);
    top: 30%;
    left: 50%;
    animation-delay: -15s;
}

.orb-5 {
    width: 250px;
    height: 250px;
    background: var(--glow-pink);
    bottom: 20%;
    right: 20%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }

    50% {
        transform: translate(-30px, 80px) rotate(180deg);
    }

    75% {
        transform: translate(-60px, 20px) rotate(270deg);
    }
}

/* ===== Particles ===== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ===== Main Container ===== */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ===== Welcome Section ===== */
.welcome-section {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greeting-text {
    margin-bottom: 1rem;
    overflow: hidden;
}

.greeting-line {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: slideIn 0.8s ease-out 0.3s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.name-highlight {
    display: inline-block;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    color: #ffffff;
    position: relative;
    text-shadow: 0 0 80px var(--glow-purple);
}

.letter {
    display: inline-block;
    animation: letterPop 0.6s ease-out both;
    transition: transform 0.3s ease, color 0.3s ease;
}

.letter:nth-child(1) {
    animation-delay: 0.7s;
}

.letter:nth-child(2) {
    animation-delay: 0.75s;
}

.letter:nth-child(3) {
    animation-delay: 0.8s;
}

.letter:nth-child(4) {
    animation-delay: 0.85s;
}

.letter:nth-child(5) {
    animation-delay: 0.9s;
}

.letter:nth-child(6) {
    animation-delay: 0.95s;
}

.letter:nth-child(7) {
    animation-delay: 1s;
}

.letter:nth-child(8) {
    animation-delay: 1.05s;
}

.letter:nth-child(9) {
    animation-delay: 1.1s;
}

.letter:nth-child(10) {
    animation-delay: 1.15s;
}

@keyframes letterPop {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.letter:hover {
    transform: translateY(-10px) scale(1.2);
    filter: drop-shadow(0 0 20px var(--glow-purple));
}

/* ===== Tagline ===== */
.tagline {
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 1.3s both;
}

.tagline-text {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 2px;
    position: relative;
}

.tagline-text::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 5px;
    color: var(--glow-cyan);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ===== CTA Buttons ===== */
.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out 1.5s both;
}

.cta-button {
    position: relative;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
}

.cta-button.primary .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button.primary:hover .btn-glow {
    left: 100%;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    transform: translateY(-5px);
    border-color: var(--glow-purple);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== Stats Section ===== */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    animation: fadeIn 0.8s ease-out 1.7s both;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}

/* ===== Decorative Elements ===== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: rotate 30s linear infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.decorative-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    pointer-events: none;
}

.line-1 {
    width: 200px;
    top: 20%;
    left: 5%;
    transform: rotate(-30deg);
}

.line-2 {
    width: 150px;
    bottom: 30%;
    right: 5%;
    transform: rotate(30deg);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease-out 2s both;
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .stats-container {
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1 1 100px;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cursor-follower,
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 1rem;
    }

    .greeting-line {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== Interactive States ===== */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: scale(1.05);
}

/* ===== Glass Morphism Effect ===== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 2rem;
}

/* ===== Gradient Text Utility ===== */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Noise Overlay ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}