/* --- GLOBAL SETUP & VARIABLES --- */
:root {
    --dark-bg: #2C3930;
    --medium-bg: #3F4F44;
    --accent: #A27B5C;
    --text-light: #DCD7C9;
    --text-dark: #2C3930;

    --font-primary: 'Poppins', sans-serif;
    --font-logo: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    /* Subtle gradient for depth */
    background-image: radial-gradient(circle at 50% 50%, #3a4a3e, var(--dark-bg));
    color: var(--text-light);
    line-height: 1.6;
}

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

/* --- TYPOGRAPHY & SHARED STYLES --- */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-light);
}
h1 { font-size: 4rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #c79f80;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent);
    color: var(--text-light);
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn:hover {
    background-color: #b88e70;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(44, 57, 48, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(63, 79, 68, 0.5);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}
.nav-logo .dot {
    color: var(--accent);
}
.nav-links a {
    margin-left: 1.5rem;
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a:hover::after {
    width: 100%;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}
.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #c9c4b9;
}
.hero-image {
    position: relative;
    width: 350px;
    height: 350px;
    justify-self: center;
    border-radius: 50%;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--medium-bg);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: gentle-bounce 2.5s infinite;
}
@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-10px); opacity: 1; }
}


/* --- ABOUT SECTION --- */
.about-section { padding: 6rem 0; }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.about-text p {
    margin-bottom: 1rem;
    color: #c9c4b9;
}
.skills-list h3 { margin-bottom: 1rem; }
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skills-grid span {
    background-color: var(--medium-bg);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 400;
    border: 1px solid #4f5e52;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.skills-grid span:hover {
    transform: scale(1.05);
    background-color: #4a5d51;
}

/* --- PROJECTS SECTION --- */
.projects-section {
    padding: 6rem 0;
    background-color: #27332b;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.project-card {
    background-color: var(--medium-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid #4f5e52;
    position: relative;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(162, 123, 92, 0.2);
}
.project-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: rgba(220, 215, 201, 0.3);
    transition: color 0.3s ease;
}
.project-card:hover .project-icon {
    color: var(--accent);
}
.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-content h3 { margin-bottom: 0.5rem; }
.card-content p { color: #c9c4b9; font-size: 0.95rem; flex-grow: 1; }
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.project-tags span {
    background-color: var(--dark-bg);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 20px;
}
.project-links {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
/* Animate links on card hover */
.project-links .icon-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.1s;
}
.project-card:hover .project-links .icon-link {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover .project-links .icon-link:nth-child(2) {
    transition-delay: 0.2s;
}
.icon-link i { margin-right: 0.5rem; }

/* --- CONTACT SECTION --- */
.contact-section { padding: 6rem 0; }
.text-center { text-align: center; }
.contact-subtitle {
    font-size: 1.1rem;
    color: #c9c4b9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.social-links { margin-top: 2rem; }
.social-links a {
    font-size: 2rem;
    margin: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}
.social-links a:hover {
    transform: translateY(-5px);
    color: var(--text-light);
}

/* --- FOOTER --- */
.footer {
    background-color: #27332b;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #8a968f;
}

/* --- ANIMATIONS --- */
.anim-slide-fade {
    animation: slideFadeIn 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.anim-slide-fade-delay-1 {
    opacity: 0;
    animation: slideFadeIn 1s 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.anim-slide-fade-delay-2 {
    opacity: 0;
    animation: slideFadeIn 1s 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes slideFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero image reveal */
.anim-reveal {
    clip-path: circle(0% at 50% 50%);
    animation: reveal 1.5s 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes reveal {
    to { clip-path: circle(75% at 50% 50%); }
}

/* General on-scroll animations */
.anim-hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}
.anim-show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        grid-row: 1; /* Puts image on top on mobile */
        margin-bottom: 2rem;
        width: 280px;
        height: 280px;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .nav-links { display: none; /* Consider adding a hamburger menu here */ }
    .about-content { grid-template-columns: 1fr; }
}

/* Small fix for flags */

.flag {
    font-size: 50px; /* Adjust size as needed */
}