
/* =========================================
   1. GLOBAL SETTINGS
========================================= */

:root {
    --background: #F7F7F2;
    --surface: #FFFFFF;
    --primary: #294536;
    --secondary: #829783;
    --soft-green: #E8EDE5;
    --text: #35443A;
    --muted: #788279;
    --border: #E2E6DE;

    --heading-font: 'Playfair Display', serif;
    --body-font: 'DM Sans', sans-serif;
}

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

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    scroll-margin-top: 100px;
}


/* =========================================
   2. NAVIGATION BAR
========================================= */

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.nav-button {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s ease;
}

.nav-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}


/* =========================================
   3. HERO SECTION
========================================= */

.hero {
    max-width: 1200px;
    min-height: 620px;
    margin: auto;
    padding: 100px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

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

.eyebrow {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero h2 {
    color: var(--primary);
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 18px;
}

.hero-description {
    max-width: 550px;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 30px;
    font-size: 14px;
    transition: 0.3s ease;
}

.primary-button {
    background: var(--primary);
    color: white;
}

.primary-button:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.secondary-button:hover {
    background: var(--soft-green);
}


/* Hero decorative card */

.hero-visual {
    width: 330px;
    height: 330px;
    flex-shrink: 0;

    background: var(--soft-green);
    border-radius: 48% 52% 55% 45% / 50% 45% 55% 50%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 230px;
    padding: 30px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(41, 69, 54, 0.08);
}

.card-label {
    font-size: 10px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-card h3 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 26px;
    margin: 12px 0;
}

.hero-card p:last-child {
    font-size: 13px;
    color: var(--muted);
}


/* =========================================
   4. COMMON SECTION STYLING
========================================= */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 95px 30px;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 12px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   5. ABOUT SECTION
========================================= */

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 45px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 25px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.about-highlight {
    background: var(--soft-green);
    padding: 35px;
    border-radius: 18px;
}

.about-highlight span {
    font-family: var(--heading-font);
    font-size: 42px;
    color: var(--secondary);
}

.about-highlight h3 {
    color: var(--primary);
    font-size: 19px;
    margin: 12px 0;
}

.about-highlight p {
    font-size: 14px;
    color: var(--muted);
}


/* =========================================
   6. SKILLS SECTION
========================================= */

.skills-section {
    max-width: none;
    background: #EFF2EB;
}

.skills-section .section-heading,
.skills-grid {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.skill-card {
    background: var(--surface);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(41, 69, 54, 0.06);
}

.skill-card h3 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 21px;
    margin-bottom: 18px;
}

.skill-card ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.skill-card li {
    color: var(--muted);
    font-size: 13px;
}

.skill-card li::before {
    content: "• ";
    color: var(--secondary);
    font-weight: bold;
}


/* =========================================
   7. PROJECTS SECTION
========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 35px;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(41, 69, 54, 0.07);
}

.project-number {
    font-family: var(--heading-font);
    color: var(--secondary);
    font-size: 36px;
    margin-bottom: 18px;
}

.project-category {
    font-size: 10px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.project-card h3 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 23px;
    margin: 12px 0;
}

.project-card > p:not(.project-category) {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: var(--soft-green);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.featured-project {
    border-color: #B9C9B8;
}


/* =========================================
   8. QA PROCESS SECTION
========================================= */

.process-section {
    max-width: none;
    background: #EFF2EB;
}

.process-section .section-heading,
.process-grid {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.process-item {
    background: var(--surface);
    padding: 24px 18px;
    border-radius: 14px;
}

.process-item span {
    color: var(--secondary);
    font-family: var(--heading-font);
    font-size: 30px;
}

.process-item h3 {
    color: var(--primary);
    font-size: 16px;
    margin: 12px 0;
}

.process-item p {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================
   9. TOOLS SECTION
========================================= */

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tools-list span {
    background: var(--soft-green);
    color: var(--primary);
    padding: 12px 23px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s ease;
}

.tools-list span:hover {
    background: var(--primary);
    color: white;
}


/* =========================================
   10. EDUCATION SECTION
========================================= */

.education-card {
    background: var(--soft-green);
    padding: 35px;
    border-radius: 18px;
    border-left: 4px solid var(--primary);
}

.education-year {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.education-card h3 {
    font-family: var(--heading-font);
    font-size: 22px;
    color: var(--primary);
    margin: 12px 0;
}

.education-card p:last-child {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   11. CERTIFICATIONS SECTION
========================================= */

.learning-card {
    background: var(--soft-green);
    padding: 35px;
    border-radius: 18px;
}

.learning-card h3 {
    font-family: var(--heading-font);
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 12px;
}

.learning-card p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================================
   12. CONTACT SECTION
========================================= */

.contact-section {
    text-align: center;
}

.contact-section .section-heading {
    max-width: 650px;
    margin: 0 auto 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 28px;
}

.social-links a {
    color: var(--secondary);
    font-size: 14px;
    transition: 0.3s ease;
}

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


/* =========================================
   13. FOOTER
========================================= */

.footer {
    background: var(--primary);
    color: #E8EDE5;
    padding: 25px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p,
.footer a {
    font-size: 12px;
}

.footer a:hover {
    color: white;
}


/* =========================================
   14. RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .hero {
        min-height: auto;
        padding: 80px 30px;
    }

    .hero-visual {
        width: 260px;
        height: 260px;
    }

    .hero-card {
        width: 195px;
    }

    .nav-links {
        gap: 15px;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 650px) {

    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-button {
        padding: 8px 13px;
        font-size: 11px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 75px 22px;
        gap: 45px;
    }

    .hero-visual {
        align-self: center;
    }

    .section {
        padding: 70px 22px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .skill-card ul {
        grid-template-columns: 1fr;
    }

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

    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


@media (max-width: 380px) {

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

    .nav-links a {
        font-size: 11px;
    }

    .hero h2 {
        font-size: 18px;
    }
}

/* =========================================
   JAVASCRIPT INTERACTION STYLES
========================================= */

/* Mobile menu button */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 25px;
    cursor: pointer;
}


/* Active navigation link */

.nav-links a.active-link {
    color: var(--secondary);
    font-weight: 700;
}


/* Scroll reveal animation */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Hero Profile Image */
.hero-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 7px solid var(--soft-green);
    box-shadow: 0 12px 35px rgba(41, 69, 54, 0.15);
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive Profile Image */
@media (max-width: 900px) {
    .hero-image {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 650px) {
    .hero-image {
        width: 220px;
        height: 220px;
        margin-top: 30px;
    }
}

/* Back to top button */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    background: var(--primary);
    color: white;

    border: none;
    border-radius: 50%;

    font-size: 22px;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-4px);
}


/* Mobile navigation */

@media (max-width: 650px) {

    .menu-toggle {
        display: block;
        order: 2;
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background: var(--background);
        border-bottom: 1px solid var(--border);

        padding: 20px;

        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-button {
        order: 1;
        margin-left: auto;
    }

    .menu-toggle {
        order: 2;
    }

}


/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

}
