:root {
    --bg-color: #0b0e11;
    --card-bg: #15191d;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --accent: #64ffda;
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }
h3 { color: var(--accent);}
.logo { font-weight: bold; font-size: 1.2rem; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); transition: 0.3s; }
.nav-links a:hover, .accent { color: var(--accent); }
.highlight { border: 1px solid var(--accent); padding: 8px 16px; border-radius: 4px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 1px solid var(--accent);
    border-radius: 4px;
    gap: 5px;
}

.menu-toggle .bar {
    height: 2px;
    width: 22px;
    background-color: var(--accent);
    transition: 0.3s;
}

.hero-section {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 10% 60px 10%;
    background: radial-gradient(circle at 10% 20%, rgba(100, 255, 218, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0b0e11 0%, #1a1e23 100%);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.about-me { padding-bottom: 20px; }
.about-content { font-size: 1.2rem; }

.intro-container {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1100px;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2); /* Soft glow effect */
}
.intro-text h1 { font-size: 3rem; margin-bottom: 10px; }
.intro-text h2 { color: var(--text-dim); font-weight: 400; }

section { padding: 50px 10%; }
.section-title { font-size: 2rem; margin-bottom: 40px; display: flex; align-items: center; }
.section-title::after { content: ""; height: 1px; background: var(--accent); flex-grow: 1; margin-left: 20px; opacity: 0.2; }

.job-block { margin-bottom: 50px; }
.job-name { font-size: 1.4rem; color: var(--accent); margin-bottom: 25px; }
.job-date { color: var(--text-dim); font-size: 0.9rem; font-weight: normal; margin-left: 10px; }

.carousel-container {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    padding: 30px 0;
    margin-bottom: 25px;
    contain: paint;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
    transform: translate3d(0, 0, 0);
    animation-composition: replace;
}

.carousel-track img {
    width: 652px;
    height: 300px;
    object-fit: cover;
    margin: 0 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    image-rendering: auto;
    -webkit-user-drag: none;
}

.carousel-track img:hover { transform: scale(1.02); }

@keyframes scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.project-card:hover { transform: translateY(-5px); }

.fading-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.76 / 1;
    background: #000;
    cursor: pointer;
}
.fade-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; pointer-events: none; }
.fade-img.active { opacity: 1; }

.card-content { padding: 20px; }
.btn { display: inline-block; margin-top: 15px; padding: 8px 18px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 4px; transition: 0.3s; font-size: 0.9rem; }
.btn:hover { background: rgba(100, 255, 218, 0.1); }

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 8px;
    border: 1px solid var(--accent);
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--accent);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.skills-list { display: flex; flex-wrap: wrap; gap: 15px; }
.skills-list span { background: var(--card-bg); padding: 10px 20px; border-radius: 4px; border-left: 3px solid var(--accent); }

footer { padding: 60px 10%; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.socials { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.socials a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.socials a:hover { color: var(--accent); }

@media (max-width: 768px) {
    header { padding: 0 5%; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px;
        border-bottom: 1px solid rgba(100, 255, 218, 0.2);
        gap: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active { display: flex; }
    .hero-section { padding: 120px 5% 60px 5%; }
    .intro-container { flex-direction: column; text-align: center; gap: 30px; margin: 0 auto; }
    .intro-text h1 { font-size: 2.2rem; }
    .profile-pic { width: 180px; height: 180px; }

    .carousel-track img { width: 435px; height: 200px; }
    section { padding: 60px 5%; }
}
