:root {
    --primary: #00f0ff;
    --secondary: #ff00f0;
    --accent: #f0ff00;
    --dark: #0a0a1a;
    --darker: #050510;
    --light: #e0e0ff;
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.8),
                 0 0 20px rgba(0, 240, 255, 0.6),
                 0 0 30px rgba(0, 240, 255, 0.4);
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--light);
    background-color: var(--darker);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.quantum-loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: quantum-orbits 4s linear infinite;
    animation-delay: calc(-0.4s * var(--i));
    box-shadow: 0 0 10px var(--primary),
                0 0 20px var(--primary);
}

@keyframes quantum-orbits {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50px);
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary);
    text-align: center;
    width: 100%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--primary); }
}

/* Cosmic Background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white"/><circle cx="50" cy="30" r="0.7" fill="white"/><circle cx="80" cy="20" r="0.3" fill="white"/><circle cx="10" cy="50" r="0.4" fill="white"/><circle cx="40" cy="60" r="0.6" fill="white"/><circle cx="70" cy="70" r="0.5" fill="white"/><circle cx="90" cy="90" r="0.8" fill="white"/></svg>');
    animation: stars-move 100s linear infinite;
}

.stars2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="30" cy="40" r="0.8" fill="white"/><circle cx="100" cy="60" r="0.5" fill="white"/><circle cx="150" cy="40" r="0.3" fill="white"/><circle cx="20" cy="100" r="0.6" fill="white"/><circle cx="80" cy="120" r="0.4" fill="white"/><circle cx="180" cy="150" r="0.7" fill="white"/></svg>');
    animation: stars-move 150s linear infinite;
    opacity: 0.7;
}

.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><circle cx="50" cy="60" r="0.3" fill="white"/><circle cx="150" cy="90" r="0.2" fill="white"/><circle cx="250" cy="60" r="0.4" fill="white"/><circle cx="30" cy="150" r="0.5" fill="white"/><circle cx="120" cy="180" r="0.3" fill="white"/><circle cx="270" cy="220" r="0.6" fill="white"/></svg>');
    animation: stars-move 200s linear infinite;
    opacity: 0.5;
}

@keyframes stars-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(-1000px); }
}

.comet {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8));
    box-shadow: 0 0 20px 5px rgba(255,255,255,0.8);
    animation: comet-fly 30s linear infinite;
    opacity: 0;
}

@keyframes comet-fly {
    0% {
        transform: translate(-1000px, -100px) rotate(-45deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    15% {
        opacity: 0;
    }
    100% {
        transform: translate(1000px, 1000px) rotate(-45deg);
        opacity: 0;
    }
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.main-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.title-glitch {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    position: relative;
    animation: glitch-effect 5s infinite;
}

@keyframes glitch-effect {
    0%, 100% {
        text-shadow: 2px 2px 0 var(--secondary), 
                     -2px -2px 0 var(--accent);
    }
    25% {
        text-shadow: -2px -2px 0 var(--secondary), 
                      2px 2px 0 var(--accent);
    }
    50% {
        text-shadow: 2px -2px 0 var(--secondary), 
                     -2px 2px 0 var(--accent);
    }
    75% {
        text-shadow: -2px 2px 0 var(--secondary), 
                      2px -2px 0 var(--accent);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
    animation: subtitle-fade 2s ease;
}

@keyframes subtitle-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quantum-tunnel {
    width: 300px;
    height: 300px;
    margin: 40px auto;
    position: relative;
    perspective: 1000px;
}

.tunnel-entry {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: tunnel-rotate 20s infinite linear;
}

.event-horizon {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0,240,255,0.1) 0%, 
        rgba(0,240,255,0.3) 30%, 
        rgba(255,0,240,0.5) 70%, 
        rgba(0,0,0,0) 100%);
    box-shadow: inset 0 0 50px rgba(0,240,255,0.5),
                inset 0 0 100px rgba(255,0,240,0.3),
                0 0 50px rgba(0,240,255,0.5);
}

.singularity {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px 10px rgba(255,0,240,0.7);
}

@keyframes tunnel-rotate {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.btn-holographic {
    position: relative;
    padding: 15px 30px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-holographic:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: var(--neon-glow);
}

.btn-holographic .btn-text {
    position: relative;
    z-index: 2;
}

.btn-holographic .btn-hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 240, 255, 0.4), 
        transparent);
    transition: 0.5s;
    z-index: 1;
}

.btn-holographic:hover .btn-hover {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fade-in 2s ease 3s forwards;
}

.chevron {
    width: 20px;
    height: 10px;
    margin: 2px 0;
    background: var(--primary);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    animation: chevron-bounce 2s infinite;
}

.chevron:nth-child(1) { animation-delay: 0s; }
.chevron:nth-child(2) { animation-delay: 0.2s; }
.chevron:nth-child(3) { animation-delay: 0.4s; }

.scroll-indicator .text {
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary);
}

@keyframes chevron-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(10px); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, 
        transparent, 
        var(--primary), 
        transparent);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(0, 240, 255, 0.5), 
        transparent);
    margin: 20px 0;
}

/* PDF Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.pdf-item {
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pdf-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
}

.pdf-thumbnail {
    height: 200px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pdf-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.5s ease;
}

.pdf-item:hover .pdf-thumbnail img {
    transform: scale(1.05);
}

.pdf-info {
    padding: 20px;
}

.pdf-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light);
}

.pdf-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(224, 224, 255, 0.7);
}

.pdf-download {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 3px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pdf-download:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Video Section */
.video-player-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: var(--dark);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.video-item {
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light);
}

.video-duration {
    font-size: 0.8rem;
    color: rgba(224, 224, 255, 0.7);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hologram-card {
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 5px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hologram-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 240, 255, 0.05) 0%, 
        rgba(255, 0, 240, 0.05) 100%);
    z-index: 1;
}

.holo-content {
    position: relative;
    z-index: 2;
}

.hologram-card h3 {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hologram-card p {
    color: rgba(224, 224, 255, 0.9);
    line-height: 1.6;
}

.holo-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 1;
}

/* Footer */
.sci-fi-footer {
    background: rgba(5, 5, 16, 0.9);
    padding: 60px 0 30px;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(224, 224, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-column ul li a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--light);
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: rgba(224, 224, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--light);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-submit {
    padding: 0 15px;
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    position: relative;
    color: rgba(224, 224, 255, 0.5);
    font-size: 0.9rem;
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(0, 240, 255, 0.5), 
        transparent);
}

.tech-lines::before,
.tech-lines::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    transform: rotate(45deg);
}

.tech-lines::before {
    left: 0;
}

.tech-lines::after {
    right: 0;
}

/* Particle Network */
#particleNetwork {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .title-glitch {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quantum-tunnel {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .title-glitch {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .video-player-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .title-glitch {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .quantum-tunnel {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Konami Code Easter Egg Effect */
.konami-effect {
    animation: rainbow-bg 1s infinite;
}

@keyframes rainbow-bg {
    0% { background-color: rgba(255, 0, 0, 0.1); }
    14% { background-color: rgba(255, 165, 0, 0.1); }
    28% { background-color: rgba(255, 255, 0, 0.1); }
    42% { background-color: rgba(0, 128, 0, 0.1); }
    57% { background-color: rgba(0, 0, 255, 0.1); }
    71% { background-color: rgba(75, 0, 130, 0.1); }
    85% { background-color: rgba(238, 130, 238, 0.1); }
    100% { background-color: rgba(255, 0, 0, 0.1); }
}

.konami-effect .title-glitch {
    animation: glitch-effect 0.5s infinite, color-change 1s infinite;
}

@keyframes color-change {
    0% { color: #ff0000; }
    14% { color: #ffa500; }
    28% { color: #ffff00; }
    42% { color: #008000; }
    57% { color: #0000ff; }
    71% { color: #4b0082; }
    85% { color: #ee82ee; }
    100% { color: #ff0000; }
}

/* 3D Hover Effects */
.pdf-item, .video-item, .hologram-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.pdf-item:hover, .video-item:hover, .hologram-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.3);
}

/* Advanced Glow Effects */
.btn-holographic::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--secondary), 
        var(--accent), 
        var(--primary));
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-holographic:hover::after {
    opacity: 1;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Quantum Entanglement Effect (for section headers) */
.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    z-index: -1;
    transform: translate(5px, 5px);
    opacity: 0.7;
}

.section-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    z-index: -2;
    transform: translate(-5px, -5px);
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quantum-tunnel {
        width: 200px;
        height: 200px;
    }
    
    .title-glitch {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-holographic {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .title-glitch {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .quantum-tunnel {
        width: 150px;
        height: 150px;
    }
}