* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #0f172a;        /* deep navy background */
    --snd-bg-color: #1e293b;    /* cards / sections */
    --text-color: #e2e8f0;      /* main text */
    --main-color: #38bdf8;      /* accent (cyan/blue) */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: var(--main-color);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--text-color);
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-content h1 {
    padding-top: 10rem;
    font-size: 5rem;
    margin-bottom: 1rem;
}

.home-content h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Tech stack badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech-stack span {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: 0.3s ease;
}

.tech-stack span:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    border-radius: 3rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.experience {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.exp-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--snd-bg-color);
    border-radius: 1rem;
    min-width: 120px;
    transition: 0.3s ease;
}

.exp-item h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.exp-item p {
    font-size: 1.4rem;
    color: var(--main-color);
    font-weight: bold;
}

.exp-item:hover {
    transform: translateY(-5px);
    background: var(--main-color);
    color: var(--bg-color);
}

.exp-item:hover p {
    color: var(--bg-color);
}

.exp-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--main-color);
}

.exp-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.exp-item:hover i {
    color: var(--bg-color);
}

.exp-item,
.tech-stack span {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn:hover {
    background: var(--main-color);
    color: #0f172a;
}

.exp-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.5rem;

    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 6px;
}

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

.heading {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 5rem;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr; /* one item per row */
    gap: 3rem;
}

.project-card {
    background: var(--bg-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 2rem;
}

.project-info p {
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

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

.btn2 {
    padding: 1rem 2.5rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    border-radius: 3rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn2:hover {
    background: var(--main-color);
    color: #0f172a;
}

.project-page {
    max-width: 1000px;
    margin: auto;
    padding: 12rem 2rem 5rem;
}

.project-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
}

.project-description {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-tech span {
    background: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
}

.project-video video {
    display: flex;
    justify-content: center;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

/* Screenshots */
.project-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.project-screenshots img {
    width: 100%;
    border-radius: 1rem;
}

/* Details */
.project-details h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.project-details h3 {
    font-size: 2rem;
    margin-top: 2rem;
}

.project-details p,
.project-details li {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.project-top {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* Left side text */
.project-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.project-text p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-text ul {
    padding-left: 2rem;
}

.project-text li {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.project-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.project-text,
.project-details {
    background: var(--snd-bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-text h3,
.project-details h3 {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.project-text h3::before,
.project-details h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--main-color);
    border-radius: 2px;
}

.project-text p,
.project-details p {
    line-height: 1.7;
    color: #cbd5e1;
}

.project-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.project-text ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
}

.project-text ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 1.2rem;
}

.project-tech span {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--main-color);
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.3rem;
}

.project-video iframe {
    width: 100%;
    height: 320px;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-screenshots img {
    transition: 0.3s ease;
    cursor: pointer;
}

.project-screenshots img:hover {
    transform: scale(1.03);
}

.project-details h3 {
    margin-top: 3rem;
}

.project-details ul {
    margin-top: 1rem;
    padding-left: 2rem;
}

.project-details h3 {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
}

/* Lightbox background */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 5rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 1rem;

    opacity: 1;
    transition: opacity 0.15s ease;
}

/* Fade-out state */
.lightbox-content.fade-out {
    opacity: 0;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 4rem;
    cursor: pointer;
}

/* Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Hover effect on thumbnails */
.project-screenshots img {
    cursor: pointer;
    transition: 0.3s;
}

.project-screenshots img:hover {
    transform: scale(1.05);
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;

    padding: 0.8rem 1.6rem;
    border-radius: 0.8rem;

    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;

    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.github-btn i {
    font-size: 1.8rem;
}

/* Hover effect */
.github-btn:hover {
    background: var(--main-color);
    color: #0f172a;
    transform: translateY(-2px);
}

.cv-section {
    padding: 10rem 9% 5rem;
    background: var(--snd-bg-color);
}

.cv-container {
    width: 100%;
    height: 800px;
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.cv-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Download button */
.cv-download {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cv-btn {
    padding: 1rem 2rem;
    background: var(--main-color);
    color: #0f172a;
    border-radius: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.cv-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-top {
        flex-direction: column;
        gap: 2rem;
    }

    .project-text,
    .project-video {
        width: 100%;
    }

    section {
        padding: 8rem 5% 2rem;
    }
}