/* ==========================================================================
           1. CSS VARIABLES & BASE STYLES
           ========================================================================== */
:root {
    --bg-dark: #090d16;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    --glass-blur: blur(16px);
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Focus States for Accessibility */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

/* Reveal Animation Classes */
.reveal-node {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-node.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
           2. HERO SECTION
           ========================================================================== */
@media (max-width: 470px) {
    .hero-nav {
        display: flex;
        flex-wrap: wrap;
    }
}

.skills-hero {
    position: relative;
    padding: 9rem 0 5rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12) 0%, rgba(9, 13, 22, 1) 70%);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-nav a:hover {
    color: var(--accent-blue);
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: var(--glass-blur);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
    color: var(--accent-blue);
}

.fi-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.fi-2 {
    top: 25%;
    right: 10%;
    animation-delay: 1.5s;
    color: var(--accent-purple);
}

.fi-3 {
    bottom: 20%;
    left: 12%;
    animation-delay: 3s;
    color: var(--accent-cyan);
}

.fi-4 {
    bottom: 15%;
    right: 15%;
    animation-delay: 4.5s;
    color: var(--accent-green);
}

/* Mobile responsive fix for Skills Hero section */
@media (max-width: 768px) {
    .skills-hero {
        padding: 5rem 0 3rem 0;
        /* Vertical padding mobile sathi kami keli */
        min-height: auto;
        /* Screen chi extra height kmi hoil */
    }

    .breadcrumb-nav {
        margin-bottom: 1rem;
        justify-content: center;
        /* Center align for clean look */
    }
}


/* ==========================================================================
           3. OVERVIEW & TECH CARDS
           ========================================================================== */
.tech-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--accent-blue);
    border: 1px solid var(--border-color);
}

.skill-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 1rem;
}

/* ==========================================================================
           4. GIT WORKFLOW & TOOLS
           ========================================================================== */
.git-workflow-visual {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.git-branch-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.git-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

/* ==========================================================================
           5. PROGRESS & METRICS
           ========================================================================== */
.progress-bar-container {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-track {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
           6. TIMELINE ROADMAP
           ========================================================================== */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--bg-dark);
    z-index: 2;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

/* ==========================================================================
           7. STATS COUNTER
           ========================================================================== */
.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    font-family: var(--font-code);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
           8. BACK TO TOP BUTTON
           ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.85);
    color: var(--accent-blue);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.back-to-top:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
           9. MEDIA QUERIES (RESPONSIVENESS)
           ========================================================================== */
@media (max-width: 767px) {
    .floating-icon {
        display: none;
    }

    .roadmap-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 0;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}