/* ===================================
   FUTURISTIC MINIMAL PORTFOLIO
   Simple Design + Futuristic Effects
   =================================== */

/* ============ ROOT & VARIABLES ============ */
:root {
    --primary-color: #50c878;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-color: rgba(80, 200, 120, 0.5);
}

/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* ============ 3D BACKGROUND ============ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ============ LOADER ============ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============ CYBER BACKGROUND ============ */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.04;
    animation: gridScrollPerspective 40s linear infinite;
    transform: perspective(800px) rotateX(65deg) scale(1.2);
    transform-origin: center center;
}

@keyframes gridScrollPerspective {
    0% {
        transform: perspective(800px) rotateX(65deg) scale(1.2) translateY(0);
    }
    100% {
        transform: perspective(800px) rotateX(65deg) scale(1.2) translateY(40px);
    }
}

.cyber-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-lines::before,
.cyber-lines::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 30%,
        var(--glow-color) 50%,
        var(--primary-color) 70%,
        transparent 100%);
    opacity: 0;
    animation: lineMove 6s ease-in-out infinite;
    box-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}

.cyber-lines::before {
    top: 15%;
    animation-delay: 0s;
}

.cyber-lines::after {
    bottom: 25%;
    animation-delay: 3s;
    height: 1px;
}

@keyframes lineMove {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20%, 80% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ============ NAVIGATION (Removed) ============ */
/* Navigation has been removed from the design */

/* ============ MAIN CONTAINER ============ */
#main-container {
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ============ SECTIONS ============ */
.section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.section-number {
    position: absolute;
    top: -60px;
    left: 0;
    font-size: 200px;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    opacity: 0.3;
    pointer-events: none;
    letter-spacing: -10px;
    transition: var(--transition);
}

.section:hover .section-number {
    opacity: 0.15;
    text-shadow: 0 0 50px rgba(80, 200, 120, 0.2);
}

/* ============ HERO SECTION ============ */
.hero {
    max-width: 800px;
}

.hero-greeting {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-name {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.hero-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 0 20px var(--glow-color);
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-family: inherit;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(80, 200, 120, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-color);
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 50px;
    height: 1px;
    background: var(--text-secondary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(0.5); opacity: 0.5; }
}

/* ============ SECTION HEADERS ============ */
.about-header,
.work-header,
.contact-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ============ ABOUT SECTION ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.info-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary-color);
    padding-left: 10px;
}

.info-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-skills h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

.experience-list {
    margin-bottom: 50px;
}

.experience-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.experience-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.exp-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.exp-company {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============ FUTURISTIC SKILLS WITH ICONS ============ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    position: relative;
    padding: 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 40px var(--glow-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    transform: translateZ(20px) rotateY(360deg);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.skill-icon .lang-flag {
    font-size: 48px;
}

.skill-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

.skill-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 10px var(--glow-color);
}

.skill-percent {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============ SERVICES SECTION ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 40px 30px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
    transition: var(--transition);
    z-index: 0;
}

.service-item:hover::before {
    left: 100%;
    transition: left 0.8s ease;
}

.service-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px var(--glow-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-item:hover .service-icon {
    transform: translateZ(20px) scale(1.2);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-primary);
    transition: var(--transition);
}

.service-item:hover .service-icon svg {
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--glow-color));
}

.service-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-item:hover h3 {
    color: var(--primary-color);
}

.service-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============ FUTURISTIC WORK SECTION ============ */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Futuristic Glow Effect */
.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: -1;
}

.project-item:hover:not(.disabled) {
    padding-left: 30px;
    border-color: var(--primary-color);
    transform: translateZ(20px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(80, 200, 120, 0.2);
}

.project-item:hover:not(.disabled) .project-glow {
    opacity: 0.2;
    animation: glowMove 1.5s ease-in-out infinite;
}

@keyframes glowMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.project-item:hover:not(.disabled) .project-number {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
    transform: translateZ(10px);
}

.project-item:hover:not(.disabled) .project-title {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
    transform: translateZ(15px);
}

.project-item:hover:not(.disabled) .project-arrow {
    transform: translateX(10px) translateZ(20px);
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
}

.project-number {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.project-info {
    transition: var(--transition);
}

.project-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    transition: var(--transition);
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-item:hover:not(.disabled) .project-tag {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.project-arrow {
    font-size: 32px;
    color: var(--text-primary);
    text-align: right;
    transition: var(--transition);
}

/* ============ CONTACT SECTION ============ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--primary-color);
    padding-left: 10px;
    box-shadow: 0 5px 15px rgba(80, 200, 120, 0.1);
}

.method-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.method-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.form-group label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(80, 200, 120, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ============ FOOTER ============ */
.footer {
    padding: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 40px;
}

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-social a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.footer-social a:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============ PARALLAX ELEMENTS ============ */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .nav {
        padding: 30px 40px;
    }

    .section {
        padding: 100px 40px 60px;
    }

    .section-content {
        max-width: 100%;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-item {
        grid-template-columns: 60px 1fr 40px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-text {
        display: none;
    }

    .section {
        padding: 80px 30px 60px;
    }

    .section-number {
        font-size: 100px;
        top: -40px;
    }

    .hero-name {
        font-size: 48px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 40px;
    }

    .about-text p {
        font-size: 16px;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .project-item:hover:not(.disabled) {
        padding-left: 15px;
    }

    .project-number {
        order: 1;
    }

    .project-info {
        order: 3;
    }

    .project-arrow {
        order: 2;
        text-align: left;
    }

    .project-title {
        font-size: 24px;
    }

    .footer {
        padding: 40px 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============ CUSTOM SCROLLBAR ============ */
#main-container::-webkit-scrollbar {
    width: 8px;
}

#main-container::-webkit-scrollbar-track {
    background: var(--bg-color);
}

#main-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

#main-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

/* ============ THEME SYSTEM ============ */
/* Light Mode (Default) */
[data-mode="light"] {
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
}

/* Dark Mode */
[data-mode="dark"] {
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --bg-color: #0a0a0a;
    --border-color: #2a2a2a;
}

[data-mode="dark"] .nav {
    background: rgba(10, 10, 10, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-mode="dark"] .digital-clock,
[data-mode="dark"] .theme-btn {
    background: rgba(10, 10, 10, 0.8);
}

/* Theme: Green (Default) */
[data-theme="green"] {
    --primary-color: #50c878;
    --glow-color: rgba(80, 200, 120, 0.5);
}

/* Theme: Blue */
[data-theme="blue"] {
    --primary-color: #00d4ff;
    --glow-color: rgba(0, 212, 255, 0.5);
}

/* Theme: Purple */
[data-theme="purple"] {
    --primary-color: #9d4edd;
    --glow-color: rgba(157, 78, 221, 0.5);
}

/* Theme: Orange */
[data-theme="orange"] {
    --primary-color: #ff6b35;
    --glow-color: rgba(255, 107, 53, 0.5);
}

/* Theme: Pink */
[data-theme="pink"] {
    --primary-color: #ff006e;
    --glow-color: rgba(255, 0, 110, 0.5);
}

/* ============ THEME SELECTOR BUTTON ============ */
.theme-btn {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px var(--glow-color);
}

.theme-btn svg {
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-btn:hover svg {
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* ============ THEME SIDEBAR ============ */
.theme-sidebar {
    position: fixed;
    left: -400px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 40px 30px;
    z-index: 3000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.theme-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(80, 200, 120, 0.05);
    box-shadow: 0 4px 20px var(--glow-color);
}

.theme-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.theme-option:hover .theme-preview {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-option span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============ SIDEBAR SECTIONS ============ */
.sidebar-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Mode Options */
.mode-options {
    display: flex;
    gap: 10px;
}

.mode-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    background: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.mode-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.mode-option.active {
    border-color: var(--primary-color);
    background: rgba(80, 200, 120, 0.05);
}

.mode-option svg {
    color: var(--text-secondary);
    transition: var(--transition);
}

.mode-option.active svg {
    color: var(--primary-color);
}

.mode-option span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Language Options */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: transparent;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.language-option:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.language-option.active {
    border-color: var(--primary-color);
    background: rgba(80, 200, 120, 0.05);
}

.language-option .flag {
    font-size: 24px;
}

.language-option span:not(.flag) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Toggle Options */
.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-option input[type="checkbox"] {
    display: none;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    transition: var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-option input[type="checkbox"]:checked + .toggle-label + .toggle-switch {
    background: var(--primary-color);
}

.toggle-option input[type="checkbox"]:checked + .toggle-label + .toggle-switch::after {
    left: 27px;
}

/* ============ DIGITAL CLOCK ============ */
.digital-clock {
    position: fixed;
    top: 40px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 1000;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.digital-clock:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--glow-color);
}

#clock-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-color);
    font-variant-numeric: tabular-nums;
}

#clock-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ RESPONSIVE - THEME & CLOCK ============ */
@media (max-width: 1024px) {
    .theme-btn {
        left: 30px;
        width: 45px;
        height: 45px;
    }

    .theme-sidebar {
        width: 300px;
        left: -350px;
    }

    .digital-clock {
        right: 40px;
        padding: 15px 20px;
    }

    #clock-time {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .theme-btn {
        left: 20px;
        width: 40px;
        height: 40px;
    }

    .theme-sidebar {
        width: 280px;
        left: -320px;
        padding: 30px 20px;
    }

    .digital-clock {
        top: 80px;
        right: 30px;
        padding: 12px 18px;
    }

    #clock-time {
        font-size: 20px;
    }

    #clock-date {
        font-size: 10px;
    }
}

/* ============ SKILLS TAGS (Updated) ============ */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-color);
    font-weight: 500;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--glow-color);
}

/* ============ SKILL MODAL ============ */
.skill-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.skill-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    z-index: 1;
    transform-style: preserve-3d;
    animation: epicCardReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 40px var(--glow-color),
        0 0 80px var(--glow-color),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes epicCardReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(180deg) rotateX(30deg) translateZ(-500px);
        filter: brightness(0);
    }
    40% {
        opacity: 1;
        transform: scale(1.15) rotateY(20deg) rotateX(-10deg) translateZ(50px);
        filter: brightness(1.5);
    }
    60% {
        transform: scale(0.95) rotateY(-10deg) rotateX(5deg) translateZ(20px);
    }
    80% {
        transform: scale(1.05) rotateY(5deg) rotateX(-3deg) translateZ(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) rotateX(0deg) translateZ(0px);
        filter: brightness(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.modal-progress {
    margin-bottom: 30px;
}

.modal-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--glow-color));
    border-radius: 6px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--glow-color);
}

.modal-progress-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.modal-frameworks h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-frameworks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-frameworks li {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: transparent;
    border-left: 3px solid var(--primary-color);
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.modal-frameworks li:hover {
    background: rgba(80, 200, 120, 0.05);
    padding-left: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============ SECTION NAVIGATION TIMELINE ============ */
.section-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    transition: var(--transition);
    cursor: pointer;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-dot:hover,
.nav-dot.active {
    border-color: var(--primary-color);
}

.nav-dot.active::before {
    width: 6px;
    height: 6px;
}

.nav-dot-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-dot:hover .nav-dot-label {
    opacity: 1;
    right: 30px;
}

@media (max-width: 1024px) {
    .section-nav {
        right: 30px;
    }

    .nav-dot-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-nav {
        right: 20px;
        gap: 15px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-header h3 {
        font-size: 22px;
    }
}
