/* ------------------------------------------- */
/* GLOBAL STYLES & TRANSITION SETUP */
/* ------------------------------------------- */
:root {
    --black: #000000;
    --white: #ffffff;
    --neon-pink: #ff4d4d;
    --text-color: var(--white);
    --bg-color: var(--black);
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

/* ------------------------------------------- */
/* HEADER & NAVIGATION (UNCHANGED) */
/* ------------------------------------------- */
header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    z-index: 100;
}

header h2 {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5em;
    color: var(--white);
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    opacity: 0.8;
}

nav a:hover {
    color: var(--neon-pink);
    opacity: 1;
}

/* ------------------------------------------- */
/* SECTION BASE STYLES (UNCHANGED) */
/* ------------------------------------------- */
.section {
    min-height: 100vh;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;

    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------- */
/* PROJECT SECTION STYLES (UPDATED: Removed initial opacity/transform) */
/* ------------------------------------------- */
/* SECTION */
/* LIGHT ABOUT SECTION (Behance style) */
.about-section-light {
    background-color: #f5f4f0;
    color: #111;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.about-container-light {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hello-text {
    font-family: var(--font-main);
    font-size: 8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    color: #111;
    letter-spacing: -3px;
}

.name-row {
    display: inline-flex;
    align-self: flex-start;
    /* Prevents container from stretching, hugging the name text exactly */
    align-items: center;
    position: relative;
    margin-bottom: 30px;
}

.name-text {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.about-me-script {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #555;
    position: absolute;
    left: calc(100% + 35px);
    /* Spaced perfectly next to your name */
    top: -16px;
    /* Shifted slightly lower for perfect vertical alignment */
    white-space: nowrap;
    transform-origin: left center;
    transform: rotate(-10deg);
    /* Beautiful handwritten slant */
}

.about-me-arrow {
    position: absolute;
    width: 60px;
    /* Perfect scale for the local arrow asset */
    height: auto;
    top: 35px;
    left: 15px;
    /* Adjusted left slightly to perfectly align the mirrored loop */
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: multiply;
    /* Safely blends out any white background canvas pixels */
    transform: scaleX(-1);
    /* Flips the arrow horizontally to point down-left towards your greeting! */
}

.greeting {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 600px;
    margin-bottom: 50px;
}

.hire-card {
    background: #1e1e1e;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hire-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hire-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hire-info span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.hire-btn {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.hire-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.about-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-content img {
    width: 100%;
    max-width: 600px;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Blends the sketch's beige background seamlessly with the section background */
}

@media (max-width: 900px) {
    .about-container-light {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hello-text {
        font-size: 5rem;
    }

    .name-row {
        justify-content: center;
    }

    .about-me-script {
        right: 0;
        top: -40px;
    }

    .hire-card {
        margin: 0 auto;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 25px;
    }
}

/* About Details Grid (Education & Certifications) */
.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

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

.details-title {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 900;
    color: #111;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 77, 77, 0.3);
    transition: border-left-color 0.3s ease;
}

.details-item:hover {
    border-left-color: var(--neon-pink);
}

.details-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details-name {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.pursuing-badge {
    background: rgba(255, 77, 77, 0.1);
    color: var(--neon-pink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.details-sub {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustment for About details */
@media (max-width: 768px) {
    .about-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* PROJECT SECTION STYLING */
#portfolio {
    background: #000;
    /* Black background like the video */
    color: white;
    padding: 100px 5%;
}

.project-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-row:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.project-row.active {
    background: #080808;
}

/* Header with Client Info & Button */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    width: 100%;
}

.project-details {
    display: flex;
    align-items: center;
    gap: 50px;
}

.project-index {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Arial Black', sans-serif;
    opacity: 0.8;
    color: #555;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s;
}

.project-row:hover .project-index {
    color: var(--neon-pink);
    transform: scale(1.08);
}

.client-info .client-name {
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    opacity: 0.5;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-row:hover .client-name {
    transform: translateX(8px);
}

.client-info .project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 5px;
    color: #ccc;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s;
}

.project-row:hover .project-title {
    color: #fff;
    transform: translateX(8px);
}

.project-images-wrapper {
    height: 0;
    opacity: 0;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    transform: translateY(20px);
    overflow: hidden;
}

.project-images-wrapper img {
    flex: 1;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-images-wrapper img:hover {
    transform: scale(1.015);
}

/* Button Styling */
.magnetic-btn {
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    box-shadow: none;
}

.magnetic-btn:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    transform: scale(1.05);
}

.project-row.active .magnetic-btn {
    color: #fff !important;
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
}

/* Hover Cursor Floating Preview container */
#projectFloatPreview {
    position: fixed;
    width: 320px;
    height: 180px;
    top: 0;
    left: 0;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transform: scale(0);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 77, 77, 0.25);
    will-change: transform, opacity;
}

/* ------------------------------------------- */
/* ABOUT, SKILLS, TESTIMONIALS & REST (UNCHANGED) */
/* ------------------------------------------- */
.about-container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
    align-items: flex-start;
    padding-top: 20px;
}

.about-image-wrapper {
    flex: 0 0 400px;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 350px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
    display: block;
    margin: 0 auto 20px auto;
}

.about-content {
    flex: 1;
    background: #090909;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    align-self: stretch;
}

.about-content h3 {
    font-family: var(--font-main);
    color: var(--neon-pink);
    font-size: 2em;
    margin-top: 0;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .about-image-wrapper {
        flex: none;
    }
}

/* SKILLS SLIDER STYLES (UNCHANGED) */
#skills {
    min-height: 100vh;
    padding: 40px 0;
    justify-content: flex-start;
}

#skills h2 {
    margin-top: 80px;
    margin-bottom: 30px;
}

.skills-wrapper {
    width: 100%;
    overflow-x: scroll;
    display: flex;
    gap: 40px;
    padding: 20px 40px 60px 40px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.skills-wrapper::-webkit-scrollbar {
    display: none;
}

.skill-card {
    flex: 0 0 350px;
    height: 450px;
    position: relative;
    background-color: transparent;
    scroll-snap-align: center;
    cursor: pointer;
    transition: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    will-change: transform;
}

.skill-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.skill-card-content {
    position: relative;
    padding: 10px;
    color: var(--white);
    background: transparent;
    text-align: center;
    z-index: 2;
}

.skill-card-content h3 {
    font-family: var(--font-main);
    font-size: 1.8em;
    margin: 5px 0;
    color: var(--white);
}

.skill-card img.background-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    position: relative;
    opacity: 0.9;
    transition: transform 0.4s;
    z-index: 1;
}

.skill-card:hover img.background-image {
    transform: scale(1.1);
}

/* Backdrop for catching outside-click to collapse card */
#skillBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hide the old detail panel — no longer used */
/* Old detail panel styles removed — now using GSAP hover-to-center on the card itself */
.skill-detail-panel {
    display: none !important;
}

/* Skill Zoom Panel — Split layout: Left (Character) and Right (Glassmorphic details card) */
#skillZoomPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 600;
    pointer-events: none;
    padding: 60px;
}

.zoom-panel-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 80px;
    pointer-events: all;
}

.zoom-left {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#skillZoomImg {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.75));
    transform-style: preserve-3d;
    will-change: transform;
}

.zoom-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    text-align: left;
    color: #fff;
    padding: 50px 40px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateX(30px);
    will-change: transform, opacity;
}

.zoom-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 12px 0;
}

.zoom-title {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.zoom-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}

/* Premium Floating Close (X) Button */
#skillZoomClose {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: all;
    z-index: 700;
    line-height: 0;
    padding-bottom: 4px;
    /* Perfectly centers crosshair font glyph */
}

#skillZoomClose:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 25px rgba(255, 77, 77, 0.65);
}

/* Mobile Responsive Adapters for Skill Zoom */
@media (max-width: 900px) {
    #skillZoomPanel {
        padding: 30px 20px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .zoom-panel-content {
        flex-direction: column;
        gap: 30px;
        padding-top: 60px;
    }

    .zoom-left {
        flex: none;
        width: 100%;
    }

    #skillZoomImg {
        max-width: 280px;
    }

    .zoom-right {
        flex: none;
        padding: 30px 24px;
        width: 100%;
        text-align: center;
        transform: translateY(30px);
    }

    .zoom-title {
        font-size: 2rem;
    }

    #skillZoomClose {
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }
}

/* ------------------------------------------- */
/* REST OF STYLES (UNCHANGED) */
/* ------------------------------------------- */
.hero h1 {
    font-family: var(--font-main);
    font-size: 8vw;
    margin: 0;
    line-height: 0.9;
    font-weight: 900;
    text-shadow: 0 0 10px var(--neon-pink);
}

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

.hero h1::after {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.section h2 {
    font-family: var(--font-main);
    font-size: 6vw;
    margin-bottom: 50px;
    letter-spacing: 5px;
    -webkit-text-stroke: 1px var(--white);
    color: transparent;
    text-align: center;
}

.hero {
    padding-top: 30px;
}

.hero-image-wrapper {
    width: 44%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    animation: floatAndShake 8s ease-in-out infinite;
}

.hero-character-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(255, 77, 77, 0.35));
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

@keyframes floatAndShake {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(0.5deg);
    }

    50% {
        transform: translateY(0px) rotate(-0.5deg);
    }

    75% {
        transform: translateY(10px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.magnetic-btn {
    padding: 15px 40px;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
    transition: background-color 0.3s;
    cursor: pointer;
    position: relative;
}

.project-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--neon-pink);
}

/* CONTACT SECTION */
#contact {
    background: #000;
    /* Matching the black theme */
    color: #fff;
    padding: 100px 10%;
    text-align: left;
}

#contact h2 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.contact-container {
    display: flex;
    gap: 100px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-bottom: 40px;
}

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

/* Modern Input Fields */
.form-group {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    transition: border-color 0.3s;
}

.form-group:focus-within {
    border-bottom-color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 10px 0;
    outline: none;
    font-family: inherit;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
}

/* Theme-matching Magnetic Button */
.send-btn {
    align-self: flex-start;
    background: #fff;
    color: #000;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    margin-top: 20px;
}

.send-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* SERVICES SECTION STYLES */
.services-container {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.services-image {
    flex: 0 0 580px;
    text-align: right;
    position: relative;
    z-index: 10;
    margin-right: -130px;
    /* Mathematically verified offset to completely eliminate transparent padding on the PNG and touch the text start */
}

.services-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.12) 0%, rgba(255, 77, 77, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(20px);
}

.services-image img {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
    display: block;
    margin-left: auto;
    /* Aligns the block image perfectly to the right side of the flex item */
}

.services-image img:hover {
    transform: scale(1.03) translateY(-6px);
}

.services-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 15px;
    /* Tiny, tight padding so the text starts right next to his hand */
    position: relative;
}

.service-item {
    background: transparent;
    border-radius: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.service-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    padding-left: 16px;
    border-top-color: var(--neon-pink);
}

.service-item:hover .service-num {
    color: var(--neon-pink);
}

.service-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-main);
    min-width: 36px;
    padding-top: 4px;
    transition: color 0.3s ease;
}

.service-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--white);
    letter-spacing: 0.3px;
}

.service-body p {
    line-height: 1.65;
    opacity: 0.55;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 900px) {
    .services-container {
        flex-direction: column;
        gap: 40px;
    }

    .services-image {
        flex: none;
        margin-right: 0;
        /* Reset negative margin on mobile to prevent clipping/overflow */
        text-align: center;
        /* Center the character */
    }

    .services-image img {
        margin: 0 auto;
        /* Center block image perfectly on mobile */
    }

    .services-list {
        gap: 20px;
    }

    .service-item {
        padding: 20px;
    }
}

footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: var(--black);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    z-index: 90;
    border-top: 1px solid #1a1a1a;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 15px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 12vw;
    }

    .section h2 {
        font-size: 10vw;
    }

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

    .about-right {
        grid-template-columns: 1fr;
    }

    .about-box.full {
        grid-column: span 1;
    }

    .contact-container {
        flex-direction: column;
        gap: 50px;
    }

    .project-images-wrapper {
        flex-direction: column;
        height: auto !important;
    }

    .project-images-wrapper img {
        height: auto;
    }
}