/* CSS VARIABLES & RESET */
:root {
    --bg-light: #efefec;
    --bg-dark: #050505;
    --text-dark: #171717;
    --text-muted: #6b665f;
    --text-soft: #d8d6cf;
    --border-dark: rgba(216, 214, 207, 0.25);

    --btn-bg: #3c3934;
    --btn-text: #ffffff;
    --counter-color: #b8b6af;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    /* Changed to dark for realistic 3D scaling depth */
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Animate scrolling for nav links */
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #3a3835;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* PRELOADER */
.preloader-cloth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 9999;
    pointer-events: none;
    /* so it doesn't block clicks after sliding up */
}

/* OVERLAY MENU & FLOATING BUTTON */
.floating-menu-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d1cfc8;
    /* Light beige matching screenshot */
    border: none;
    z-index: 100;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.floating-menu-btn:hover {
    transform: scale(0.9);
}

.floating-menu-btn .line {
    width: 24px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Ignore clicks when hidden */
}

.overlay-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    /* Dark transparent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
}

.overlay-menu-content {
    position: relative;
    width: 50%;
    margin-left: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 80px;
    transform: translateX(100%);
    /* Start off-screen right */
}

/* Graphic Behind Close Button */
.overlay-menu-content::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.close-menu-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 201;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.close-menu-btn:hover {
    transform: scale(0.9);
    border-color: #fff;
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 1;
}

.overlay-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 5vw, 60px);
    color: #e0ded7;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    letter-spacing: -1px;
    position: relative;
    transform-origin: left center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.overlay-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.overlay-link:hover {
    color: #fff;
    transform: scale(1.05);
}

.overlay-link:hover::after {
    width: 100%;
}

.overlay-footer {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    z-index: 1;
}

.overlay-email-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.overlay-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    letter-spacing: 1px;
}

.overlay-email {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 16px;
    color: #e0ded7;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.overlay-email:hover {
    color: #fff;
    transform: scale(1.05);
}

.overlay-socials {
    display: flex;
    gap: 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
}

.overlay-socials a {
    color: #e0ded7;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.overlay-socials a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* HERO SECTION */
.hero-section {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 24px;
    overflow: hidden;
    /* Ensure no overflow causes scroll */
}

/* Header */
.hero-header {
    padding: 0 50px;
    width: 100%;
    font-size: 19px;
    font-weight: 500;
    color: #68645d;
    /* From prompt slightly different grey or var(--text-muted) */
    z-index: 10;
}

.header-right {
    gap: 24px;
}

.header-right a {
    position: relative;
    transition: color 0.3s ease;
}

.header-right a:hover {
    color: var(--text-dark);
}

/* Main Hero Area */
.hero-main {
    flex-grow: 1;
    position: relative;
    padding: 0 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.hero-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    font-size: clamp(40px, 11vw, 190px);
    letter-spacing: -5px;
    line-height: 0.85;
    text-transform: uppercase;
    white-space: nowrap;
    margin: clamp(30px, 8vh, 80px) 0 clamp(20px, 4vh, 40px) 0;
    z-index: 2;
    position: relative;
}

/* Three Part Composition below heading */
.hero-content-row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    margin-top: 0;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    min-height: 0;
}

/* Left Intro */
.hero-intro {
    max-width: 500px;
    align-self: start;
    padding-bottom: 40px;
    min-width: 0;
}

.arrow-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.hero-intro p {
    font-size: clamp(20px, 2vw, 30px);
    color: var(--text-muted);
    line-height: 1.35;
    font-weight: 500;
    margin-bottom: 40px;
}

.btn-contact {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 24px 42px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--text-dark);
    transform: translateY(-3px);
    color: var(--btn-text);
}

.btn-contact i {
    margin-left: 8px;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-contact:hover i {
    transform: rotate(0deg);
}

/* Center Image */
.hero-image-wrapper {
    position: relative;
    width: clamp(200px, 20vw, 260px);
    height: calc(100% - 40px);
    z-index: 1;
    margin: 0 20px 35px 20px;
    min-height: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
}

/* Right Availability */
.hero-availability {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: end;
    padding-bottom: 40px;
    min-width: 0;
}

.small-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.large-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 8vw, 115px);
    color: var(--btn-bg);
    line-height: 0.9;
}


/*
   SERVICES SECTION
   */
.services-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 150px 0;
    position: relative;
    z-index: 10;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.services-section .container-fluid {
    position: relative;
    z-index: 1;
}

.sprinkles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.services-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(42px, 8vw, 110px);
    margin-bottom: 40px;
    color: var(--text-soft);
}

.services-intro {
    max-width: 850px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 120px;
    font-weight: 500;
}

.services-cards-container {
    position: relative;
    padding-bottom: 50px;
}

.service-card {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100vh;
}

.service-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    color: var(--text-muted);
    flex: 0 0 15%;
}

.service-content {
    flex: 0 0 80%;
    max-width: 1000px;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 88px);
    margin-bottom: 30px;
    color: var(--text-soft);
}

.service-description {
    font-size: 22px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 750px;
}

.service-skills {
    width: 100%;
}

.skill-row {
    font-size: 24px;
    font-weight: 500;
    padding: 20px 0;
    border-top: 1px solid var(--border-dark);
    color: var(--text-soft);
}

.skill-row:last-child {
    border-bottom: 1px solid var(--border-dark);
}

/*
   SKILLS SECTION
   */
.skills-section {
    background-color: var(--bg-light);
    min-height: 100vh;
    /* Allow it to grow naturally to fit both blocks */
    margin: -100vh 0 0 0;
    /* Pulls up by 100vh to overlap the end of the pinned section */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
    padding: 150px 55px;
    /* Generous padding for top and bottom */
    display: flex;
    flex-direction: column;
    /* Stack the wrappers vertically */
    justify-content: center;
    gap: 180px;
    /* Space between the Skills and About wrappers */
    position: relative;
    z-index: 5;
}

.skills-wrapper {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    justify-content: space-between;
}

.skills-left {
    width: 55%;
    display: flex;
    align-items: center;
}

.skills-title-large {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    font-size: clamp(45px, 6vw, 120px);
    /* Mathematically scaled to never overlap the right side */
    line-height: 0.95;
    letter-spacing: -5px;
    margin: 0;
}

.skills-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.skills-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    font-size: clamp(70px, 8vw, 150px);
    line-height: 0.9;
    letter-spacing: -5px;
    margin-bottom: 70px;
}

.skills-grid {
    display: flex;
    gap: clamp(15px, 4vw, 60px);
    /* Dynamically scales down if space gets tight */
}

.skills-column {
    flex: 1;
}

.skills-column-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2vw, 28px);
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 30px;
}

.skills-list div {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 1.5vw, 25px);
    color: #4a4845;
    line-height: 1.65;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.skills-list div:hover {
    color: var(--text-dark);
}

/*
   SELECTED WORK SECTION
   */
.work-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 0 0 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.work-section .container-fluid {
    position: relative;
    z-index: 1;
}

.work-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(42px, 8vw, 110px);
    margin-bottom: 40px;
    color: var(--text-soft);
}

.work-intro {
    max-width: 900px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 120px;
    font-weight: 500;
}

.work-showcase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100vh;
    /* Pinned area */
}

.work-left {
    flex: 0 0 35%;
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
}

.work-counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(130px, 20vw, 330px);
    color: var(--counter-color);
    line-height: 1;
}

.work-right {
    flex: 0 0 60%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.project-wrapper {
    width: 100%;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.project-images {
    position: relative;
    width: 100%;
    flex-grow: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 0;
}

.project-img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
    clip-path: inset(100% 0% 0% 0%);
    /* Hidden by default */
    z-index: 1;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.project-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.project-img.active {
    clip-path: inset(0% 0% 0% 0%);
    z-index: 2;
}

.project-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.project-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom of title with pills */
    flex-shrink: 0;
}

.details-left {
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 15px;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #a19f99;
    margin-bottom: 5px;
    font-weight: 400;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 52px);
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.details-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.project-pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.type-pill {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #e0ded7;
    background-color: transparent;
}

.year-pill {
    background-color: #a19f99;
    color: #050505;
    border: none;
}

/*
   ABOUT CONTENT
   */

.about-wrapper {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    gap: 100px;
}

.about-left {
    flex: 0 0 35%;
}

.about-img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 12px;
}

.about-right {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1.3;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.about-details {
    display: flex;
    gap: 60px;
}

.about-label {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #6b6965;
    letter-spacing: 2px;
    flex: 0 0 auto;
    margin-top: 5px;
}

.about-text {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #4a4845;
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
}

.about-text p {
    margin-top: 0;
    margin-bottom: 30px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/*
   CONTACT SECTION
   */
.contact-section {
    background-color: var(--bg-dark);
    min-height: 100vh;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 6;
    /* Needs to be higher than skills-section */
}

.contact-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #e0ded7;
    /* Light text for dark background */
    font-size: clamp(50px, 9vw, 150px);
    line-height: 0.85;
    letter-spacing: -4px;
    text-align: center;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.contact-form-container {
    background-color: #1e1d1b;
    /* Slightly lighter than pure dark background */
    border-radius: 20px;
    padding: 50px;
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #e0ded7;
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
}

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

.form-input,
.form-textarea {
    width: 100%;
    background-color: #2a2825;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 18px 24px;
    color: #e0ded7;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.form-input:focus,
.form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    background-color: #e0ded7;
    color: #050505;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

/*
   FOOTER SECTION
   */
.footer-section {
    background-color: #eae9e3;
    /* Light beige/grey matching the screenshot */
    padding: 100px 55px 80px 55px;
    color: #333;
    position: relative;
    z-index: 7;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.arrow-col {
    justify-content: flex-end;
    align-items: flex-end;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

.footer-time {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-display {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    color: #555;
}

.back-to-top {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d1cfc8;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #000;
}

.back-to-top:hover {
    background-color: #c0beb6;
    transform: translateY(-5px);
}

/*
   RESPONSIVE DESIGN
   */

/* 1200px */
@media (max-width: 1200px) {
    .skills-grid {
        gap: 30px;
    }
}

/* 992px */
@media (max-width: 992px) {
    .service-card {
        flex-direction: column;
        padding: 40px 0;
    }

    .service-number {
        margin-bottom: 20px;
    }

    .service-content {
        flex: 1 1 100%;
    }

    .skills-wrapper {
        flex-direction: column;
    }

    .skills-left {
        width: 100%;
        margin-bottom: 60px;
    }

    .skills-title-large {
        padding-left: 0;
        font-size: clamp(48px, 12vw, 80px);
        letter-spacing: -2px;
    }

    .skills-right {
        width: 100%;
        padding-top: 0;
    }

    .skills-grid {
        gap: 30px;
        flex-wrap: wrap;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .about-left {
        flex: 0 0 100%;
    }

    .about-img {
        height: 50vh;
    }

    .about-right {
        flex: 0 0 100%;
    }

    .about-details {
        flex-direction: column;
        gap: 20px;
    }

    .work-showcase {
        flex-direction: column;
        height: 100vh;
        gap: 20px;
        padding: 80px 0 40px 0;
    }

    .work-left {
        flex: 0 0 auto;
        justify-content: center;
        width: 100%;
    }

    .work-counter {
        font-size: clamp(80px, 15vw, 150px);
        line-height: 0.8;
    }

    .work-right {
        flex: 1;
        width: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .project-wrapper {
        height: 100%;
        width: 100%;
    }
}

/* 768px */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100dvh;
        height: 100dvh;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .hero-header {
        padding: 0 20px;
        align-items: flex-start !important;
    }

    .header-left .role-text {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    .header-nav {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .header-nav .nav-link {
        font-size: 14px;
        color: #666;
        margin-left: 0;
    }

    .hero-main {
        padding: 0 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .hero-heading {
        margin: clamp(40px, 8vh, 60px) 0 0 0;
        font-size: 15.5vw !important;
        line-height: 0.85;
        letter-spacing: -2px;
    }

    .mobile-hero-grid {
        display: grid !important;
        grid-template-columns: 130px 1fr;
        grid-template-rows: auto 1fr;
        gap: 20px;
        width: 100%;
        margin-top: 15px;
        flex: 1;
    }

    .hero-intro {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .hero-intro p {
        font-size: 14px;
        line-height: 1.4;
        max-width: 90%;
        margin-bottom: 20px;
        color: #666;
    }

    .hero-intro {
        padding-bottom: 0;
    }

    .btn-contact {
        padding: 12px 24px;
        font-size: 13px;
    }

    .hero-image-wrapper {
        grid-column: 1 / 2;
        grid-row: 2;
        align-self: end;
        width: 120px;
        height: 140px;
        margin: 0;
        margin-bottom: 10px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .hero-availability {
        grid-column: 2 / 3;
        grid-row: 2;
        align-self: end;
        text-align: right !important;
        margin: 0 !important;
        margin-bottom: 10px !important;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-availability .small-text {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 5px;
        text-transform: uppercase;
        margin-left: auto;
        color: #666;
    }

    .hero-availability .large-text {
        font-size: 36px;
        line-height: 0.9;
    }

    .project-details {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .services-cards-container {
        /* On small screens, we still use pinning logic */
        position: relative;
    }

    .service-card {
        position: relative;
        height: auto;
        min-height: 100dvh;
        justify-content: center;
    }

    .skills-section {
        padding: 80px 24px;
    }

    .skills-title-large {
        font-size: clamp(48px, 15vw, 80px);
    }

    .skills-heading {
        font-size: clamp(58px, 18vw, 90px);
        margin-bottom: 40px;
    }

    .skills-grid {
        flex-direction: column;
        gap: 40px;
    }

    .skills-column-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .skills-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .skills-list div {
        font-size: 15px;
        padding: 8px 18px;
        border: 1px solid rgba(74, 72, 69, 0.3);
        border-radius: 999px;
        line-height: 1;
        white-space: nowrap;
    }

    .about-headline {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-text {
        font-size: 18px;
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .form-heading {
        font-size: 20px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-time {
        margin-top: 50px;
    }

    .arrow-col {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .floating-menu-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .close-menu-btn {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .overlay-menu-content {
        width: 100%;
        padding: 20px;
    }

    .overlay-footer {
        bottom: 30px;
    }
}

/* 576px */
@media (max-width: 576px) {
    .btn-contact {
        padding: 18px 32px;
        font-size: 14px;
    }

    .skill-row {
        font-size: 18px;
    }

    .project-images {
        height: clamp(300px, 80vw, 380px);
    }
}