:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effect */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.05) 0%, transparent 40%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle i {
    width: 24px;
    height: 24px;
}

/* Section Management */
.section {
    min-height: calc(100vh - 80px);
    padding: 80px 0 60px;
    opacity: 1;
    /* Ensure sections are visible */
}


/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15), 0 0 20px rgba(112, 0, 255, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1a1a20;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-primary);
}

/* Blog and Games Grids */
.blog-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.blog-card,
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover,
.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-image,
.game-image {
    width: 100%;
    height: 200px;
    background: #1a1a20;
    overflow: hidden;
}

.blog-image img,
.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-content,
.game-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
}

.blog-date,
.game-platform {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.blog-title,
.game-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-summary,
.game-review {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.game-rating {
    margin-top: 1rem;
    color: #ffd700;
    font-weight: bold;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-btn {
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.contact-btn i {
    color: var(--accent-primary);
}

/* AntiSpiral Studios Section */
.antispiral-section {
    padding: 6rem 0;
    text-align: center;
    background: #050505;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.antispiral-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.5s ease;
}

.antispiral-section:hover .antispiral-background {
    transform: scale(1.05);
}

.antispiral-section .container {
    position: relative;
    z-index: 2;
}

.antispiral-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transition: transform 0.5s ease;
}

.antispiral-section:hover .antispiral-logo {
    transform: rotate(360deg);
}

.antispiral-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.antispiral-section p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 2.5rem;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
        height: calc(100vh - 80px);
        justify-content: center;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .container {
        padding: 0 1.5rem;
    }

    .projects-grid,
    .blog-grid,
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card,
    .blog-card,
    .game-card {
        width: 100%;
    }
}