@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&family=Exo+2:wght@300;400;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
}

/* Background Portal Image */
.background-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 45, 55, 0.4) 0%, rgba(0, 0, 0, 0.85) 70%),
        url('bg.png') center center no-repeat;
    background-size: cover;
    z-index: 0;
    animation: portalPulse 8s ease-in-out infinite;
}

@keyframes portalPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1.5s ease-out;
}

.logo {
    max-width: 200px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.6));
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 188, 212, 1));
    transform: scale(1.05);
}

/* Main Title - CGPORT */
.main-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 7rem);
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #00bcd4 0%, #00e5ff 50%, #40c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: titleGlow 3s ease-in-out infinite, fadeInUp 1.5s ease-out;
    position: relative;
    text-shadow: none;
}

.main-title::before {
    content: 'CGPORT';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00bcd4 0%, #00e5ff 50%, #40c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(12px);
    opacity: 0.3;
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #00bcd4) drop-shadow(0 0 10px #00bcd4);
    }
    50% {
        filter: drop-shadow(0 0 10px #00e5ff) drop-shadow(0 0 20px #00bcd4);
    }
}

/* Subtitle - THE ARTIST'S GATEWAY */
.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    margin: 0 0 30px 0;
    color: #00e5ff;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.95;
    animation: fadeInUp 1.8s ease-out 0.3s backwards;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Divider */
.divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00bcd4 20%, #ff6b35 50%, #00bcd4 80%, transparent 100%);
    margin: 30px auto;
    position: relative;
    animation: dividerGlow 2s ease-in-out infinite, fadeIn 2s ease-out 0.6s backwards;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00e5ff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px #00e5ff;
}

.divider::before {
    left: -3px;
}

.divider::after {
    right: -3px;
}

@keyframes dividerGlow {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 5px #00bcd4;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px #00e5ff, 0 0 30px #00bcd4;
    }
}

/* Description Text */
.description {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 20px auto 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeIn 2s ease-out 0.9s backwards;
}

/* Status Text */
.status {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 10px 0 30px 0;
    color: #ff6b35;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite, fadeIn 2s ease-out 1.2s backwards;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Contact Info */
.contact-info {
    margin-top: 40px;
    animation: fadeIn 2s ease-out 1.5s backwards;
}

.contact-info p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info a {
    color: #00bcd4;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.contact-info a:hover {
    color: #00e5ff;
    border-bottom: 1px solid #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* Canvas for Particles */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        max-width: 150px;
    }

    .main-title {
        letter-spacing: 0.1em;
    }

    .subtitle {
        letter-spacing: 0.3em;
    }

    .divider {
        width: 80px;
    }

    .description {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 120px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .subtitle {
        letter-spacing: 0.2em;
    }
}
