:root {
    --primary-red: #C51A1A;
    --dark-red: #6D0C0C;
    --flash-gold: #FFD700;
    --bg-dark: #0f0505;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --card-bg: rgba(40, 10, 10, 0.6);
    --nav-height: 76px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    padding-top: var(--nav-height);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(197, 26, 26, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
}

h1, h2, h3, .logo {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    min-height: var(--nav-height);
}

.logo {
    font-size: 1.5rem;
    color: var(--flash-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.6),
        0 0 18px rgba(255, 215, 0, 0.5),
        0 0 28px rgba(255, 59, 59, 0.4);
    animation: logoGlow 2.2s ease-in-out infinite;
}

.logo .bolt {
    display: inline-block;
    color: #ffd24d;
    text-shadow: 0 0 12px rgba(255, 210, 77, 0.8), 0 0 24px rgba(255, 59, 59, 0.5);
    animation: boltFlicker 1.3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--flash-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem 5% 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 5rem;
    color: var(--primary-red);
    text-shadow: 
        2px 2px 0px var(--flash-gold),
        0 0 30px rgba(197, 26, 26, 0.5);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: pulseTitle 2s infinite ease-in-out;
    line-height: 1.05;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin: -1.5rem 0 2.5rem;
    font-size: 1.05rem;
}

.contact-card {
    position: relative;
}

.contact-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.45rem;
    background: rgba(255, 255, 255, 0.35);
    vertical-align: middle;
}

.contact-card.is-online .contact-status-dot {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
    animation: statusPulse 1.8s ease-in-out infinite;
}

.contact-status-dot.is-offline {
    background: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.7);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, #c51a1a 0%, #ff3b3b 60%, #ffd700 100%);
    color: white;
    box-shadow: 0 0 20px rgba(197, 26, 26, 0.6), 0 0 6px rgba(255, 215, 0, 0.5);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: #e02020;
    box-shadow: 0 0 25px rgba(197, 26, 26, 0.8), 0 0 5px var(--flash-gold);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 215, 0, 0.7);
    color: var(--flash-gold);
}

.secondary-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Sections */
.section {
    padding: 2rem 0%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    gap: 1.5rem;
}

.section-title {
    font-family: 'Sora', sans-serif;
    text-transform: none;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    line-height: 1.1;
    max-width: 100%;
}

.section-title::after {
    content: '⚡';
    position: absolute;
    right: -30px;
    top: 5px;
    color: var(--flash-gold);
    font-size: 2rem;
}

.highlight {
    color: var(--primary-red);
}

/* Grid Layouts */
.projects-grid, .skills-grid, .ongoing-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skill-card {
    background: var(--card-bg);
    padding: 1.1rem 1.2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.skill-card:hover {
    background: rgba(197, 26, 26, 0.2);
    border-color: var(--flash-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(197, 26, 26, 0.2);
}

/* Ongoing Section */
.ongoing-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.ongoing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 28px rgba(197, 26, 26, 0.2);
}

.ongoing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.ongoing-title {
    font-family: 'Sora', sans-serif;
    text-transform: none;
    font-size: 1.25rem;
}

.ongoing-desc {
    color: var(--text-gray);
    line-height: 1.6;
}

.ongoing-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ongoing-badge.is-ongoing {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.6);
    background: rgba(46, 204, 113, 0.08);
}

.ongoing-badge.is-upcoming {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.6);
    background: rgba(241, 196, 15, 0.08);
}

.skill-icon {
    font-size: 1.6rem;
    color: var(--flash-gold);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.icon-js { color: #f7df1e; }
.icon-react { color: #61dafb; }
.icon-node { color: #3c873a; }
.icon-python { color: #3776ab; }
.icon-css { color: #264de4; }
.icon-html { color: #e34f26; }

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 26, 26, 0.3);
    border-color: var(--flash-gold);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--flash-gold);
    text-transform: none;
}

.project-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-btn i {
    color: var(--flash-gold);
}

.project-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 8px 18px rgba(197, 26, 26, 0.2);
}

.project-btn.secondary {
    background: rgba(255, 59, 59, 0.12);
    border-color: rgba(255, 59, 59, 0.35);
}

.project-btn.secondary i {
    color: #ff7b7b;
}

.project-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    color: var(--text-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--flash-gold);
    box-shadow: 0 12px 30px rgba(197, 26, 26, 0.25);
}

.contact-icon {
    font-size: 1.6rem;
    color: var(--flash-gold);
    background: rgba(255, 215, 0, 0.08);
    padding: 0.7rem;
    border-radius: 12px;
}

.icon-github { color: #f5f5f5; }
.icon-email { color: #ff5a5f; }
.icon-whatsapp { color: #25d366; }
.icon-telegram { color: #2aabee; }
.icon-discord { color: #5865f2; }
.icon-projects { color: #ffd700; }

.contact-label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-hint {
    display: block;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.6rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    color: var(--text-gray);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

/* Animations */
@keyframes pulseTitle {
    0%, 100% { text-shadow: 2px 2px 0px var(--flash-gold), 0 0 30px rgba(197, 26, 26, 0.5); }
    50% { text-shadow: 3px 3px 0px var(--flash-gold), 0 0 50px rgba(197, 26, 26, 0.8); }
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 18px rgba(255, 215, 0, 0.5), 0 0 28px rgba(255, 59, 59, 0.4);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 26px rgba(255, 215, 0, 0.7), 0 0 40px rgba(255, 59, 59, 0.55);
    }
}

@keyframes boltFlicker {
    0%, 100% { opacity: 1; transform: translateY(0) rotate(-4deg); }
    50% { opacity: 0.65; transform: translateY(-1px) rotate(4deg); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(46, 204, 113, 0.8); }
    50% { opacity: 0.35; box-shadow: 0 0 3px rgba(46, 204, 113, 0.4); }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .section {
        padding: 3rem 1rem;
    }

    .skill-card {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .section-title::after {
        right: -18px;
        top: 0;
        font-size: 1.5rem;
    }

    .projects-grid, .skills-grid, .ongoing-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .navbar {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 5%;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    .cta-group {
        gap: 0.9rem;
    }

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

    .section-title::after {
        display: none;
    }
}
