@font-face {
    font-family: 'TT Octosquares Trial';
    src: url('https://fonts.cdnfonts.com/css/tt-octosquares-trial') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #0a0a1a;
    color: white;
    font-family: 'Arial', sans-serif;
    cursor: none;
}

/* Background styles */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, #0a0a1a 20px, transparent 1%) center,
        linear-gradient(#0a0a1a 20px, transparent 1%) center,
        rgba(20, 100, 255, 0.2);
    background-size: 22px 22px;
    animation: circuitAnim 4s linear infinite;
}

@keyframes circuitAnim {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 22px 22px, 22px 22px;
    }
}

.particle {
    position: absolute;
    background: rgba(100, 180, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatAnim 15s infinite linear;
}

/* Particle positions */
.particle:nth-child(1) { width: 2px; height: 2px; top: 20%; left: 15%; animation-duration: 20s; }
.particle:nth-child(2) { width: 3px; height: 3px; top: 60%; left: 30%; animation-duration: 15s; }
.particle:nth-child(3) { width: 2px; height: 2px; top: 80%; left: 45%; animation-duration: 25s; }
.particle:nth-child(4) { width: 4px; height: 4px; top: 40%; left: 70%; animation-duration: 12s; }
.particle:nth-child(5) { width: 2px; height: 2px; top: 30%; left: 85%; animation-duration: 18s; }
.particle:nth-child(6) { width: 3px; height: 3px; top: 75%; left: 10%; animation-duration: 22s; }
.particle:nth-child(7) { width: 1px; height: 1px; top: 50%; left: 50%; animation-duration: 30s; }
.particle:nth-child(8) { width: 2px; height: 2px; top: 15%; left: 65%; animation-duration: 17s; }
.particle:nth-child(9) { width: 3px; height: 3px; top: 90%; left: 80%; animation-duration: 14s; }
.particle:nth-child(10) { width: 1px; height: 1px; top: 65%; left: 25%; animation-duration: 28s; }

@keyframes floatAnim {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Hex grid pattern */
.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: radial-gradient(circle at center, rgba(50, 150, 255, 0.3) 0%, transparent 70%);
}

.hex {
    position: absolute;
    width: 60px;
    height: 34px;
    background-color: rgba(100, 180, 255, 0.1);
    border-left: 1px solid rgba(100, 180, 255, 0.3);
    border-right: 1px solid rgba(100, 180, 255, 0.3);
    animation: pulse 4s infinite ease-in-out;
}

.hex:before, .hex:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hex:before {
    bottom: 100%;
    border-bottom: 17px solid rgba(100, 180, 255, 0.1);
}

.hex:after {
    top: 100%;
    border-top: 17px solid rgba(100, 180, 255, 0.1);
}

/* Hex positions */
.hex:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.hex:nth-child(2) { top: 30%; left: 25%; animation-delay: 0.5s; }
.hex:nth-child(3) { top: 60%; left: 15%; animation-delay: 1s; }
.hex:nth-child(4) { top: 20%; left: 65%; animation-delay: 1.5s; }
.hex:nth-child(5) { top: 70%; left: 75%; animation-delay: 2s; }
.hex:nth-child(6) { top: 50%; left: 50%; animation-delay: 2.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

/* Navigation styles */
.nav-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.nav-button {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
    background: transparent;
    border: none;
    padding: 8px 12px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0px 0px 0px #ffffff,
                0px 0px 5px #ffffff,
                0px 0px 15px #dddddd,
                0px 0px 30px #bbbbbb,
                0px 0px 50px #999999;
    text-decoration: none;
}

.nav-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.nav-button:hover::after {
    width: 100%;
}

.left-nav {
    position: fixed;
    top: -30px;
    left: -10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: none;
}

.main-logo {
    width: 150px;
    height: 150px;
}

.main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-button {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.social-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-button:hover img {
    filter: brightness(0) invert(0.8);
}

.social-button:hover {
    transform: scale(1.1);
}

/* Typewriter effect */
.typewriter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10vh;
    position: relative;
    margin-top: 80px;
}

.typewriter {
    font-family: 'TT Octosquares Trial', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    color: white;
    position: relative;
    text-shadow: 0px 0px 0px #d4d4d4,
                0px 0px 20px #b1b0b0,
                0px 0px 40px #757575,
                0px 0px 80px #333333;
    z-index: 3;
    text-align: center;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.typewriter.visible {
    opacity: 1;
    visibility: visible;
}

.typewriter.typing::after {
    content: "|";
    position: absolute;
    right: -2rem;
    animation: blink 0.7s infinite;
}

.typewriter.completed::after {
    display: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Section titles */
.section-title {
    font-family: 'TT Octosquares Trial', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    text-align: center;
    margin: 50px 0 30px;
    color: rgba(100, 200, 255, 0.8);
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.8), transparent);
    margin: 15px auto;
}

/* Events Grid Layout */
.events-grid {
    display: grid;
    gap: 30px;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    margin-bottom: 100px;
}

/* Event Card Styles with Hologram Effect */
.event-card {
    position: relative;
    height: 450px;
    perspective: 1200px;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 150, 255, 0.1) 0%, rgba(100, 200, 255, 0.05) 100%);
    z-index: -1;
    border-radius: 15px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 100, 255, 0.4);
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.tech-badge {
    background: rgba(100, 200, 255, 0.9);
    color: #0a1a2a;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'TT Octosquares Trial', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    z-index: 2;
}

.hexagon {
    width: 8px;
    height: 8px;
    background: rgba(100, 200, 255, 0.8);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.4s ease;
}

.event-card:hover .hexagon {
    background: rgba(150, 220, 255, 1);
    transform: rotate(180deg);
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    filter: brightness(0.9);
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(100, 200, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(100, 200, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 30, 60, 0.9) 0%, transparent 60%);
    transition: all 0.6s ease;
}

/* Hologram Effect */
.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    mix-blend-mode: screen;
}

.event-card:hover .hologram-effect {
    opacity: 0.8;
    animation: hologramPulse 3s infinite;
}

@keyframes hologramPulse {
    0% {
        background: linear-gradient(135deg, rgba(100, 200, 255, 0.1) 0%, transparent 50%);
        box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
    }
    50% {
        background: linear-gradient(135deg, rgba(100, 200, 255, 0.3) 0%, transparent 50%);
        box-shadow: 0 0 20px rgba(100, 200, 255, 0.4);
    }
    100% {
        background: linear-gradient(135deg, rgba(100, 200, 255, 0.1) 0%, transparent 50%);
        box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
    }
}

.event-card:hover .image-overlay {
    background: linear-gradient(to top, rgba(20, 60, 120, 0.95) 0%, transparent 70%);
}

.card-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

.event-card:hover .card-details {
    transform: translateY(-10px);
}

.event-name {
    font-family: 'TT Octosquares Trial', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.event-date {
    font-size: 0.9rem;
    color: rgba(200, 230, 255, 0.8);
    margin: 0 0 15px;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 50, 100, 0.4);
    border-radius: 15px;
}

.event-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s ease;
}

.event-card:hover .event-description {
    max-height: 100px;
    opacity: 1;
}

.rule-button {
    background: rgba(100, 200, 255, 0.2);
    color: white;
    border: 1px solid rgba(100, 200, 255, 0.5);
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.rule-button:hover {
    background: rgba(100, 200, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 255, 0.3);
}

/* Card background effects */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 150, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.event-card:hover .card-background {
    opacity: 1;
}

.card-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.event-card:hover .card-glare {
    opacity: 0.3;
    animation: glareMove 4s infinite;
}

@keyframes glareMove {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* Rule Modal Styles */
.rule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rule-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 40, 80, 0.9);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.rule-modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    font-family: 'TT Octosquares Trial', sans-serif;
    color: rgba(100, 200, 255, 0.9);
    margin-top: 0;
    text-align: center;
}

.modal-content ol {
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: white;
}

/* Neural Cursor */
.neural-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: exclusion;
}

.cursor-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 2;
}

.neural-ring {
    position: absolute;
    border: 1px solid rgba(100, 200, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .typewriter {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .left-nav {
        flex-direction: column;
        top: 10px;
        left: 10px;
    }
    
    .main-logo {
        width: 100px;
        height: 100px;
    }
    
    .nav-buttons {
        top: 10px;
        right: 10px;
    }
    
    .nav-button {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .event-card {
        height: 400px;
    }
    
    .card-details {
        padding: 20px;
    }
    
    .event-name {
        font-size: 1.5rem;
    }
}