:root {
    --primary-color: #8fa327;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

header {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
    height: 100vh;
}

.back-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; 
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #45a913;
    transform: translateY(-2px);
}

.btn-alt {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-alt:hover {
    background: var(--primary-color);
    color: var(--white);
}

section {
    padding: 80px 10%;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--dark-color);
}


.about-container {
    text-align: center;
}

.cv {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 30  px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-img {
    height: 200px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-img img, 
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}


.popup {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.popup-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    transform: translateY(10%);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#contact {
    text-align: center;
    background: var(--white);
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--dark-color);
    color: var(--white);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1.5rem;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
    header h1 {
        font-size: 2.2rem;
    }
    section {
        padding: 50px 5%;
    }
}


/* ── Accordion Slider ── */
.accordion-slider {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slides-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(.77, 0, .18, 1);
    will-change: transform;
}

.slides-track img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    padding: 4px 12px 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.85); }
.slider-btn.prev  { left: 6px; }
.slider-btn.next  { right: 6px; }

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: none;
}
.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    pointer-events: all;
    transition: background 0.2s, transform 0.2s;
}
.slider-dots span.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── More projects ── */
.more-projects {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 0 5%;
}

.more-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.more-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-color);
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0.75;
}

.more-dots {
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 0.15em;
    animation: blink-dots 1.8s infinite;
}

@keyframes blink-dots {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
}