:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-cyan: #00f2ff;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --glow-btn: 0 0 20px rgba(0, 242, 255, 0.4);
}

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

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

h1, h2, h3, h4, .logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    padding: 2.5rem 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
}

.logo span {
    color: var(--accent-cyan);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(10, 10, 12, 0.6), rgba(10, 10, 12, 0.9)), url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 900;
}

.quote {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 3rem;
}

.project-cta {
    margin-bottom: 3.5rem;
}

.cta-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.section-header-flex .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-header-flex .section-title::after {
    margin: 10px 0 0;
}

.pilot-stats-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    gap: 30px;
}

.pilot-callsign {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pilot-callsign span {
    color: var(--accent-cyan);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-mini .val {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.stat-mini .lbl {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin: 0 10px;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
}

/* Sections Common */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    margin: 20px auto 0;
}

/* MultiGP Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-secondary);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-left-color: var(--accent-primary);
}

.result-card .rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.podium.gold .rank { color: #ffd700; }
.podium.silver .rank { color: #c0c0c0; }
.podium.bronze .rank { color: #cd7f32; }

.result-card .event {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-card .date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pilot-badge {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Coding Section */
.projects-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tags span {
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 20px;
    margin-right: 10px;
    text-transform: uppercase;
}

.project-card h4 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-cyan);
    padding-bottom: 5px;
}

/* Professional Info */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
}

.card h4 {
    margin-bottom: 2rem;
    color: var(--accent-cyan);
}

.list-dots {
    list-style: none;
}

.list-dots li {
    margin-bottom: 1rem;
    padding-left: 20px;
    position: relative;
}

.list-dots li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-header i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.skill-header h4 {
    font-size: 1.4rem;
    margin: 0;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
    width: 0; /* Animated via script or CSS transition */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-tile {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.contact-tile i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-tile span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.contact-tile p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-tile:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-tile:hover i {
    transform: scale(1.2);
}

/* Specific Brand Colors on Hover */
.contact-tile.telegram:hover { border-color: #0088cc; box-shadow: 0 0 20px rgba(0, 136, 204, 0.3); }
.contact-tile.linkedin:hover { border-color: #0077b5; box-shadow: 0 0 20px rgba(0, 119, 181, 0.3); }
.contact-tile.github:hover { border-color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.contact-tile.instagram:hover { border-color: #e4405f; box-shadow: 0 0 20px rgba(228, 64, 95, 0.3); }
.contact-tile.facebook:hover { border-color: #1877f2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.3); }
.contact-tile.email:hover { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal.active {
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Mobile Styling */
@media (max-width: 992px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .pilot-stats-bar {
        width: 100%;
        justify-content: space-around;
        padding: 12px 15px;
    }
}
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 400px;
        z-index: 1000;
        background: rgba(10, 10, 12, 0.7);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
    }
    
    header.nav-hidden {
        transform: translate(-50%, -150%);
        opacity: 0;
    }

    .hero { 
        min-height: 45vh; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-position: 35% center;
        padding-top: 180px; /* Space for floating nav */
        padding-bottom: 30px;
    }

    .hero h1 { 
        font-size: 2.2rem; 
        margin-bottom: 1.2rem;
    }

    .hero h2 { 
        font-size: 1.1rem; 
    }

    .quote {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .project-cta { 
        margin-bottom: 2.5rem; 
    }

    .cta-badge { 
        font-size: 0.7rem; 
        padding: 8px 15px; 
        display: inline-block;
        line-height: 1.4;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
    }
    
    .grid-2, .projects-grid, .skills-grid { 
        grid-template-columns: 1fr; 
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-tile {
        padding: 2rem 1.5rem;
        height: 100%;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: 50px 0;
    }
    
    /* Simple mobile nav */
    nav {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
    }
    
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding-left: 0;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    nav ul li a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        gap: 12px;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-tile {
        padding: 1.5rem 1rem;
        height: 100%;
    }

    .contact-tile i {
        font-size: 1.8rem;
    }

    .contact-tile span {
        font-size: 0.8rem;
    }
    
    .pilot-stats-bar {
        flex-wrap: wrap;
        gap: 15px;
        border-radius: 20px;
    }
    
    .pilot-callsign {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 15px;
        text-align: center;
    }

    .stat-mini {
        flex: 1;
        min-width: 80px;
    }
}
