:root {
    --color-bg-dark: #050505;
    --color-bg-card: #0f0f0f;
    --color-red-primary: #ff3b3b;
    --color-red-hover: #ff5252;
    --color-red-glow: rgba(255, 59, 59, 0.4);
    --color-gold: #ffd700;
    --color-gold-glow: rgba(255, 215, 0, 0.3);
    --color-text: #ffffff;
    --color-text-secondary: #b3b3b3;
    --color-border: rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Clean Background Wrapper */
.background-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Smooth Animated Gradient */
.gradient-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 59, 59, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Two Elegant Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.35) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        transform: translate(30px, -30px) scale(1.05);
    }
}

/* Subtle Grid Pattern */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

/* Container & Header */
.container {
    max-width: 650px;
    width: 100%;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    margin-bottom: 32px;
}

.logo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--color-red-primary), var(--color-gold), var(--color-red-primary));
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo:hover::before {
    opacity: 0.3;
}

.logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(255, 59, 59, 0.3));
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.title {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.title-main {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: block;
}

.subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.header-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-red-primary), transparent);
    margin: 28px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--color-red-glow);
}

/* Link Cards */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: white;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.link-card:hover .card-shine {
    transform: translateX(0) translateY(0) rotate(45deg);
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.link-card:hover::before {
    opacity: 1;
}

/* Special Card Styles */
.main-card:hover {
    background: rgba(255, 59, 59, 0.05);
    box-shadow: 
        0 20px 60px rgba(255, 59, 59, 0.3),
        0 0 0 1px var(--color-red-primary),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.awards-card:hover {
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.2),
        0 0 0 1px var(--color-gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.edubot-card:hover {
    background: rgba(0, 149, 255, 0.05);
    box-shadow: 
        0 20px 60px rgba(0, 149, 255, 0.3),
        0 0 0 1px #0095ff,
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.instagram-card:hover {
    background: linear-gradient(135deg, rgba(247, 119, 55, 0.05), rgba(221, 42, 123, 0.05));
    box-shadow: 
        0 20px 60px rgba(247, 119, 55, 0.3),
        0 0 0 1px rgba(247, 119, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.link-content { 
    flex: 1;
    z-index: 1;
}

.link-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.link-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.link-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Instagram Icon Special Styling */
.instagram-icon {
    background: linear-gradient(45deg, #f77737, #dd2a7b, #8134af, #515bd4);
    box-shadow: 
        0 8px 32px rgba(247, 119, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-links {
    font-size: 13px;
    opacity: 0.6;
}

/* Loader */
.initial-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.initial-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--color-red-primary);
    border-right-color: var(--color-gold);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 40px var(--color-red-glow);
}

.loader-text {
    color: var(--color-text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}

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

/* Door Overlay */
.door-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.door-overlay.visible { 
    display: block; 
    pointer-events: auto; 
}

.door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, #000000, #0a0a0a);
    transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: inset 0 0 100px rgba(255, 59, 59, 0.1);
}

.door-left { 
    left: 0;
    background: linear-gradient(90deg, #000000, #0a0a0a);
}

.door-right { 
    right: 0;
    background: linear-gradient(-90deg, #000000, #0a0a0a);
}

.door-overlay.open .door-left { 
    transform: translateX(-110%); 
}

.door-overlay.open .door-right { 
    transform: translateX(110%); 
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }

    .title-main { 
        font-size: 32px; 
    }
    
    .subtitle { 
        font-size: 15px; 
    }
    
    .link-card { 
        padding: 24px 20px; 
    }
    
    .link-title { 
        font-size: 19px; 
    }

    .link-description {
        font-size: 14px;
    }

    .link-icon {
        width: 56px;
        height: 56px;
    }

    .link-icon img {
        width: 32px;
        height: 32px;
    }

    /* Scale down orbs for mobile */
    .orb-1, .orb-2 {
        width: 300px;
        height: 300px;
        filter: blur(70px);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--color-red-primary);
    color: white;
}

::-moz-selection {
    background: var(--color-red-primary);
    color: white;
}