html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: rgb(29, 40, 41);
    background: -moz-linear-gradient(90deg, rgba(29, 40, 41, 1) 0%, rgba(24, 30, 31, 1) 11%, rgba(19, 19, 20, 1) 41%, rgba(19, 19, 20, 1) 58%, rgba(24, 30, 31, 1) 85%, rgba(29, 40, 41, 1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(29, 40, 41, 1) 0%, rgba(24, 30, 31, 1) 11%, rgba(19, 19, 20, 1) 41%, rgba(19, 19, 20, 1) 58%, rgba(24, 30, 31, 1) 85%, rgba(29, 40, 41, 1) 100%);
    background: linear-gradient(90deg, rgba(29, 40, 41, 1) 0%, rgba(24, 30, 31, 1) 11%, rgba(19, 19, 20, 1) 41%, rgba(19, 19, 20, 1) 58%, rgba(24, 30, 31, 1) 85%, rgba(29, 40, 41, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1d2829", endColorstr="#1d2829", GradientType=1);
    color: white;
    padding: 3rem;
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-btn {
    text-decoration: none;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    background-color: rgba(143, 143, 143, 0.2);
    border: 1px solid rgba(102, 102, 102, 0.5);
    border-radius: 50px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.contact-btn:hover {
    background-color: #76b0ab37;
}


/* Main Section */
main {
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85.7vh;
}

.title-section {
    margin-top: 3rem;
}

main h1 {
    text-align: center;
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: 5px;
    line-height: 1;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

main h2 {
    text-align: center;
    font-size: 7.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    line-height: 1;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
    display: none;
}

.location {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.location p {
    background-image: linear-gradient(to right, #76b0ab, #ffffff, #842626);
    color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.bio-section {
    margin-top: auto;
    margin-bottom: 2rem;
}

.bio {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 22rem;
}

.scroll-down {
    height: 5rem;
    width: 2rem;
    position: absolute;
    right: 2%;
    bottom: 5%;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid lightgray;
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 3s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.8s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
    }

    30%,
    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 90%;
    }
}

/* 3D Planet */

.planet-3D {
    position: absolute;
    top: -20%;
    right: -14%;
    width: 130%;
    height: 130%;

}

/* About Section */
.about-section {
    width: 100%;
    margin-top: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-title {
    margin-bottom: 5%;
    font-size: 5rem;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

.bento-grid {
    position: relative;
    display: grid;
    height: 90vh;
    width: 90%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "intro intro tech"
        "time passion tech"
    ;
    gap: 1.5rem;
}

.card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Card Specific Areas */
.intro {
    grid-area: intro;
    min-height: 300px;
}

.tech {
    grid-area: tech;
    min-height: 450px;
}

.time {
    grid-area: time;
    min-height: 220px;
}

.passion {
    grid-area: passion;
    min-height: 220px;
}

/* Hover Effects */
.card:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* Spotlight Effect */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x) var(--y), rgba(124, 233, 230, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 4rem;
    color: #ffffff;
}

.card-text {
    color: #7b7b7b;
    line-height: 1.6;
    margin-top: 2rem;
    max-width: 30rem;
}

.bento-grid .background-img {
    position: absolute;
    inset: -1% -1% -1% -1%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index: -1;
}

.model-box {
    position: absolute;
    right: 5%;
    top: -25%;
    width: 30rem;
    height: 30rem;
}

.info-3D {
    width: 150%;
    height: 150%;
    mix-blend-mode: lighten;
}

.bento-grid .skills-group {
    position: absolute;
    bottom: 5%;
    left: 15%;
    width: 70%;
}

.bento-grid .btn {
    text-decoration: none;
    position: absolute;
    bottom: 10%;
    padding: 0.75rem 1.5rem;
    background-color: rgba(124, 233, 230, 0.1);
    color: #76b0ab;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

.bento-grid .btn:hover {
    background-color: #76b0ab;
    color: black;
}

/* Projects Section */
.projects-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 100px;
    margin-bottom: 100px;
}

.projects-section .heading-section {
    margin-bottom: 5%;
    font-size: 5rem;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

.gradient {
    background: linear-gradient(to right, #720F1A,
            #900D26,
            #B3072E,
            #00A89A,
            #00C7B2,
            #00E0C2,
            #76F7E0);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.project-card {
    display: flex;
    width: 100%;
    height: 40%;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

.project-vidbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    mix-blend-mode: exclusion;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
    min-width: 400px;

}

.project-vidbox video {
    object-fit: cover;
    width: 100%;
    box-shadow: 0 0 10px lightgray;
    border-radius: 20px;
    transition: 0.5s;
}

.project-card video:hover {
    box-shadow: 0 0 25px rgb(255, 255, 255);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 50%;
    padding-left: 10%;
}

.project-info h1 {
    width: 90%;
    font-size: 25px;
    font-weight: bold;
    text-wrap: nowrap;
    margin-top: 0;
    margin-bottom: 10px;
    max-width: 450px;
}

.project-info p {
    width: 90%;
    max-width: 400px;
    min-width: 300px;
    margin-bottom: 50px;
    margin-top: 0;
}

.project-info a {
    color: #76b0ab;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background-color: rgba(124, 233, 230, 0.1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
    text-decoration: none;
}

.project-info a:hover {
    background-color: #76b0ab;
    color: black;
}

.project-vidbox .hover-sign {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100px;
}

.hover-sign::before,
.hover-sign::after {
    content: "👆";
    text-align: center;
    position: absolute;
    font-size: 50px;
    top: 20%;
    left: 40%;
    border-radius: 40px;
    animation: hover-animation 4s ease-in-out infinite;

}

.hover-sign.active {
    display: none;
}

@keyframes hover-animation {
    0% {
        /* top:20%; */
        box-shadow: 0 0 5px rgb(255, 255, 255);
        transform: translate(100%, 50%) rotate(30deg);
    }

    100% {
        box-shadow: 0 0 5px rgb(255, 255, 255);
        transform: translateX(80%, 80%) rotate(20deg);
    }
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    margin-top: 10rem;
    margin-bottom: 5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
    color: transparent;
    background-clip: text;
}

.contact-section p {
    color: lightgray;
    margin: 0 auto;
}

/* Contact Content */
.contact-content {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card {
    padding: 30px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: lightgray;
}

.contact-item {
    margin-bottom: 3rem;
}

.contact-item p {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #7ce9e6;
}

.contact-item a {
    color: lightgray;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #7ce9e6;
}

.social-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.social-link p {
    margin-bottom: 15px;
    color: #7ce9e6;
    font-weight: 600;
}

.social-link a {
    display: inline-block;
    margin-right: 15px;
    color: lightgray;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #2d2d2d;
    border-radius: 6px;
    transition: all 0.2s;
}

.social-link a:hover {
    background-color: #7ce9e6;
    color: #2d2d2d;
}

footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem 4rem;
    background-color: rgba(124, 233, 230, 0.1);
}

.box-icons {
    display: flex;
    gap: 2rem;
}

.box-icons a {
    color: lightgray;
    font-size: 2rem;
    transition: color 0.5s;
}

.box-icons a:hover {
    color: #7ce9e6;
}

/* ===== Carousel Section Styling ===== */
.carousel-hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    background: transparent;
}

.carousel-container {
    width: 100%;
    max-width: 1400px;
    height: 580px;
    perspective: 1200px;
    position: relative;
    margin-top: 40px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 350px;
    height: 480px;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    transform-origin: center center;
}

.carousel-item .card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 40, 41, 0.9), rgba(19, 19, 20, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.carousel-item .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(124, 233, 230, 0.5),
            transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(480px);
    }
}

.card-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(124, 233, 230, 0.1);
    font-family: 'Orbitron', monospace;
}

.card-image {
    width: 100%;
    height: 150px;
    background: rgba(19, 19, 20, 0.9);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.5s ease;
}

.carousel-item:hover .card-image img {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.05);
}

.project-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff, #7ce9e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    min-height: 48px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.card-description {
    color: #b0b0b0;
    line-height: 1.4;
    margin-bottom: 15px;
    font-size: 13px;
    font-family: 'Arial', sans-serif;
    height: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    flex: 1;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    flex-shrink: 0;
    min-height: 30px;
}

.tech-badge {
    padding: 6px 10px;
    background: rgba(124, 233, 230, 0.1);
    border: 1px solid #7ce9e6;
    border-radius: 20px;
    font-size: 12px;
    color: #7ce9e6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.card-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-top: auto;
}

.card-cta {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #7ce9e6, #76b0ab);
    border: none;
    border-radius: 30px;
    color: #131314;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 233, 230, 0.2);
}

.github-btn {
    background: linear-gradient(135deg, #333, #555) !important;
    color: white !important;
}

.github-btn:hover {
    background: linear-gradient(135deg, #444, #666) !important;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(29, 40, 41, 0.9), rgba(19, 19, 20, 0.9));
    border: 2px solid rgba(124, 233, 230, 0.3);
    border-radius: 50%;
    color: #7ce9e6;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-btn:hover {
    border-color: #7ce9e6;
    box-shadow:
        0 8px 25px rgba(124, 233, 230, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(124, 233, 230, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(135deg, #7ce9e6, #76b0ab);
    border-color: #7ce9e6;
    box-shadow: 0 0 10px rgba(124, 233, 230, 0.5);
    transform: scale(1.3);
}

@media (max-width:1600px) {
    main h1 {
        font-size: 6rem;
        letter-spacing: 0;
    }

    .bento-grid {
        position: relative;
        display: grid;
        height: 90vh;
    }

    .card-title {
        font-size: 1.6rem;
        margin-top: 0;
    }

    .card-text {
        line-height: 1.5;
        font-size: 1rem;
    }

    .model-box {
        right: 10%;
        top: -22%;
    }

    .intro {
        min-height: 600px;
    }

    .time {
        grid-area: time;
        min-height: 300px;
    }

    .projects-section {
        margin-top: 30rem;
    }

    .slider .list .item {
        width: 45rem;
        height: 25rem;
    }

    .slider .list {
        min-width: calc(40rem * var(--quantity));
    }

    .contact-section {
        margin-top: 0;
    }
}

@media (max-width:1400px) {
    main h1 {
        font-size: 6.3rem;
        letter-spacing: 0;
    }

    .bento-grid {
        position: relative;
        display: grid;
        height: 80vh;
    }

    .card-title {
        font-size: 1.2rem;
        margin-top: 0;
    }

    .card-text {
        line-height: 1.3;
        font-size: 0.8rem;
    }

    .model-box {
        right: 20%;
        top: 10%;
    }

    .intro {
        min-height: 700px;
    }

    .time {
        grid-area: time;
        min-height: 300px;
    }

    .projects-section {
        margin-top: 40rem;
    }

    .slider .list .item {
        width: 40rem;
        height: 20rem;
    }

    .slider .list {
        display: flex;
        min-width: calc(30rem * var(--quantity));
    }
}

@media (max-width: 1200px) {
    .projects-section {
        margin-bottom: 50px;
        scale: 0.8;
    }

    .contact-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    main h1 {
        display: none;
    }

    main h2 {
        display: block;
        margin-top: -3rem;
    }

    .bio-section {
        margin-top: 8rem;
        margin-bottom: 1rem;
    }

    .bio {
        font-size: 0.8rem;
        max-width: 85%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "tech"
            "time"
            "passion";
    }

    .about-section {
        margin-top: 8rem;
    }

    .about-title {
        margin-bottom: 5%;
        font-size: 3rem;
    }

    .model-box {
        right: 3%;
        top: 30%;
        scale: 0.7;
    }

    .projects-section {
        margin-top: 60rem;
    }

    .projects-section .heading-section {
        margin-bottom: 5%;
        font-size: 3rem;
    }

    .slider .list .item {
        width: 20rem;
        height: 10rem;
    }

    .slider .list {
        display: flex;
        min-width: calc(10rem * var(--quantity));
    }

    .section-header h3 {
        font-size: 3rem;
    }

    .contact-section {
        margin-top: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .social-link a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .box-icons {
        display: none;
    }

    footer {
        font-size: 1rem;
    }
}

@media screen and (max-width: 700px) {
    .project-vidbox video {
        width: 270px;
        margin-left: -100px;
    }

    .project-info {
        overflow: hidden;
        padding-left: 0;
        margin-left: -50px;
        padding-top: 50px;
    }

    .project-info h1 {
        font-size: 20px;
        max-width: 200px;
        text-wrap: wrap;
    }

    .project-info p {
        font-size: 10px;
        text-wrap: wrap;
        max-width: 200px;
        min-width: 0;
    }

    .project-card {
        flex-direction: column;
        margin-left: 25%;
        gap: 30px;
    }

    .project-vidbox {
        min-width: 200px;
    }

    .project-info {
        width: 85%;
        margin-right: -140px;
        padding-top: 120px;
        padding-bottom: 110px;
    }

    .project-info h1 {
        text-wrap: nowrap;
        font-size: 1.2rem;
    }

    .project-info p {
        max-width: 300px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    main h2 {
        font-size: 6rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .location p {
        font-size: 1rem;
    }

    .contact-btn {
        padding: 0.4rem 1.5rem;
        font-size: 0.9rem;
    }

    .model-box {
        right: 9%;
        top: 27%;
    }

    .contact-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .carousel-hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-left: -1.5rem;
        width: 100vw;
    }

    .carousel-item {
        min-height: 380px !important;
    }

    .carousel-item .card {
        padding: 20px;
        min-height: 360px;
    }

    .card-image {
        height: 140px !important;
    }

    .project-title {
        font-size: 16px !important;
    }

    .card-description {
        font-size: 13px !important;
    }

    .card-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .card-cta {
        width: 100%;
    }

    .tech-badge {
        font-size: 11px;
        padding: 6px 10px;
    }

    .carousel-container {
        height: 420px;
    }

    .carousel-item {
        width: 250px;
        height: 340px;
    }

    .card-image {
        height: 110px;
    }

    .project-title {
        font-size: 15px;
        min-height: 36px;
    }

    .card-description {
        font-size: 10px;
        height: 60px;
        -webkit-line-clamp: 3;
    }
}


@media screen and (max-width: 480px) {
    .project-card {
        height: 50%;
    }

    .project-info p {
        margin-bottom: 15px;
    }

    .project-info {
        margin-left: -80px;
    }
}

/* Responsive Design for Carousel */
@media (max-width: 1024px) {
    .carousel-container {
        height: 530px;
    }

    .carousel-item {
        width: 320px;
        height: 430px;
    }

    .carousel-controls {
        bottom: -50px;
    }

    .card-image {
        height: 140px;
    }

    .project-title {
        font-size: 18px;
        min-height: 44px;
    }

    .card-description {
        font-size: 12px;
        height: 70px;
        -webkit-line-clamp: 4;
    }
}

@media (max-width: 768px) {
    .projects-section {
        margin-bottom: -150px;
    }

    .contact-section {
        padding-top: 0 !important;
        margin-bottom: 70px !important;
    }

    .carousel-container {
        height: 480px;
        margin-top: 20px;
    }

    .carousel-item {
        width: 280px;
        height: 380px;
    }

    .card-image {
        height: 130px;
    }

    .project-title {
        font-size: 16px;
        min-height: 40px;
    }

    .card-description {
        font-size: 11px;
        height: 65px;
        -webkit-line-clamp: 3;
    }

    .card-tech {
        gap: 5px;
    }

    .tech-badge {
        padding: 6px 8px;
        font-size: 12px;
    }

    .card-number {
        font-size: 50px;
        top: 10px;
        right: 15px;
    }

    .card-buttons {
        flex-direction: column;
    }

    .card-cta {
        width: 100%;
        padding: 7px 10px;
        font-size: 10px;
    }

    .carousel-controls {
        bottom: -50px;
        gap: 15px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .carousel-indicators {
        top: -35px;
        gap: 10px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}


@media (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important;
    }

    [data-aos^="fade"][data-aos^="fade"] {
        opacity: 1 !important;
    }

    [data-aos^="zoom"][data-aos^="zoom"] {
        opacity: 1 !important;
        transform: none !important;
    }

    [data-aos^="slide"][data-aos^="slide"] {
        transform: none !important;
    }

    [data-aos^="flip"][data-aos^="flip"] {
        transform: none !important;
    }

    .scroll-down::before,
    .scroll-down::after {
        animation: none !important;
    }

    .carousel-item .card::before {
        animation: none !important;
    }

    .gradient {
        animation: none !important;
    }
}


.contact-btn.desktop-only {
    display: block;
}

.contact-btn.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .contact-btn.desktop-only {
        display: none !important;
    }

    .contact-btn.mobile-only {
        display: block !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        scroll-behavior: smooth;
    }
}

@media (min-width: 1025px) {
    html {
        scroll-behavior: smooth;
    }
}

@media (max-width: 768px) {

    .planet-3D,
    .model-box,
    spline-viewer {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        opacity: 0 !important;
    }

    main {
        min-height: 70vh !important;
        height: auto !important;
        overflow: visible !important;
    }

    .bio-section {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .intro {
        min-height: 450px;
    }

    .carousel-hero {
        padding: 20px 0;
        width: 100%;
    }

    .carousel-container {
        height: auto !important;
        perspective: none !important;
        margin-top: 20px;
    }

    .carousel {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        transform: none !important;
        transform-style: flat !important;
        height: auto !important;
        width: 100% !important;
    }

    .carousel-item {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 400px !important;
        left: 23px !important;
        top: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .carousel-item .card {
        width: 100% !important;
        height: auto !important;
        min-height: 380px;
        padding: 25px;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .carousel-item .card::before {
        animation: none !important;
        display: none !important;
    }

    .card-image {
        height: 160px !important;
        margin-bottom: 20px;
    }

    .project-title {
        font-size: 18px !important;
        min-height: auto !important;
        margin-bottom: 15px;
        text-align: center;
    }

    .card-description {
        height: auto !important;
        min-height: 80px;
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 20px;
        -webkit-line-clamp: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        text-align: center;
    }

    .card-tech {
        justify-content: center;
        margin-bottom: 20px;
        min-height: auto;
    }

    .tech-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    .card-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .card-cta {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 40px;
    }

    .card-number {
        font-size: 40px;
        top: 10px;
        right: 15px;
    }

    .carousel-controls {
        display: none !important;
    }

    .carousel-indicators {
        display: none !important;
    }

    .carousel-item:hover .card-image img {
        filter: none !important;
        transform: none !important;
    }

    .card-cta:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .carousel-hero {
        width: 100vw;
        margin-left: -3rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}