/* ============================================
    GLOBAL STYLES & VARIABLES
    ============================================ */
:root {
    --beige: #F5F5DC;
    --white: #FFFFFF;
    --moss: #5F7355;
    --moss-dark: #4A5A42;
    --text-dark: #2C3E2C;
    --text-light: #F5F5DC;
}

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

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

body {
    font-family: 'Noto Serif', serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
    NAVIGATION BAR
    ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
}

nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--moss-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--moss);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--moss);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--moss-dark);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--moss-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
    SECTION LAYOUT
    ============================================ */
section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background overlay for readability */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

section .content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible .content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
    SECTION SPECIFIC BACKGROUNDS & COLORS
    To change background images, modify the background-image URLs below
    ============================================ */
#home {
    background-color: var(--beige);
    background-image: url('images/background-1.png');
}

#about {
    background-color: var(--beige);
    background-image: url('images/pattern.jpg');
    background-size: 512px 512px;
    background-repeat: repeat;
}

#experience {
    background-color: var(--white);
    background-image: url('images/background-2.png');
}

#projects {
    background-color: var(--beige);
    background-image: url('images/pattern.jpg');
    background-size: 512px 512px;
    background-repeat: repeat;
}

#services {
    background-color: var(--moss);
}

#services::before {
    background: rgba(95, 115, 85, 0.7);
}

#services .content {
    color: var(--text-light);
}

#contact {
    background-color: var(--white);
    background-image: url('images/background-3.png');
}

/* ============================================
    TYPOGRAPHY
    ============================================ */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--moss-dark);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--moss-dark);
    text-align: center;
}

#services h2 {
    color: var(--text-light);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--moss-dark);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
    EXPERIENCE SECTION
    ============================================ */
.experience-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.experience-column h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-tag {
    background: var(--moss);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--moss-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tool-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.education-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--moss);
}

.education-item .year {
    color: var(--moss-dark);
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.education-item h4 {
    color: var(--moss-dark);
    margin-bottom: 0.3rem;
}

.education-item p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.document-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.doc-button {
    background: var(--moss);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(95, 115, 85, 0.3);
}

.doc-button:hover {
    background: var(--moss-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(95, 115, 85, 0.4);
}

.doc-button::before {
    content: '📄';
    font-size: 1.2rem;
}

.doc-button.portfolio::before {
    content: '🎨';
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--moss);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    background: var(--moss);
    border-radius: 50%;
}

.year {
    color: var(--moss-dark);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
    PROJECTS SECTION
    ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: var(--beige);
    background-size: cover;
    background-position: center;
    /* Add individual project images:
    .project-card:nth-child(1) .project-image { background-image: url('project1.jpg'); }
    */
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

/* ============================================
    SERVICES SECTION
    ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-light);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ============================================
    CONTACT SECTION
    ============================================ */
.contact-info {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--moss);
}

.contact-details {
    flex: 1;
}

.contact-details .label {
    font-size: 0.9rem;
    color: var(--moss-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-details .value {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-details a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--moss);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--beige);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Noto Serif', serif;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--moss);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button {
    background: var(--moss);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background: var(--moss-dark);
    transform: translateY(-2px);
}

/* ============================================
    WELCOME TEXT ANIMATION
    ============================================ */
.welcome-text {
    display: inline-block;
    min-width: 400px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--moss-dark), var(--moss));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.welcome-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

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

/* ============================================
    RESPONSIVE DESIGN
    ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 5rem 1rem 3rem;
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-slideshow {
        height: 300px;
    }

    #projects {
        padding: 1rem 1rem 1rem;
    }

    .experience-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .document-buttons {
        flex-direction: column;
    }

    .doc-button {
        width: 100%;
        justify-content: center;
    }

    /* Hamburger Menu for Mobile */
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }

    nav a {
        font-size: 1.3rem;
    }

    .welcome-text {
        min-width: 250px;
        font-size: 0.9em;
    }

    #home h1 {
        font-size: 2.8rem !important;
    }

    #home p:first-of-type {
        font-size: 1.3rem !important;
    }

    #home p:last-of-type {
        font-size: 1.1rem !important;
    }

    /* Contact Section Mobile Responsive */
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .contact-details .value {
        font-size: 1.1rem;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .contact-details .value {
        font-size: 1rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .welcome-text {
        min-width: 200px;
    }

    #home h1 {
        font-size: 3.0rem !important;
    }

    #home p:first-of-type {
        font-size: 1.2rem !important;
    }
}
