/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                              VARIABLES & RESET                                  */
/* ═══════════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #00d9ff;
    --primary-dark: #00a8cc;
    --primary-glow: rgba(0, 217, 255, 0.3);
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.6);
    --bg-card-hover: rgba(20, 20, 35, 0.8);
    --border-color: rgba(0, 217, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #666680;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4466;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                              BACKGROUND EFFECTS                                 */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 150, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 0, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                                  SIDEBAR                                        */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.nav-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 217, 255, 0.1);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 217, 255, 0.15);
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 4px;
    height: 30px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                                MAIN CONTENT                                     */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.main-content {
    margin-left: 80px;
    min-height: 100vh;
    position: relative;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    width: 100%;
    max-width: 1200px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                                GLASSMORPHISM                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                                HERO SECTION                                     */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.hero {
    text-align: center;
    padding: 40px;
}

.hero-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-icon-inner {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), #0066ff);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 20px 60px var(--primary-glow);
}

.hero-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 30px;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 2rem;
}

.typing {
    color: var(--primary);
    border-right: 2px solid var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0088ff);
    color: #000;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

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

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                                ABOUT SECTION                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.filename {
    margin-left: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.keyword { color: #c678dd; }
.variable { color: #e5c07b; }
.property { color: #61afef; }
.string { color: #98c379; }

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                               SKILLS SECTION                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.skills-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.skills-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percent {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #0088ff);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Tech Stack */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tech-category h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.tech-icon:hover i {
    color: var(--primary);
}

.tech-icon img {
    width: 28px;
    height: 28px;
}

.tech-icon img.invert {
    filter: invert(1);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                               STATS SECTION                                     */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item img {
    width: 100%;
    border-radius: 12px;
}

.snake-container {
    margin-top: 30px;
}

.snake-container h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.snake-container img {
    width: 100%;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                              CONTACT SECTION                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #0088ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.3rem;
    color: #000;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-quote {
    padding: 30px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.contact-quote i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-quote p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-quote span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                              PAGE INDICATOR                                     */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.page-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    z-index: 100;
}

.current-page {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                               RESPONSIVE                                        */
/* ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

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

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 70px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }

    .sidebar-menu {
        flex-direction: row;
    }

    .nav-item.active::before {
        left: 50%;
        transform: translateX(-50%);
        top: -15px;
        bottom: auto;
        width: 30px;
        height: 4px;
        border-radius: 0 0 4px 4px;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 70px;
    }

    .section {
        padding: 20px;
    }

    .glass-card {
        padding: 25px;
    }

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

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

    .page-indicator {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/*                               SCROLLBAR                                         */
/* ═══════════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
