/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f4efe7;
    color: #2d241f;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

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


/* =========================================
   COLORS
========================================= */

:root {

    --cream: #f4efe7;

    --cream-dark: #e8dfd3;

    --brown: #2d241f;

    --brown-light: #6f5a4b;

    --accent: #9a6b4f;

    --accent-light: #c8a98d;

    --white: #fffaf3;

    --border: rgba(45, 36, 31, 0.15);

}


/* =========================================
   NAVBAR
========================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 7%;

    background: rgba(244, 239, 231, 0.85);

    backdrop-filter: blur(15px);

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

    z-index: 1000;

}


.logo {

    font-family: "DM Mono", monospace;

    font-size: 1.5rem;

    font-weight: 500;

}


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


.nav-links {

    display: flex;

    gap: 35px;

}


.nav-links a {

    position: relative;

    font-size: 0.85rem;

    color: var(--brown-light);

    transition: color 0.3s ease;

}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 1px;

    background: var(--accent);

    transition: width 0.3s ease;

}


.nav-links a:hover {

    color: var(--accent);

}


.nav-links a:hover::after {

    width: 100%;

}


.nav-links a.active {

    color: var(--accent);

}


.nav-links a.active::after {

    width: 100%;

}

.nav-links a:hover {

    color: var(--accent);

}


.nav-button {

    border: 1px solid var(--brown);

    padding: 10px 18px;

    font-size: 0.8rem;

    transition: 0.3s;

}


.nav-button:hover {

    background: var(--brown);

    color: var(--cream);

}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 100vh;

    padding: 150px 7% 80px;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 80px;

}


.hero-label {

    font-family: "DM Mono", monospace;

    font-size: 0.7rem;

    letter-spacing: 2px;

    color: var(--brown-light);

    margin-bottom: 25px;

}


.status-dot {

    display: inline-block;

    width: 7px;

    height: 7px;

    background: #708c62;

    border-radius: 50%;

    margin-right: 8px;

}


.hero h1 {

    font-size: clamp(4rem, 8vw, 7.5rem);

    line-height: 0.95;

    letter-spacing: -5px;

    font-weight: 600;

}


.hero h1 span {

    color: var(--accent);

}


.hero h2 {

    margin-top: 30px;

    font-size: clamp(1.5rem, 3vw, 2.5rem);

    font-weight: 500;

}


.changing-text {

    color: var(--accent);

    font-family: "DM Mono", monospace;

}


.hero-description {

    max-width: 600px;

    margin-top: 25px;

    color: var(--brown-light);

    font-size: 1rem;

}


.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 35px;

}


.primary-button {

    display: inline-block;

    background: var(--brown);

    color: var(--cream);

    padding: 14px 25px;

    transition: 0.3s;

}


.primary-button:hover {

    transform: translateY(-3px);

    background: var(--accent);

}


.secondary-button {

    border: 1px solid var(--brown);

    padding: 14px 25px;

    transition: 0.3s;

}


.secondary-button:hover {

    background: var(--brown);

    color: var(--cream);

}


.social-links {

    display: flex;

    gap: 25px;

    margin-top: 30px;

    font-family: "DM Mono", monospace;

    font-size: 0.75rem;

}


.social-links a:hover {

    color: var(--accent);

}


/* =========================================
   PROFILE CARD
========================================= */

.hero-visual {

    display: flex;

    justify-content: center;

}


.profile-card {

    width: min(400px, 100%);

    background: var(--white);

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

    box-shadow: 25px 25px 0px var(--cream-dark);

    transform: rotate(2deg);

    transition: 0.4s;

}


.profile-card:hover {

    transform: rotate(0deg) translateY(-10px);

}


.card-top {

    height: 35px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding-left: 15px;

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

}


.card-top span,
.terminal-header span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background: var(--accent-light);

}


.profile-image {

    height: 350px;

    overflow: hidden;

}


.profile-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.profile-info {

    padding: 25px;

}


.code-comment {

    font-family: "DM Mono", monospace;

    font-size: 0.75rem;

    color: var(--accent);

}


.profile-info h3 {

    margin-top: 8px;

    font-size: 1.1rem;

}


.profile-info p:last-child {

    color: var(--brown-light);

    font-size: 0.85rem;

}


/* =========================================
   SECTIONS
========================================= */

.section {

    padding: 120px 7%;

}


.section-heading {

    margin-bottom: 60px;

}


.section-heading p,
.contact-label {

    font-family: "DM Mono", monospace;

    color: var(--accent);

    font-size: 0.75rem;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


.section-heading h2 {

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -2px;

    line-height: 1;

}


/* =========================================
   ABOUT
========================================= */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

}


.about-text {

    font-size: 1.1rem;

    color: var(--brown-light);

}


.about-text p {

    margin-bottom: 25px;

}


/* =========================================
   TERMINAL
========================================= */

.about-terminal {

    background: #2d241f;

    color: #eee5da;

    box-shadow: 15px 15px 0px var(--accent-light);

}


.terminal-header {

    height: 40px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding-left: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}


.terminal-body {

    padding: 30px;

    font-family: "DM Mono", monospace;

    font-size: 0.8rem;

}


.terminal-body p {

    margin-bottom: 12px;

}


.terminal-green {

    color: #a8bd8e;

}


.terminal-output {

    color: #c8a98d;

    margin-left: 10px;

}


/* =========================================
   SKILLS
========================================= */

.skills-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    border-left: 1px solid var(--border);

}


.skill-card {

    min-height: 250px;

    padding: 30px;

    border-right: 1px solid var(--border);

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

    transition: 0.4s;

}


.skill-card:hover {

    background: var(--brown);

    color: var(--cream);

    transform: translateY(-8px);

}


.skill-card span {

    font-family: "DM Mono", monospace;

    color: var(--accent);

}


.skill-card h3 {

    margin-top: 60px;

    font-size: 1.2rem;

}


.skill-card p {

    margin-top: 12px;

    color: var(--brown-light);

    font-size: 0.85rem;

}


.skill-card:hover p {

    color: var(--cream-dark);

}


/* =========================================
   PROJECTS
========================================= */

.projects-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 35px;

}


.project-card {

    background: var(--white);

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

    transition: 0.4s;

}


.project-card:hover {

    transform: translateY(-10px);

    box-shadow: 15px 15px 0px var(--cream-dark);

}


.project-image {

    height: 280px;

    overflow: hidden;

    background: var(--cream-dark);

}


.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s;

}


.project-card:hover .project-image img {

    transform: scale(1.05);

}


.project-content {

    padding: 30px;

}


.project-number {

    font-family: "DM Mono", monospace;

    color: var(--accent);

    font-size: 0.7rem;

}


.project-content h3 {

    margin-top: 10px;

    font-size: 1.6rem;

}


.project-content>p:not(.project-number) {

    margin-top: 15px;

    color: var(--brown-light);

}


.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;

}


.project-tech span {

    font-family: "DM Mono", monospace;

    font-size: 0.7rem;

    padding: 6px 10px;

    background: var(--cream-dark);

}


.project-links {

    display: flex;

    gap: 20px;

    margin-top: 25px;

    font-family: "DM Mono", monospace;

    font-size: 0.75rem;

}


.project-links a:hover {

    color: var(--accent);

}


/* =========================================
   EXPERIENCE
========================================= */

.timeline {

    max-width: 850px;

    margin: auto;

}


.timeline-item {

    display: grid;

    grid-template-columns: 25px 1fr;

    gap: 30px;

    padding: 35px 0;

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

}


.timeline-dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: var(--accent);

    margin-top: 8px;

}


.timeline-date {

    font-family: "DM Mono", monospace;

    color: var(--accent);

    font-size: 0.75rem;

}


.timeline-item h3 {

    margin-top: 8px;

    font-size: 1.5rem;

}


.timeline-item div:last-child p:last-child {

    color: var(--brown-light);

    margin-top: 8px;

}


/* =========================================
   CONTACT
========================================= */

.contact-section {

    padding: 160px 7%;

    text-align: center;

    background: var(--brown);

    color: var(--cream);

}


.contact-section h2 {

    max-width: 900px;

    margin: auto;

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 1;

    letter-spacing: -4px;

}


.contact-section h2 span {

    color: var(--accent-light);

}


.contact-section>p:not(.contact-label) {

    max-width: 550px;

    margin: 30px auto;

    color: var(--cream-dark);

}


.contact-section .primary-button {

    background: var(--cream);

    color: var(--brown);

}


.contact-section .primary-button:hover {

    background: var(--accent-light);

}


/* =========================================
   FOOTER
========================================= */

footer {

    padding: 25px 7%;

    display: flex;

    justify-content: space-between;

    font-family: "DM Mono", monospace;

    font-size: 0.7rem;

    color: var(--brown-light);

}


/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {

    .nav-links {

        position: absolute;

        top: 75px;

        left: 5%;

        right: 5%;

        display: flex;

        flex-direction: column;

        gap: 0;

        background: var(--white);

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

        padding: 10px;

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: 0.3s ease;

    }


    .nav-links.open {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);

    }


    .nav-links a {

        padding: 15px;

    }


    .nav-button {

        display: none;

    }


    .menu-toggle {

        display: block;

    }


    .hero {

        grid-template-columns: 1fr;

    }


    .about-grid {

        grid-template-columns: 1fr;

    }


    .skills-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}

/* Changing text animation */

.changing-text {
    display: inline-block;
    color: var(--accent);
    font-family: "DM Mono", monospace;
    transition: none;

}

/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.reveal.active {

    opacity: 1;

    transform: translateY(0);

}

/* Stagger skill cards */

.skill-card:nth-child(1) {
    transition-delay: 0.1s;
}

.skill-card:nth-child(2) {
    transition-delay: 0.2s;
}

.skill-card:nth-child(3) {
    transition-delay: 0.3s;
}

.skill-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* =========================================
   NAVBAR SCROLL STATE
========================================= */

.navbar.scrolled {

    background: rgba(45, 36, 31, 0.92);

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

}


.navbar.scrolled .logo {

    color: var(--cream);

}


.navbar.scrolled .nav-links a {

    color: #d9cec2;

}


.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {

    color: var(--accent-light);

}


.navbar.scrolled .nav-button {

    border-color: var(--cream);

    color: var(--cream);

}



/* =========================================
   MOBILE MENU BUTTON
========================================= */


@media (max-width: 900px) {
    header.navbar button#menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 8px;
        background: #e8dfd3 !important;
        border: 2px solid #2d241f !important;
        border-radius: 6px;
        position: relative;
        z-index: 9999;
    }

    header.navbar button#menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        min-height: 3px;
        background: #2d241f !important;
        border-radius: 3px;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}


/* ================= ABOUT SECTION UPGRADE ================= */

.section-heading h2 span {
    color: var(--accent);
}

.about-eyebrow,
.about-card-label {
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-text h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 22px;
    color: var(--brown);
}

.about-highlight {
    color: var(--accent);
}

.about-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.about-interests span {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--brown-light);
    font-size: 0.78rem;
    background: rgba(255, 250, 243, 0.6);
}

/* Terminal header */

.terminal-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-header > p {
    flex: 1;
}

.terminal-status {
    color: #83b99b;
    font-family: "DM Mono", monospace;
    font-size: 0.62rem;
}

.terminal-comment {
    color: #a99b8d;
    font-family: "DM Mono", monospace;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.terminal-indent {
    padding-left: 20px;
}

.terminal-purple {
    color: #c9a3e8;
}

.terminal-blue {
    color: #8dc8e8;
}

.terminal-yellow {
    color: #d9c18b;
}

.terminal-last-line {
    margin-top: 20px;
}

/* Education and focus cards */

.about-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.about-info-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 36, 31, 0.08);
}

.about-card-icon {
    font-family: "DM Mono", monospace;
    font-size: 1.8rem;
    color: var(--accent);
    margin: 15px 0;
}

.about-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--brown);
}

.about-info-card > p:not(.about-card-label) {
    color: var(--brown-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

.about-card-tag {
    display: inline-block;
    margin-top: 20px;
    padding: 7px 10px;
    background: var(--cream-dark);
    color: var(--brown);
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.7px;
}

/* Responsive layout */

@media (max-width: 700px) {
    .about-extra-grid {
        grid-template-columns: 1fr;
    }

    .about-info-card {
        padding: 22px;
    }

    .terminal-indent {
        padding-left: 12px;
    }
}

/* ================= PROJECTS SECTION UPGRADE ================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(45, 36, 31, 0.12);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-dark);
    border-bottom: 1px solid var(--border);
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 25px;
}

.project-number {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 13px;
}

.project-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--brown);
    margin-bottom: 12px;
}

.project-content > p:not(.project-number) {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--brown-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tech span {
    padding: 7px 10px;
    background: var(--cream-dark);
    color: var(--brown);
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    border-radius: 3px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.project-links a {
    color: var(--brown);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.project-links a:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        padding: 20px;
    }
}


/* ================= PROJECTS: EDITORIAL LAYOUT ================= */

.projects-intro {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 780px;
    margin-bottom: 32px;
}

.projects-label {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.projects-intro > p:last-child {
    color: var(--brown-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at top right, #d8c3ad, transparent 65%),
        var(--cream-dark);
}

.placeholder-content {
    width: 100%;
    height: 100%;
    min-height: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--brown);
}

.placeholder-content > span:first-child {
    font-family: "DM Mono", monospace;
    font-size: 0.75rem;
}

.placeholder-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 1px;
    font-weight: 600;
}

.placeholder-symbol {
    align-self: flex-end;
    font-size: 2rem;
    color: var(--accent);
}

/* Other projects heading */

.other-projects {
    margin-top: 100px;
}

.other-projects-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.other-projects-heading h3 {
    margin-top: 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--brown);
}

.other-projects-heading h3 span {
    color: var(--accent);
}

.other-projects-note {
    max-width: 240px;
    color: var(--brown-light);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Compact project cards */

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.other-project {
    min-width: 0;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(45, 36, 31, 0.08);
}

.other-project-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.other-project-icon {
    color: var(--accent);
    font-size: 1.7rem;
}

.other-project-number {
    color: var(--brown-light);
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
}

.other-project h4 {
    color: var(--brown);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.other-project > p {
    color: var(--brown-light);
    font-size: 0.84rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.other-project .project-tech {
    margin-top: auto;
    margin-bottom: 18px;
}

.other-project .project-tech span {
    font-size: 0.62rem;
}

.other-project > a {
    padding-top: 14px;
    width: 100%;
    border-top: 1px solid var(--border);
    color: var(--brown);
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.other-project > a:hover {
    color: var(--accent);
}

/* Responsive layouts */

@media (max-width: 900px) {
    .other-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-intro {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .other-projects {
        margin-top: 65px;
    }

    .other-projects-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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


/* ========================================
   EDUCATION SECTION
======================================== */

.education-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 850px;
    margin: 20px auto 0;
    padding: 36px;
    background: #f5efe6;
    border: 1px solid #e3d5c3;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(79, 57, 39, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(79, 57, 39, 0.12);
}

.education-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e5d4bf;
    color: #654b36;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.education-content {
    flex: 1;
}

.education-content h3 {
    margin: 10px 0 6px;
    color: #3e3026;
    font-size: 24px;
    line-height: 1.4;
}

.education-content h4 {
    margin: 0 0 8px;
    color: #826348;
    font-size: 17px;
    font-weight: 600;
}

.education-institution {
    margin: 0 0 14px;
    color: #5f4937;
    font-weight: 600;
}

.education-description {
    margin: 0;
    color: #74685d;
    font-size: 15px;
    line-height: 1.8;
}


/* ========================================
   CERTIFICATIONS INTRO
======================================== */

.certifications-intro {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.certifications-intro > p:last-child {
    color: #74685d;
    font-size: 15px;
    line-height: 1.8;
}


/* ========================================
   CERTIFICATIONS GRID
======================================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.certification-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 28px;
    background: #f8f3ec;
    border: 1px solid #e4d7c7;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(79, 57, 39, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-6px);
    border-color: #b79a7b;
    box-shadow: 0 14px 30px rgba(79, 57, 39, 0.10);
}

.certification-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 28px;
}

.certification-number {
    color: #96816b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.certification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e9dccb;
    color: #654b36;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.certification-category {
    margin: 0 0 10px;
    color: #947353;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.certification-card h3 {
    margin: 0 0 12px;
    color: #3e3026;
    font-size: 19px;
}

/* ================= CONTACT FORM ================= */

.contact-description {
    max-width: 600px;
    line-height: 1.8;
    margin: 20px 0 30px;
}

.contact-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

.contact-social-link {
    color: var(--text-color, #4b3528);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-social-link:hover {
    opacity: 0.7;
}

.contact-form-wrapper {
    max-width: 650px;
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #e5d6c5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.25);
}

.contact-form-wrapper h3 {
    margin: 0 0 25px;
}

.contact-form-wrapper h3 span {
    color: #a47753;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dfcfbd;
    border-radius: 10px;
    background: #fffaf4;
    color: #35271f;
    font: inherit;
    box-sizing: border-box;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a47753;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    cursor: pointer;
}

.contact-form-note {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 20px;
    }

    .contact-links {
        gap: 14px;
    }
}

/* ============ CONTACT SECTION FIX ============ */

.contact-section {
    padding: 100px 8%;
    text-align: center;
}

.contact-section .contact-description {
    max-width: 600px;
    margin: 20px auto 32px;
    line-height: 1.8;
}

.contact-section .contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin: 30px 0 65px;
}

.contact-section .contact-social-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.contact-section .contact-form-wrapper {
    max-width: 620px;
    margin: 0 auto;
    padding: 35px;
    text-align: left;
    border: 1px solid #dfcbb6;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.contact-section .contact-form-wrapper h3 {
    margin: 0 0 25px;
    text-align: left;
    font-size: 25px;
}

.contact-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.contact-section .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #6d594b;
    border-radius: 9px;
    background: #30241e;
    color: #f8eee4;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    border-color: #c9a789;
}

.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder {
    color: #b9a596;
}

.contact-section .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-section .contact-form button {
    align-self: flex-start;
    margin-top: 5px;
    cursor: pointer;
}

.contact-section .contact-form-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.75;
}

@media (max-width: 600px) {
    .contact-section {
        padding: 70px 6%;
    }

    .contact-section .contact-form-wrapper {
        padding: 22px;
    }

    .contact-section .contact-links {
        gap: 16px;
    }
}
