:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --primary-color: #fce903;
    /* Cyberpunk Yellow */
    --secondary-color: #03fcec;
    /* Electric Blue */
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --section-padding: 80px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(252, 233, 3, 0.5);
}

.menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    position: relative;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
        transform: skew(0.6deg);
    }

    5% {
        clip: rect(10px, 9999px, 3px, 0);
        transform: skew(0.6deg);
    }

    10% {
        clip: rect(89px, 9999px, 80px, 0);
        transform: skew(0.4deg);
    }

    15% {
        clip: rect(8px, 9999px, 20px, 0);
        transform: skew(0.7deg);
    }

    20% {
        clip: rect(54px, 9999px, 23px, 0);
        transform: skew(0.2deg);
    }

    25% {
        clip: rect(12px, 9999px, 78px, 0);
        transform: skew(0.2deg);
    }

    30% {
        clip: rect(32px, 9999px, 12px, 0);
        transform: skew(0.8deg);
    }

    35% {
        clip: rect(65px, 9999px, 89px, 0);
        transform: skew(0.4deg);
    }

    40% {
        clip: rect(12px, 9999px, 2px, 0);
        transform: skew(0.3deg);
    }

    45% {
        clip: rect(67px, 9999px, 86px, 0);
        transform: skew(0.6deg);
    }

    50% {
        clip: rect(3px, 9999px, 20px, 0);
        transform: skew(0.6deg);
    }

    55% {
        clip: rect(12px, 9999px, 89px, 0);
        transform: skew(0.2deg);
    }

    60% {
        clip: rect(34px, 9999px, 12px, 0);
        transform: skew(0.1deg);
    }

    65% {
        clip: rect(78px, 9999px, 34px, 0);
        transform: skew(0.9deg);
    }

    70% {
        clip: rect(12px, 9999px, 45px, 0);
        transform: skew(0.5deg);
    }

    75% {
        clip: rect(43px, 9999px, 67px, 0);
        transform: skew(0.2deg);
    }

    80% {
        clip: rect(12px, 9999px, 2px, 0);
        transform: skew(0.1deg);
    }

    85% {
        clip: rect(78px, 9999px, 56px, 0);
        transform: skew(0.4deg);
    }

    90% {
        clip: rect(43px, 9999px, 12px, 0);
        transform: skew(0.7deg);
    }

    95% {
        clip: rect(34px, 9999px, 78px, 0);
        transform: skew(0.2deg);
    }

    100% {
        clip: rect(12px, 9999px, 90px, 0);
        transform: skew(0.8deg);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 600;
}

.divider {
    color: var(--text-muted);
    margin: 0 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
}

.btn.primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(252, 233, 3, 0.2);
}

.btn.primary:hover {
    background-color: var(--text-main);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn.secondary {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Background Grid Effect */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(3, 252, 236, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 252, 236, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 500px;
    transform: perspective(500px) rotateX(60deg) translateY(100px) scale(2);
    opacity: 0.2;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) scale(2);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2);
    }
}

/* Sections General */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

section {
    padding: var(--section-padding);
}

/* About Section Updates */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.profile-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 30px rgba(3, 252, 252, 0.3);
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

/* About Grid - Adjusted */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Default to 2 columns */
    gap: 30px;
    width: 60%;
    /* Occupy reasonable space next to image */
}

@media (max-width: 900px) {
    .about-grid {
        width: 100%;
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }
}

.about-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-muted);
    transition: 0.4s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Editor Theme */
.about-card.editor:hover::before {
    background: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
}

.about-card.editor:hover {
    border-color: rgba(3, 252, 236, 0.3);
}

.about-card.editor i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(3, 252, 236, 0.4));
}

/* Gamer Theme */
.about-card.gamer:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.about-card.gamer:hover {
    border-color: rgba(252, 233, 3, 0.3);
}

.about-card.gamer i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(252, 233, 3, 0.4));
}

.about-card i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    transition: transform 0.4s;
}

.about-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Mobile first alignment */
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-color);
    position: absolute;
    border-radius: 50%;
    left: 11px;
    /* Mobile alignment */
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: var(--font-heading);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Desktop Timeline Alignment */
@media (min-width: 768px) {
    .about-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .profile-image-container {
        width: 300px;
        /* Larger on desktop */
        height: 300px;
        flex-shrink: 0;
    }

    .timeline::after {
        left: 50%;
    }

    .timeline-item {
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: auto;
        right: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: right;
    }

    .timeline-content:hover {
        transform: translateY(-5px);
        /* Vertical hover on desktop */
    }
}

/* Portfolio Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-thumb {
    height: 200px;
    background-color: #222;
    background-image: url('https://placehold.co/600x400/111/333?text=Video+Preview');
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
}

.gallery-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}