/* Animated particle background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
/* Modern, responsive styles for CyberCon */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #101820;
    color: #fff;
}
/* Navbar and content above background */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a2233;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffe7;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #00ffe7;
}
main {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
/* Scene fade-in */
.scene {
    display: none;
    animation: fadeIn 0.7s;
}
.scene.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
/* Gallery item and 3D card styles */
.gallery-item {
    background: #232b3e;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 6px 24px rgba(0,255,231,0.15);
}

/* 3D Card */
.card-3d {
    perspective: 1000px;
    cursor: pointer;
    outline: none;
}
.card-3d-inner {
    width: 100%;
    height: 120px;
    transition: transform 0.7s cubic-bezier(.4,2,.3,1);
    transform-style: preserve-3d;
    position: relative;
}
.card-3d:focus .card-3d-inner,
.card-3d:hover .card-3d-inner {
    transform: rotateY(180deg);
}
.card-3d-front, .card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 8px;
}
.card-3d-front {
    background: #00ffe7;
    color: #101820;
}
.card-3d-back {
    background: #101820;
    color: #00ffe7;
    transform: rotateY(180deg);
}
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.contact-form input, .contact-form textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background: #232b3e;
    color: #fff;
}
/* Animated, interactive button */
.contact-form button {
    background: #00ffe7;
    color: #101820;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0,255,231,0.15);
    position: relative;
    overflow: hidden;
}
.contact-form button:hover {
    background: #00bfae;
    box-shadow: 0 6px 24px rgba(0,255,231,0.25);
    transform: scale(1.05);
}

/* Button ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(0,255,231,0.4);
    pointer-events: none;
    z-index: 10;
}
@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}
}
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    main {
        padding: 1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
