:root {
    --bg-color: #0a192f;
    --card-bg: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-secondary: #007bff;
    --heading-color: #e6f1ff;
    --border-color: #233554;
    --header-bg: rgba(10, 25, 47, 0.85);
    --overlay-bg: rgba(10, 25, 47, 0.65);
    --accent-rgb: 100, 255, 218;
    --font-mono: "Fira Code", monospace;
    --font-sans: "Inter", sans-serif;
}

.light-mode {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-color: #e17055;
    --accent-secondary: #0984e3;
    --heading-color: #1a1a2e;
    --border-color: #dfe6e9;
    --header-bg: rgba(248, 249, 250, 0.85);
    --overlay-bg: rgba(0, 0, 0, 0.3);
    --accent-rgb: 225, 112, 85;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.mono {
    font-family: var(--font-mono);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 98;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.logo {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Language Switch */
.lang-switch a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--accent-color);
}

.lang-switch .divider {
    color: var(--text-secondary);
    margin: 0 5px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 0;
}

.hero.hero-compact {
    min-height: auto;
    padding: 40px 0 20px;
}

.hero p {
    color: var(--accent-color);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    margin: 0;
    line-height: 1.1;
    color: var(--heading-color);
}

.hero .subtitle {
    font-size: clamp(18px, 4vw, 28px);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    margin-top: 10px;
}

.hero h2::before {
    content: none;
    counter-increment: none;
}

.hero .description {
    max-width: 500px;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    transition:
        color 0.3s,
        transform 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.email-contact p {
    color: var(--accent-color);
    margin-top: 15px;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    margin-top: 50px;
    padding: 1.25rem 1.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

/* Sections */
section {
    padding: 70px 0;
}

.compact-section {
    padding: 50px 0;
}

section h2 {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 30px;
}

section h2::before {
    content: "0" counter(section) ".";
    counter-increment: section;
    margin-right: 10px;
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 300;
}

section h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: var(--border-color);
    margin-left: 20px;
}

body {
    counter-reset: section;
}

/* Skills Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.skill-card {
    background: var(--card-bg);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-card span {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Experience Steps */
.experience-list {
    border-left: 2px solid var(--border-color);
    margin-left: 20px;
    padding-left: 20px;
}

.job {
    position: relative;
    margin-bottom: 50px;
}

.job::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.job h3 {
    margin: 0 0 5px 0;
    color: var(--heading-color);
    font-size: 1.4rem;
}

.job .company {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1rem;
}

.job .dates {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: block;
}

/* Projects */
.project-card {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.folder-icon {
    font-size: 40px;
    color: var(--accent-color);
}

.project-links a {
    color: var(--heading-color);
    margin-left: 15px;
    text-decoration: none;
}

.project-links a:hover {
    color: var(--accent-color);
}

/* Project Gallery */
.project-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--card-bg);
}

.project-gallery::-webkit-scrollbar {
    height: 8px;
}

.project-gallery::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background-color: var(--text-secondary);
    border-radius: 4px;
    border: 2px solid var(--card-bg);
}

.project-gallery::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

.project-gallery-img {
    height: 250px;
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-gallery-img:hover {
    opacity: 1;
}

.project-card h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.project-card .tech-stack {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-card .tech-stack span {
    margin-right: 15px;
}

/* About Overlay */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 4px;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: all 0.3s;
    box-shadow: 20px 20px 0px 5px var(--text-secondary);
    display: block;
}

.light-mode .about-img img {
    mix-blend-mode: normal;
    filter: none;
}

.about-img::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: all 0.3s;
}

.about-img:hover::after {
    top: 15px;
    left: 15px;
}

.about-img:hover img {
    mix-blend-mode: normal;
    filter: none;
    transform: translate(-5px, -5px);
}

.tech-logos {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.tech-logos svg {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.light-mode .tech-logos svg {
    filter: none;
    opacity: 0.8;
}

.tech-logos svg:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: none;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 50px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger .line {
        width: 25px;
        height: 3px;
        background-color: var(--accent-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translate(5px, 0px) rotate(45deg);
        transform-origin: left;
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translate(5px, 0px) rotate(-45deg);
        transform-origin: left;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

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

    .about-img {
        margin: 50px auto 0;
        width: 70%;
    }

    section h2::after {
        width: 100%;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero .subtitle {
        font-size: 30px;
    }
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.description-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-profile-img {
    position: relative;
    max-width: 100%;
}

.about-profile-img img {
    width: 100%;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.about-profile-img::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    top: 15px;
    left: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.about-profile-img:hover img {
    filter: none;
    transform: translate(-5px, -5px);
}

.about-profile-img:hover::after {
    top: 10px;
    left: 10px;
}

/* Education Section */
.education-section {
    margin-top: 3rem;
}

.education-section h3 {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.education-section h3::after {
    content: "";
    display: block;
    width: 150px;
    height: 1px;
    background: var(--border-color);
    margin-left: 20px;
}

.education-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 4px;
    gap: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.uni-logo {
    width: 60px;
    height: auto;
}

.education-details h4 {
    margin: 0 0 5px 0;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.education-details .dates {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Language Section */
.language-section {
    margin-top: 2rem;
}

.language-section h3 {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.language-card {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.language-card:hover {
    border-color: var(--accent-color);
}

.language-card p {
    margin: 0;
    color: var(--text-primary);
}

.language-card a {
    color: var(--accent-color);
}

.language-card a:hover {
    text-decoration: underline;
}

/* Tech Grid Full Page */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.tech-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
    filter: brightness(1.1);
}

.light-mode .tech-item:hover {
    filter: brightness(0.96);
}

.tech-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.light-mode .tech-icon img {
    filter: none;
    opacity: 0.7;
}

.tech-item:hover .tech-icon img {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.tech-item span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-profile-img {
        max-width: 300px;
        margin: 0 auto;
    }
}
