:root {
    --bg-color: #0a0a0a;
    --bg-alt-color: #121212;
    --text-color: #fafafa;
    --text-muted: #a1a1aa;
    --primary-color: #10b981;
    /* Emerald */
    --secondary-color: #14b8a6;
    /* Teal */
    --accent-color: #06b6d4;
    --card-bg: #171717;
    --card-border: #262626;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

body.light-mode {
    --bg-color: #ffffff;
    --bg-alt-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-color: #059669;
    --secondary-color: #0d9488;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--bg-alt-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-color);
    opacity: 0.98;
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {

    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, var(--bg-alt-color) 0%, var(--bg-color) 100%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-color);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-location {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-location i {
    margin-right: 8px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-socials {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-socials a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Hero Image */
.hero-img-container {
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.hero-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.4);
}

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

/* Tech Stack Logos */
.tech-stack-section {
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.tech-logos-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-logos {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: marquee 30s linear infinite;
}

.tech-logos img {
    height: 50px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.tech-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.alt-bg {
    background-color: var(--bg-alt-color);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 80px;
    text-align: center;
    font-weight: 800;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag {
    background: var(--bg-alt-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid var(--card-border);
}

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

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.skill-card ul li {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 1rem;
}

.skill-card ul li strong {
    color: var(--text-color);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    width: 22px;
    height: 22px;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.tech-stack {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color) !important;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.project-card:hover .project-img {
    opacity: 0.9;
}

.project-card h3 {
    padding: 30px 30px 10px;
    font-size: 1.5rem;
}

.project-card p {
    padding: 0 30px 30px;
    color: var(--text-muted);
    flex-grow: 1;
    font-size: 1.05rem;
}

.project-link {
    display: block;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary-color);
    font-weight: 700;
    text-align: right;
    border-top: 1px solid var(--card-border);
}

/* Sports */
.sports-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.sports-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.sports-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    filter: grayscale(20%);
}

.sports-img:hover {
    transform: scale(1.03);
    filter: grayscale(0%);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 60px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    background: var(--bg-color);
    border-top: 1px solid var(--card-border);
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-socials a {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        height: auto;
        min-height: var(--header-height);
        display: flex;
        align-items: center;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 15px;
    }

    .logo {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .nav {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        padding-top: 0;
        display: block;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-grow: 1;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-list {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
        min-width: max-content;
    }

    .nav-link {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: -10px;
    }

}