*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;           /* ensures full height */
    width: 100%;            /* ensures full width */
    font-family: 'Jost', sans-serif;
    color: #080807;
    background-color: #080807;
    -webkit-text-size-adjust: 100%;
}

header{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding: 0 50px;
    background-color: #e8e8e3;
 }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand {
    font-weight: 500;
    color: #6b645c;
    text-decoration: none;
    font-size: clamp(20px, 2vw, 32px);
    transition: color 0.3s ease;
}

.brand:hover {
    color: #000;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: clamp(20px, 1vw, 32px);
    margin-left: 20px;
    color: #6b645c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;

}

.nav-links a:hover {
    color: #000;
}

.header-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* key: spreads content vertically */
    margin-top: 0;                 /* remove fixed margin */
    padding-top: 50px;             /* keep your original spacing */
    padding-bottom: 50px;          /* gives bottom breathing room */
}


.title {
    font-size: calc(100vw / 16);  /* adjust number based on character count */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: scaleY(1.2);
    margin: 10px 0 0 0;
    /*font-stretch: 100%;*/
    text-align: center;/* remove extra spacing */
    gap: 10px
}

.bottom-content {
    margin-top: auto;              /* pushes it to the bottom */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    box-sizing: border-box;
}

.left-bottom {
    grid-column: 1 / 2;
    display: flex;
    justify-content: start;
    flex-direction: column; /* stack paragraph and button */
    gap: 20px; /* space between p and button */
}

.left-bottom p {
    font-size: clamp(20px, 1.2vw, 32px);
    color: #333;
    font-weight: 400;
    line-height: 1.5;
    bottom: 100px;
}

.cta-btn {
    display: inline-block;
    padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.8rem, 2vw, 1.2rem);         /* top/bottom | left/right */
    border: 1px solid #000;     /* black border */
    font-size: clamp(16px, 1.2vw, 32px);
    font-weight: 600;
    text-align: center;
    text-decoration: none;      /* remove underline */
    color: #000;                /* text color */
    background-color: transparent;
    border-radius: 50px;        /* makes the button oval */
    transition: all 0.3s ease;  /* smooth hover effect */
    cursor: grabbing;
    width: fit-content;
}

/* Hover effect */
.cta-btn:hover {
    background-color: #000;     /* black background */
    color: #e8e8e3;                /* white text */
}

.right-btm {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    padding: 0 50px 10px 0;
    text-align: right;
    justify-content: end;
    width: 100%;

}

.right-btm .status{
    display: inline-block;
    font-size: clamp(16px, 2vw, 20px);                       /* size of the text */
    font-weight: 500; /* semi-bold / matches inspector */
    color: #393632;                            /* keep the same color */
    font-stretch: 100%;                     /* normal stretching */
    text-transform: uppercase;              /* uppercase letters */
    letter-spacing: normal;                 /* default spacing */
    line-height: 1;                         /* line height */
    width: auto;                            /* box fits text */
    padding: 0;                             /* remove inherited padding */
    margin: 0;                              /* remove inherited margin */
    text-align: right;                      /* right-align text */
    opacity: 1;                             /* fully visible */
    -webkit-font-smoothing: antialiased;   /* smoother font rendering */
}

/* ---------------------- line after each section ---------------------- */

.section {
    position: relative;
    padding: 80px 60px;
    margin: 50px;
    border-bottom: 2px solid #e8e8e3; /* horizontal line */
}

.section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}



/* ---------------------- SERVICES ---------------------- */
.section.services {
    position: relative;
    min-height: 100vh;                 /* full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* content starts from top */
    background-color: #080807;     /* dark background */
    color: #e8e8e3;
    overflow: visible;             /* allow elements to extend beyond section if needed */
    padding: 50px;            /* top/bottom padding */
    box-sizing: border-box;
}

/* Background layer (optional) */
.section.services .section-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: #080807;
    z-index: 0;
}

/* Row container */
.section.services .row.content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 1;
}

/* ---------------------- HEADING ---------------------- */
.section.services h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 30px;
    color: #e8e8e3;
}

/* ---------------------- TEASER LIST ---------------------- */
.specialize-teaser {
    display: flex;
    justify-content: flex-end;       /* align right */
    width: 100%;
    border-bottom: 2px solid #e8e8e3; /* horizontal line */
}

.specialize-teaser ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.specialize-teaser li {
    font-size: clamp(18px, 1.5vw, 32px);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* ---------------------- DETAILED GRID ---------------------- */
.specialize-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;  /* left heading 1/3, right description 2/3 */
    gap: 20px 40px;                  /* row gap, column gap */
    margin-top: 50px;
}

.specialize-item {
    display: contents;               /* allow h3 and p to participate in grid directly */
}

/* Left heading */
.specialize-item h3 {
    grid-column: 1 / 2;
    justify-self: start;
    font-size: clamp(20px, 2vw, 32px);
    margin: 10px 0;
    color: #e8e8e3;
}

/* Right description */
.specialize-item p {
    grid-column: 2 / 3;
    align-self: center;
    justify-content: center;
    font-size: clamp(16px, 1.2vw, 28px);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Right-side skills list */
.specialize-item ul {
    grid-column: 2 / 3;
    justify-self: start;
    list-style: decimal;
    padding-left: 30px;
    margin-top: 10px;
    font-size: clamp(16px, 1.2vw, 28px);
    line-height: 1.5;
}

.specialize-item ul li {
    margin-bottom: 8px;
}

/* ---------------------- RESPONSIVE ---------------------- */
@media screen and (max-width: 900px) {
    .specialize-grid {
        grid-template-columns: 1fr; /* stack left/right on small screens */
        gap: 20px 0;
    }

    .specialize-item h3,
    .specialize-item p,
    .specialize-item ul {
        grid-column: 1 / 2;
    }

    .specialize-teaser {
        justify-content: flex-start; /* teaser list aligns left on small screens */
    }
}

/* ---------------------- SKILLS ---------------------- */

.section.skills {
    background-color: #080807;
    color: #e8e8e3;
    padding: 20px 60px;
    gap: 10px 40px;
}

.section.skills h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 40px;
    font-weight: 700;
    color: #e8e8e3;
    /* Center in the grid */
    grid-column: 1 / -1;      /* span all columns */
    justify-self: left;     /* center horizontally */
    text-align: center;
}

/* Grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px 40px;
}

/* Skills item */
.skills-item {
    display: contents;
}
/* Accordion content visible by default */
.accordion-content {
    max-height: 1000px; /* high enough to show full content */
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}

.skills-item:not(.active) .accordion-content {
    max-height: 0;
    opacity: 0;
}

.accordion-header {
    cursor: pointer;
    font-size: clamp(20px, 2vw, 32px);
    margin: 10px 0;
    color: #e8e8e3;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: #fff;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }

    .skills-item h3,
    .accordion-content {
        grid-column: 1 / 2;
    }
}

/* ---------------------- PROJECTS ---------------------- */

.section.projects {
    background-color: #080807;
    color: #e8e8e3;
    padding: 80px 60px;
    border-bottom: 1px solid #444;
}

.section.projects h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
}

/* Grid layout for projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Individual project card */
.project-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: clamp(20px, 2vw, 28px);
    margin-bottom: 15px;
    color: #e8e8e3;
}

.project-card p {
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.project-tech {
    font-size: clamp(14px, 1.1vw, 16px);
    color: #ccc;
    margin-bottom: 15px;
    font-style: italic;
}


/* Links */
.project-links {
    display: flex;
    flex-direction: column;  /* two lines */
    gap: 12px;               /* spacing between buttons */
    margin-top: auto;        /* pushes links to bottom of card (nice UX) */
}

.project-links a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: fit-content;      /* button width fits text */
}

.project-links a:hover {
    background-color: #fff;
    color: #080807;
}

/* Hover effect on card */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------  CERTIFICATIONS ---------------------------------------------*/

.section.certifications {
    background: #e8e8e3;
    border-radius: 25px;
    max-width: 1200px;
    margin: 50px auto;             /* ensure spacing similar to other sections */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 80px 60px;
    border-bottom: 1px solid #444;
}

.section.certifications h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
    color: #333;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-badge {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}


/*------------------------------EXPERIENCE AND EDUCATION------------------------------------------------*/

/* Section background and heading */
.section.experience-education {
    background-color: #080807;
    color: #e8e8e3;
    padding: 60px 0;
}

.section.experience-education h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
}

/* Timeline container */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
}

/* Central vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #6b645c;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline item */
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

/* Left side */
.timeline-item.left {
    left: 0;
}

/* Right side */
.timeline-item.right {
    left: 50%;
}

/* Timeline icon */
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #6b645c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1;
}

/* Position icon based on side */
.timeline-item.left .timeline-icon {
    right: -20px;
}

.timeline-item.right .timeline-icon {
    left: -20px;
}

/* Content box */
.timeline-content {
    padding: 20px 30px;
    background-color: #1e1c1b;
    position: relative;
    border-radius: 8px;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(50px);
}

/* Arrow to central line */
.timeline-item.left .timeline-content::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #1e1c1b;
}

.timeline-item.right .timeline-content::after {
    content: "";
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #1e1c1b transparent transparent;
}

/* Active animation */
.timeline-item.active .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline date */
.timeline-date {
    font-size: clamp(14px, 1vw, 18px);
    color: #a9a6a3;
    margin-bottom: 10px;
}

/* Headings */
.timeline-content h3 {
    font-size: clamp(20px, 2vw, 28px);
    margin-bottom: 10px;
}

/* Paragraphs */
.timeline-content p {
    font-size: clamp(14px, 1.2vw, 18px);
    margin-bottom: 8px;
}

.timeline-content p strong {
    font-weight: 600;
}

/* Bullet points */
.timeline-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 0.5rem 0 0 0;
    color: #e8e8e3;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #ccc;
}

.timeline-content ul li::marker {
    color: #6b645c; /* matches timeline icon color */
}

/* Technologies styling */
.timeline-content p:last-child {
    margin-top: 1rem;
    font-size: clamp(13px, 1vw, 15px);
    color: #b0b0b0;
    font-style: italic;
}

/* Hover effect for content */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive */
@media screen and (max-width: 900px) {

    .timeline-content {
        opacity: 1 !important;
        transform: none !important;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 25px;
        margin-bottom: 40px;
    }
    .timeline-item.right {
        left: 0;
    }
    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 0;
        right: auto;
    }
    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::after {
        left: 20px;
        border-color: transparent transparent transparent #1e1c1b;
    }
}

/*-------------------------------About Me-----------------------------------------------*/

.section.about-me {
    background-color: #080807;
    color: #e8e8e3;
    padding: 80px 60px;
}

.section.about-me h2 {
    font-size: clamp(32px, 5vw, 64px);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.about-me-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;  /* responsive stacking */
    max-width: 1200px;
    margin: 0 auto;
}

.about-me-text {
    flex: 1 1 500px;
    font-size: clamp(16px, 1.2vw, 22px);
    line-height: 1.6;
    color: #ccc;
}

.about-me-text p {
    margin-bottom: 20px;
}

.about-me-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    border: 2px solid #6b645c;
    object-fit: cover;
}

/*-------------------------------About Me-----------------------------------------------*/

.section.contact {
    background-color: #080807;
    color: #e8e8e3;
    padding: 80px 60px;
}

.section.contact h2 {
    text-align: center;
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 50px;
    font-weight: 700;
}

.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* responsive stacking */
    justify-content: center;
}

.contact-info {
    flex: 1 1 350px;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.8;
}

.contact-info a {
    color: #e8e8e3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #6b645c;
}

.contact-social {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.contact-social a {
    color: #e8e8e3;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e8e8e3;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: #e8e8e3;
    color: #080807;
}

.contact-form {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #6b645c;
    background-color: #1e1c1b;
    color: #e8e8e3;
    font-size: clamp(16px, 1.2vw, 18px);
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e8e8e3;
}
.contact-form button.cta-btn {
    background-color: #e8e8e3;   /* light background so it stands out */
    color: #1e1c1b;              /* dark text */
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover & click effect */
.contact-form button.cta-btn:hover {
    background-color: #cfcfc8;  /* slightly darker on hover */
    transform: translateY(-2px);
}

.contact-form button.cta-btn:active {
    transform: translateY(0);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}


/*-------------------------------Footer-----------------------------------------------*/

.footer {
    background-color: #080807; /* dark background */
    color: #e8e8e3;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #6b645c;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer menu (nav links) */
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-menu a {
    color: #e8e8e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #6b645c;
}

/* Copyright */
.footer-copy {
    font-size: clamp(12px, 1vw, 14px);
    margin-top: 15px;
    opacity: 0.7;
}

@media (max-width: 600px) {
    html, body { overflow-x: hidden; }

    header { padding: 0 16px; min-height: 100svh; height: auto; }

    .header-text-container {
        margin-top: 20px;
    }

    .bottom-content {
        position: static;
        margin-top: 20px;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 24px;
    }

    .right-btm { padding: 0; text-align: left; }

    .title { font-size: clamp(28px, 9vw, 44px); line-height: 1.1; transform: none }

    .section { margin: 0; padding: 48px 16px; }

    .left-bottom {
        width: 100%;
    }

    .left-bottom p {
        width: 100%;
        max-width: 100%;
        white-space: normal;        /* allow wrapping */
        word-break: break-word;     /* prevent overflow */
        overflow-wrap: anywhere;    /* force wrap on long strings */
        font-size: 16px;
        line-height: 1.5;
    }
}


@media (max-width: 600px) {

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between; /* brand left, links right */
        height: auto;
        padding: 12px 0;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;          /* allow wrapping */
        justify-content: flex-end;/* keep links on the right */
        gap: 10px;
        max-width: 70%;           /* prevents overflow */
    }

    .nav-links a {
        margin-left: 0;           /* remove desktop spacing */
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;      /* keep words intact */
    }

    .brand {
        font-size: 18px;
    }
}
