:root {
    --bg-color: #1C1510;
    --bg-soft: #262019;
    --text-color: #F2E7D5;
    --text-muted: #A89680;
    --primary-color: #D99A36;
    --secondary-color: #C96F42;
    --accent-color: #9BAA6A;
    --primary-glow: rgba(217, 154, 54, 0.12);
    --secondary-glow: rgba(201, 111, 66, 0.10);
    --card-bg: rgba(44, 34, 24, 0.75);
    --card-border: rgba(242, 231, 213, 0.08);
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

.background-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, var(--primary-glow), transparent 30%),
        radial-gradient(circle at 85% 20%, var(--secondary-glow), transparent 30%),
        radial-gradient(circle at 60% 90%, rgba(155, 170, 106, 0.07), transparent 30%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(28, 21, 16, 0.7);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
}

.logo .dot {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--card-bg);
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #211912;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 820px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-glow);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(217, 154, 54, 0.25);
}

.hero-subtitle-large {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.hero-subtitle strong {
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #211912;
    border: none;
    box-shadow: 0 4px 18px rgba(217, 154, 54, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(217, 154, 54, 0.45);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 154, 54, 0.4);
}

.about-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--text-muted);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 10px 50px;
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    left: 12px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.featured-project {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.project-image {
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.project-image img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.02);
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.project-placeholder i {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-info > p {
    color: var(--text-muted);
}

.features-list ul {
    list-style: none;
    margin: 1.5rem 0 0.5rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin-top: 1.5rem;
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

/* Gallery */
.project-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.project-gallery img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.project-gallery img:hover,
.project-gallery img.active {
    transform: scale(1.06);
    border-color: var(--primary-color);
}

.project-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-tags > span i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.skill-tags > span:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact */
.contact-section {
    text-align: center;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: var(--primary-glow);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    inset: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 92%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    animation: zoom 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f1f1;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
    z-index: 10002;
    user-select: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-nav:hover {
    background: rgba(217, 154, 54, 0.25);
    border-color: var(--primary-color);
}

@media (max-width: 860px) {
    .lightbox-nav {
        font-size: 1.25rem;
        padding: 0.7rem 0.85rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

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

/* Responsive */
@media (max-width: 860px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle-large {
        font-size: 1.4rem;
    }

    .nav-links {
        display: none;
    }

    .featured-project {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 260px;
    }

    .project-image img {
        max-height: 320px;
    }

    .project-info {
        padding: 2rem;
    }

    .btn-secondary {
        margin-left: 0.5rem;
    }
}
