/* Font Declarations */
@font-face {
    font-family: 'Handelson-One';
    src: url('./handelson-1/Handelson-One.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variables */
:root {
    --dark-bg: #242038;
    --light-bg: #f6f6f6be;
    --text-color: #242038;
    --primary-color: #E6CDAF;
    --transition-speed: 0.3s;
    --main-font: 'Chau Philomene One', sans-serif;
    --title-font: 'Handelson-Three', 'Chau Philomene One', sans-serif;
    --light-font: 'Handelson-One', 'Chau Philomene One', sans-serif;
    --space-4x: 4rem;
    --space-2x: 2rem;
    --space-8x: 8rem;
    --container-padding: 4rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
    color: var(--text-color);
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    scroll-behavior: smooth;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(85, 85, 85, 0.5);
    border-radius: 20px;
    border: 4px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(85, 85, 85, 0.7);
}

/* Common Section Styles */
section {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    padding: 10px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    gap: 40px;
    transition: all 0.3s ease;
}

.header.active {
    background: rgba(231, 209, 177, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(231, 209, 177, 0.08);
    border-bottom: 1px solid rgba(231, 209, 177, 0.2);
}

.navbar {
    position: relative;
    display: flex;
    /* padding: 4px */
    align-items: center;
}

.navbar a {
    font-size: 23px;
    padding: 2px 24px;
    transition: var(--transition-speed);
    font-weight: 400;
    position: relative;
    color: var(--dark-bg);
    line-height: 1.2;
}

/* Separator lines */
.navbar a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: var(--dark-bg);
    opacity: 0.2;
}

.header.active .navbar a:not(:last-child)::after {
    background: var(--dark-bg);
    opacity: 0.15;
}

/* Animated underline */
.navbar a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 24px;
    right: 24px;
    height: 2px;
    background-color: var(--dark-bg);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.header.active .navbar a::before {
    background-color: var(--dark-bg);
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.contact {
    padding: 4px 20px;
    background-color: var(--dark-bg);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: absolute;
    right: 40px;
}

.header.active .contact {
    background-color: var(--dark-bg);
    color: var(--primary-color);
}

.contact:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Home Section */
.home {
    width: 100%;
    min-height: 100vh;
    background: url('./photos/contact-page.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.home-content {
    text-align: center;
    transform: translateY(-80px);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-title {
    font-size: 120px;
    font-weight: 200;   
    color: var(--text-color);
    text-align: center;
    margin-top: 90px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--text-color);
    width: 11ch;
    animation: typing 3s steps(11), blink 0.75s step-end infinite;
    font-family: var(--main-font);
    line-height: 1;
}

.portfolio-text {
    font-family: 'Handelson-One', var(--main-font);
    font-size: 180px;
    color: var(--text-color);
    text-align: center;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    opacity: 1;
    line-height: 1;
}

@keyframes typing {
    from { width: 0 }
    to { width: 11ch }
}

@keyframes blink {
    50% { border-color: transparent }
}

@media (max-width: 768px) {
    .home {
        background: url('./photos/mobile-contact-page.jpg') no-repeat center center;
        background-size: cover;
        background-position: center 40%;
        background-attachment: scroll;
        padding: 20px;
        justify-content: center;
        align-items: center;
    }

    .home-content {
        transform: none;
        padding: 0 10px;
        margin: 0;
        position: relative;
        top: -40px;
    }

    .home-title {
        font-size: 130px;
        margin: 0;
        width: auto;
        animation: none;
        border-right: none;
        white-space: nowrap;
        line-height: 1;
        overflow: visible;
        letter-spacing: -1px;
    }

    .portfolio-text {
        font-size: 140px;
        margin-top: 0;
        line-height: 1;
    }

    .contact {
        position: fixed;
        top: 20px;
        right: 20px;
        margin: 0;
        padding: 8px 24px;
        font-size: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        height: 40px;
        min-width: 140px;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .home {
        background-position: center 35%;
        padding: 15px;
    }

    .home-content {
        padding: 0 5px;
        top: -30px;
    }

    .home-title {
        font-size: 100px;
    }
    
    .portfolio-text {
        font-size: 110px;
        margin-top: 0;
    }

    .contact {
        top: 15px;
        right: 15px;
        padding: 6px 20px;
        font-size: 16px;
        height: 36px;
        min-width: 130px;
    }
}

/* About Section */
.about {
    width: 100%;
    min-height: 100vh;
    background: url('./photos/about-me.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 3rem 4%;
}

.about-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* background: rgba(232, 230, 225, 0.3); */
    border-radius: 30px;
    padding: 2rem;
}

.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.about-typing {
    font-size: 55px;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 1;
    text-align: center;
    font-family: var(--main-font);
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 1rem auto;
    box-shadow: 0 0 20px rgba(74, 60, 49, 0.2);
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.1);
}

.about-text {
    max-width: 500px;
    margin-top: 1rem;
    text-align: justify;
    opacity: 1;
    padding: 0 1rem;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.about-right {
    padding: 2rem 1rem;
    max-width: 600px;
    margin-left: -1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.skills-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.skills-section {
    padding-right: 1rem;
    margin-top: 1rem;
}

.skills-section:first-child {
    margin-top: 0;
}

/* Skills Section */
.skills-section h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 2rem;
    margin-top: 2.5rem;
}

.skills-section:first-child h2 {
    margin-top: 0;
}

.skill-category {
    margin-bottom: 2.5rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skill-card {
    background: var(--light-bg);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.skill-card i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card span {
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.skill-card:hover span {
    color: #242038;
}

/* Projects Section */
.projects {
    min-height: 100vh;
    width: 100%;
    background: url('./photos/projects-page.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 4% 2rem;
}

.projects-title {
    font-size: 65px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
    font-family: var(--main-font);
}

.projects h2 {
    font-size: 25px;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel {
    position: relative;
    display: flex;
    gap: 40px;
    transition: transform 0.8s ease;
    height: 400px;
    will-change: transform;
}

.project-card {
    flex: 0 0 320px;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--light-bg);
    box-shadow: 0 10px 30px rgba(36, 32, 56, 0.1);
    transition: all 0.8s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, opacity;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(36, 32, 56, 0.15);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-color);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.project-card:hover::after {
    opacity: 0.3;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.card-front {
    background: var(--light-bg);
}

.card-front video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background: var(--light-bg);
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-back h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.card-back p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
    line-height: 1.5;
    opacity: 0.9;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.demo-btn {
    background: var(--dark-bg);
    color: var(--primary-color);
}

.github-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
}

.project-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: none;
    color: var(--primary-color);
    font-size: 28px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.carousel-button:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(246, 246, 246, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-bg);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    opacity: 0.5;
    transform: scale(1.1);
}

.carousel-dot.active {
    opacity: 1;
    transform: scale(1.2);
    background: var(--dark-bg);
}

@media (max-width: 1400px) {
    .project-card {
        flex: 0 0 300px;
    }
    
    .carousel-container {
        padding: 0 70px;
        height: 420px;
    }
    
    .carousel {
        height: 380px;
    }

    .home-title {
        font-size: 160px;
    }
    
    .portfolio-text {
        font-size: 120px;
    }
}

@media (max-width: 1024px) {
    .projects {
        min-height: auto;
        padding: 80px 20px;
        overflow-y: auto;
        background: url('./photos/projects-page-mobile.jpg') no-repeat center center;
        background-size: cover;
    }

    .carousel-container {
        height: auto;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 600px;
        display: block;
        overflow: visible;
    }
    
    .carousel {
        display: flex;
        flex-direction: column;
        gap: 40px;
        height: auto;
        width: 100%;
        transform: none !important;
        padding: 20px 0;
    }
    
    .project-card {
        width: 100%;
        max-width: 500px;
        height: 400px;
        margin: 0 auto;
        flex: none;
    }
    
    .carousel-button,
    .carousel-dots {
        display: none;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 60px 20px;
    }
    
    .carousel-container {
        max-width: 450px;
    }
    
    .project-card {
        max-width: 100%;
        height: 380px;
    }
    
    .card-back {
        padding: 1.8rem;
    }
    
    .card-back h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-back p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .project-links {
        gap: 1rem;
    }
    
    .project-links a {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 40px 15px;
    }
    
    .carousel-container {
        max-width: 320px;
    }
    
    .carousel {
        gap: 30px;
    }
    
    .project-card {
        height: 360px;
    }
    
    .card-back {
        padding: 1.5rem;
    }
    
    .card-back h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .card-back p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .project-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Collaborate Section */
.collaborate {
    scroll-margin-top: 60px;
    width: 100%;
    height: 100vh;
    background: url('./photos/contact-page.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 30%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15vh;
}

.collaborate h1 {
    font-family: var(--main-font);
    font-size: 65px;
    color: #242038;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.collaborate h2 {
    font-family: var(--main-font);
    font-size: 25px;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.collaborate-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.collaborate-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 2rem;
    font-family: var(--main-font);
    font-size: 20px;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.collaborate-btn i {
    font-size: 50px;
    margin-right: 0.5rem;
}

.collaborate-btn:hover {
    transform: translateY(-3px);
    color: #242038;
}

.collaborate-btn:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    background: rgba(208, 202, 194, 0.3);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-color);
    font-family: var(--main-font);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-2px);
    color: #242038;
}

.footer-bottom {
    font-family: var(--main-font);
    color: var(--text-color);
    font-size: 14px;
}

/* Animations */
@keyframes typingHome {
    from { width: 0 }
    to { width: 11ch }
}

@keyframes typingAbout {
    from { width: 0 }
    to { width: 8ch }
}

@keyframes blink {
    50% { border-color: transparent }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 45% 55%;
        gap: 2rem;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-title {
        font-size: 90px;
    }
    
    .portfolio-text {
        font-size: 70px;
        margin-top: -30px;
    }
    
    .home-content {
        transform: translateY(-60px);
    }

    .about {
        height: auto;
        min-height: 100vh;
        padding: 80px 4% 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-right {
        padding: 0 1rem;
    }

    .profile-image {
        width: 250px; 
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .skill-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .projects-title {
        font-size: 55px;
        margin-bottom: 1rem;
    }

    .project-card {
        height: 380px;
    }

    .collaborate {
        background: url('./photos/mobile-contact-page.jpg') no-repeat center center;
        background-size: cover;
        background-position: center 40%;
        background-attachment: scroll;
        padding: 4rem 2rem;
        padding-top: 15vh;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .collaborate h1 {
        font-size: 45px;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }

    .collaborate h2 {
        font-size: 20px;
        margin-bottom: 3rem;
        text-align: center;
        width: 100%;
    }

    .collaborate-buttons {
        flex-direction: column;
        gap: 4rem;
        width: 100%;
        max-width: 400px;
        padding: 2rem;
        margin-top: 3rem;
        align-items: center;
    }

    .collaborate-btn {
        font-size: 18px;
        padding: 1rem;
        gap: 2rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .collaborate-btn i {
        font-size: 32px;
        margin: 0;
    }

    /* About section mobile fixes */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-right {
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .skills-container {
        width: 100%;
        margin: 0 auto;
    }

    .skills-section {
        text-align: center;
        padding: 0;
        margin-top: 3rem;
    }

    .skill-category {
        margin-bottom: 3rem;
        text-align: center;
    }

    .skill-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
        padding: 0;
    }

    .about-text p {
        text-align: center;
    }

    .navbar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: auto;
        background: var(--primary-color);
        transition: 0.3s ease;
        padding: 1rem 0;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        text-align: center;
        padding: 15px 0;
        width: 100%;
        color: var(--dark-bg);
        mix-blend-mode: normal;
    }

    .navbar a:not(:last-child)::after {
        display: none;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .project-card {
        flex: 0 0 300px;
        height: 380px;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-height: 800px) {
    .project-card {
        height: 350px;
    }
    
    .projects-title {
        font-size: 55px;
    }
    
    .projects-subtitle {
        font-size: 20px;
        margin-bottom: 3rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Base adjustments */
    section {
        height: auto;
        min-height: 100vh;
        padding: var(--space-4x) var(--container-padding);
    }

    /* Navigation */
    .header {
        padding: var(--space-2x);
        background: rgba(231, 209, 177, 0.95);
        backdrop-filter: blur(8px);
    }

    .navbar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: auto;
        background: rgba(231, 209, 177, 0.95);
        backdrop-filter: blur(8px);
        transition: 0.3s ease;
        padding: var(--space-2x) 0;
        flex-direction: column;
        align-items: center;
        gap: var(--space-2x);
    }

    .navbar.active {
        left: 0;
    }

    .contact {
        position: static;
        font-size: 16px;
        padding: var(--space-1x) var(--space-3x);
    }

    /* Home Section */
    .home {
        padding-top: var(--space-8x);
    }

    .home-content {
        transform: none;
        padding: 0 var(--space-2x);
    }

    .home-title {
        font-size: clamp(36px, 8vw, 48px);
        margin-top: var(--space-4x);
        width: 100%;
        animation: none;
        border-right: none;
        white-space: normal;
    }

    .portfolio-text {
        font-size: clamp(48px, 12vw, 60px);
        margin-top: var(--space-2x);
    }

    /* About Section */
    .about {
        padding: var(--space-8x) var(--space-2x);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-4x);
        padding: var(--space-3x);
    }

    .about-left {
        padding: 0;
    }

    .about-typing {
        font-size: clamp(32px, 6vw, 40px);
        margin-bottom: var(--space-3x);
    }

    .profile-image {
        width: 180px;
        height: 180px;
        margin: var(--space-2x) auto;
    }

    .about-text {
        max-width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Skills Section */
    .skills-container {
        margin-top: var(--space-3x);
    }

    .skills-section {
        padding-right: 0;
        margin-top: var(--space-3x);
    }

    .skill-category {
        margin-bottom: var(--space-3x);
    }

    .skill-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2x);
    }

    .skill-card {
        padding: var(--space-1x);
    }

    .skill-card i {
        font-size: 1.5rem;
    }

    .skill-card span {
        font-size: 13px;
    }

    /* Projects Section */
    .projects {
        padding: var(--space-8x) var(--space-2x) var(--space-4x);
    }

    .projects-title {
        font-size: clamp(36px, 8vw, 45px);
        margin-bottom: var(--space-1x);
    }

    .projects h2 {
        font-size: clamp(18px, 4vw, 22px);
        margin-bottom: var(--space-4x);
    }

    /* Collaborate Section */
    .collaborate {
        padding: var(--space-8x) var(--space-2x);
        height: auto;
        min-height: 100vh;
    }

    .collaborate h1 {
        font-size: clamp(32px, 7vw, 40px);
        text-align: center;
    }

    .collaborate h2 {
        font-size: clamp(16px, 3vw, 18px);
        text-align: center;
        padding: 0 var(--space-2x);
    }

    .collaborate-buttons {
        flex-direction: column;
        gap: var(--space-3x);
        width: 100%;
        padding: var(--space-4x) var(--space-2x);
    }

    .collaborate-btn {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: var(--space-2x);
    }

    .collaborate-btn i {
        font-size: 24px;
    }
}

/* Small devices */
@media (max-width: 480px) {
    .skill-cards {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .about-content {
        padding: var(--space-2x);
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .collaborate-buttons {
        padding: var(--space-3x) var(--space-1x);
    }

    .collaborate-btn {
        padding: var(--space-1x);
    }
}

/* Mobile responsiveness for the gallery */
@media (max-width: 768px) {
    .scene {
        height: calc(100vh - 250px);
    }

    .gallery {
        width: 300px;
        height: 350px;
    }
}