:root {
    --primary-color: #00f7ff;
    --secondary-color: #2d00f7;
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --nav-line-color: rgba(0, 247, 255, 0.3);
    --timeline-dot-size: 12px;
    --timeline-line-width: 2px;
    --header-height: 80px;
}

body.light-theme {
    --primary-color: #0066ff;
    --secondary-color: #2d00f7;
    --bg-color: #f8f9fa;
    --text-color: #2d3748;
    --card-bg: rgba(0, 0, 0, 0.05);
    --card-hover: rgba(0, 0, 0, 0.1);
    --nav-line-color: rgba(0, 102, 255, 0.3);
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.85);
}

body.light-theme .timeline-nav {
    background: rgba(255, 255, 255, 0.2);
}

/* Specific styles for light theme projects section */
body.light-theme .projects {
    background: linear-gradient(to bottom, var(--bg-color), #e9ecef);
}

body.light-theme .project-card {
    background: white;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-card::before {
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.1), transparent);
}

body.light-theme .project-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1),
                0 0 15px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.3);
}

body.light-theme .project-header {
    background: rgba(0, 102, 255, 0.05);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

body.light-theme .project-icon {
    background: rgba(0, 102, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.1);
}

body.light-theme .tech-tag {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

body.light-theme .tech-tag:hover {
    background: rgba(0, 102, 255, 0.2);
}

body.light-theme .project-link {
    background: linear-gradient(135deg, var(--primary-color), #0099ff);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

body.light-theme .project-link:hover {
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
}

/* Flutter and .NET icons specific styles */
.skill-card i.fab.fa-flutter {
    color: #02569B;
}

body.light-theme .skill-card i.fab.fa-flutter {
    color: #02569B;
}

.skill-card i.fab.fa-microsoft {
    color: #512BD4;
}

body.light-theme .skill-card i.fab.fa-microsoft {
    color: #512BD4;
}

/* Make sure all skill icons have consistent color in light theme */
body.light-theme .skill-card i {
    color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 8rem;
    padding-top: var(--header-height);
}

@media (max-width: 768px) {
    .container {
        padding: var(--header-height) 1rem 5rem;
    }
}

/* Header Styles */
.header {
    height: var(--header-height);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.control-button {
    background: var(--card-bg);
    border: 1px solid var(--nav-line-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-button:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

#lang-toggle {
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 45px;
    justify-content: center;
}

#lang-toggle:hover {
    color: var(--primary-color);
}

.control-button.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
}

.control-button.mobile-menu-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: rotate(90deg);
}

/* Timeline Navigation */
.timeline-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 100;
    padding: 2rem 1rem;
    background: rgba(10, 25, 47, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    min-height: 300px;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-line {
    position: absolute;
    left: 50%;
    top: 10%;
    height: 80%;
    width: var(--timeline-line-width);
    background: var(--nav-line-color);
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 4px;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 20px;
    background: transparent;
}

.nav-dot {
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    background: var(--bg-color);
    border: var(--timeline-line-width) solid var(--nav-line-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.nav-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-text {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-item:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-item:hover .nav-dot,
.nav-item.active .nav-dot {
    background: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-item:hover .nav-dot::after,
.nav-item.active .nav-dot::after {
    opacity: 0.5;
    transform: scale(1.5);
}

.nav-item.active .nav-text {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .container {
        padding: var(--header-height) 1rem 6rem;
    }

    .timeline-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        gap: 0;
        padding: 0.75rem;
        border-radius: 0;
        justify-content: space-around;
        background: rgba(10, 25, 47, 0.95);
        border-top: 1px solid var(--nav-line-color);
    }

    body.light-theme .timeline-nav {
        background: rgba(250, 250, 250, 0.95);
    }

    .nav-line {
        display: none;
    }

    .nav-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
        width: 20%;
        align-items: center;
    }

    .nav-text {
        font-size: 0.7rem;
        opacity: 0.7;
        transform: none;
        text-align: center;
    }

    .nav-item.active .nav-text {
        opacity: 1;
    }

    .nav-dot {
        width: calc(var(--timeline-dot-size) * 0.7);
        height: calc(var(--timeline-dot-size) * 0.7);
    }

    .nav-item:hover .nav-dot::after,
    .nav-item.active .nav-dot::after {
        transform: scale(1.2);
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    right: 1rem;
    background-color: var(--bg-color);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-color);
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    backdrop-filter: blur(10px);
    min-width: 220px;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    transform: rotate(45deg);
    border-top: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
    z-index: -1;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.mobile-menu a:hover {
    background-color: var(--card-hover);
    transform: translateX(5px);
}

.mobile-menu a:hover::before {
    width: 100%;
}

.mobile-menu a i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mobile-menu a:hover i {
    transform: scale(1.2);
}

body.light-theme .mobile-menu {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .mobile-menu::before {
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .control-button.mobile-menu-btn {
        display: flex;
    }
    
    .timeline-nav {
        display: none;
    }
    
    .container {
        padding: calc(var(--header-height) + 1rem) 1.5rem 2rem;
    }
    
    .hero, .experience, .skills, .projects, .contact {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .experience-card, .project-card, .skill-card {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 0 8rem;
    text-align: center;
    margin-bottom: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.quote {
    font-style: italic;
    margin: 2rem 0;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background: var(--card-bg);
}

/* Experience Section */
.experience {
    padding: 6rem 0;
}

.experience h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.company {
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
}

.date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.achievements {
    list-style-position: inside;
    margin-top: 1rem;
}

.achievements li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.location, .skills {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

.skills {
    color: var(--text-color);
    font-style: italic;
}

.experience-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 1rem 0;
}

.experience-tech-stack .tech-tag {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: all 0.3s ease;
}

.experience-tech-stack .tech-tag:hover {
    background: rgba(0, 247, 255, 0.2);
    transform: translateY(-2px);
}

body.light-theme .experience-tech-stack .tech-tag {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

body.light-theme .experience-tech-stack .tech-tag:hover {
    background: rgba(0, 102, 255, 0.2);
}

.sub-experience {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.sub-experience h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.job-type {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
}

.skills h2, .skills h3 {
    text-align: center;
    color: var(--primary-color);
}

.skills h2 {
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.skills h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card .tech-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    filter: invert(80%) sepia(78%) saturate(1250%) hue-rotate(155deg) brightness(104%) contrast(104%);
}

.skill-card h4 {
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-color), rgba(10, 25, 47, 0.95));
}

.projects h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 247, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 247, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 247, 255, 0.1);
    border-color: rgba(0, 247, 255, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    background: rgba(0, 247, 255, 0.05);
    padding: 2rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 247, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
}

.project-card h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 247, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 247, 255, 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #00b4ff);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 247, 255, 0.2);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 247, 255, 0.3);
}

.project-link.disabled {
    background: rgba(0, 247, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.7;
}

.project-link.disabled:hover {
    transform: none;
    box-shadow: none;
}

.project-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(3px);
}

.coming-soon {
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.coming-soon:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .project-icon {
        font-size: 1.8rem;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 2rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-color),
                     -0.05em -0.025em 0 var(--secondary-color);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--primary-color),
                     -0.05em -0.025em 0 var(--secondary-color);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color),
                     0.025em 0.025em 0 var(--secondary-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color),
                     0.025em 0.025em 0 var(--secondary-color);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 var(--primary-color),
                     0.05em 0 0 var(--secondary-color);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 var(--primary-color),
                     0.05em 0 0 var(--secondary-color);
    }
    100% {
        text-shadow: -0.025em 0 0 var(--primary-color),
                     -0.025em -0.025em 0 var(--secondary-color);
    }
}

.glitch {
    animation: glitch 1s infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
}
