@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}

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

body {
    background: #0f1722;
    color: #f7f9fc;
    min-height: 100vh;
    font-size: clamp(15px, 1.05vw + 0.2rem, 17px);
    line-height: 1.65;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

body.menu-open {
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: -999px;
    padding: 10px 16px;
    background: #7cf03d;
    color: #0b121b;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(124, 240, 61, 0.35);
    transition: all .3s ease;
    z-index: 1000;
}

.skip-link:focus {
    left: 9%;
    top: 28px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: clamp(14px, 3.5vw, 18px) clamp(18px, 5vw, 9%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.1s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }
}

main {
    padding-top: 140px;
}

.section {
    padding: clamp(60px, 7.5vw, 90px) 0 clamp(54px, 7vw, 80px);
}

.section:nth-of-type(even) {
    background: rgba(17, 29, 40, 0.65);
}


.section-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(18px, 7vw, 48px);
    display: grid;
    gap: clamp(24px, 4vw, 36px);
}

.section h2 {
    font-size: clamp(28px, 4vw, 36px);
}

.feature-list,
.tag-list,
.contact-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list span,
.contact-list i {
    color: #7cf03d;
    font-weight: 600;
    margin-right: 6px;
}

.feature-list span {
    display: inline-block;
    min-width: 140px;
}

.portfolio-grid {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.portfolio-item,
.service-card {
    background: rgba(12, 19, 28, 0.85);
    border: 1px solid rgba(124, 240, 61, 0.15);
    border-radius: 20px;
    padding: clamp(24px, 3.8vw, 30px);
    box-shadow: 0 20px 46px rgba(4, 8, 12, 0.38);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.portfolio-item:hover,
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 240, 61, 0.35);
    box-shadow: 0 28px 58px rgba(4, 8, 12, 0.45);
}

.portfolio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.6vw, 20px);
    background: linear-gradient(160deg, rgba(18, 28, 40, 0.98), rgba(8, 14, 22, 0.92));
    border: 1px solid rgba(124, 240, 61, 0.18);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(124, 240, 61, 0.08);
    pointer-events: none;
}

.portfolio-image {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(7, 12, 18, 0.6);
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-item h3 {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 600;
    color: #f7f9fc;
}

.portfolio-item p {
    color: rgba(247, 249, 252, 0.78);
    line-height: 1.7;
}

.portfolio-item .tag-list {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.tag-list li {
    padding: 5px 14px;
    border: 1px solid rgba(124, 240, 61, 0.28);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #d9fbd0;
    background: rgba(124, 240, 61, 0.12);
    box-shadow: inset 0 0 20px rgba(124, 240, 61, 0.08);
}

.services-grid {
    display: grid;
    gap: clamp(18px, 4vw, 28px);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-contact .section-inner {
    gap: clamp(30px, 5vw, 40px);
}

.contact-grid {
    display: grid;
    gap: clamp(24px, 5vw, 36px);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
}

.contact-list i {
    font-size: 22px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-form {
    background: rgba(11, 18, 27, 0.8);
    border: 1px solid rgba(124, 240, 61, 0.12);
    border-radius: 20px;
    padding: clamp(22px, 5vw, 32px);
    display: grid;
    gap: clamp(16px, 3vw, 24px);
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(124, 240, 61, 0.25);
    background: rgba(7, 12, 18, 0.9);
    color: #f7f9fc;
    font-size: 15px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7cf03d;
    box-shadow: 0 0 0 3px rgba(124, 240, 61, 0.25);
}

.contact-form .btn {
    width: fit-content;
    padding-inline: clamp(26px, 5vw, 36px);
}

.contact-hint {
    font-size: 13px;
    color: rgba(247, 249, 252, 0.7);
}

.footer {
    padding: clamp(28px, 4vw, 40px) clamp(6%, 8vw, 10%);
    background: rgba(7, 12, 18, 0.95);
    border-top: 1px solid rgba(124, 240, 61, 0.12);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(247, 249, 252, 0.7);
}

.to-top {
    color: #7cf03d;
    font-weight: 600;
}

@media (max-width: 1024px) {
    main {
        padding-top: 120px;
    }

    .home-inner {
        gap: clamp(28px, 7vw, 56px);
    }

    .home-img .img-box {
        width: clamp(260px, 32vw, 320px);
        height: clamp(260px, 32vw, 320px);
    }
}

@media (max-width: 880px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 12px;
    }

    .nav-links {
        position: absolute;
        right: clamp(24px, 5vw, 9%);
        left: clamp(24px, 5vw, 9%);
        top: calc(100% + 16px);
        display: grid;
        gap: 18px;
        padding: clamp(18px, 4vw, 24px);
        background: rgba(10, 16, 24, 0.94);
        border: 1px solid rgba(124, 240, 61, 0.15);
        border-radius: 18px;
        min-width: 220px;
        max-width: calc(100vw - 48px);
        box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
        transform: scale(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease, transform .3s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .nav-links li a {
        font-size: 18px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 105px;
    }

    .home {
        padding: clamp(45px, 7vw, 65px) 0 clamp(25px, 5vw, 45px);
    }

    .home-inner {
        gap: clamp(35px, 6vw, 60px);
    }

    .section {
        padding: clamp(55px, 8vw, 75px) 0 clamp(45px, 6.5vw, 65px);
    }

    .home {
        height: auto;
        padding-bottom: 90px;
    }

    .home-inner {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .home-info h1 {
        font-size: clamp(36px, 7.5vw, 48px);
    }

    .home-info h2 {
        display: inline-block;
        font-size: clamp(24px, 5vw, 36px);
        margin: clamp(6px, 1.8vw, 10px) 0 clamp(10px, 2.2vw, 16px);
    }

    .btn-sci {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .btn-sci .sci {
        margin-left: 0;
        display: flex;
        gap: 12px;
    }

    .section {
        padding: 60px 8% 50px;
    }
}

@media (max-width: 540px) {
    .navbar {
        padding: 14px 20px;
    }

    .nav-links {
        left: 16px;
        right: 16px;
        min-width: 0;
        max-width: none;
    }

    .bars-animation {
        display: none;
    }

    .home {
        padding: clamp(40px, 6vw, 60px) 0 clamp(20px, 4vw, 40px);
    }

    .home-inner {
        align-items: center;
        padding: 0 20px;
    }

    .home-info {
        text-align: center;
    }

    .home-info h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .home-info h2 {
        font-size: clamp(22px, 5vw, 28px);
        margin: clamp(8px, 2vw, 12px) 0 clamp(12px, 2.5vw, 16px);
    }

    .home-info p {
        font-size: clamp(14px, 3.5vw, 16px);
        margin: clamp(14px, 2.5vw, 18px) 0 clamp(20px, 3.5vw, 26px);
    }

    .home-info .btn-sci {
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .btn,
    .contact-form .btn {
        width: 100%;
        text-align: center;
        padding: 12px 28px;
        font-size: 15px;
    }

    .home-img .img-box {
        width: clamp(240px, 55vw, 300px);
        height: clamp(240px, 55vw, 300px);
    }

    .section {
        padding: clamp(50px, 8vw, 70px) 0 clamp(40px, 6vw, 60px);
    }

    .section-inner {
        padding: 0 20px;
    }

    .section h2 {
        font-size: clamp(26px, 5.5vw, 32px);
    }

    .portfolio-item,
    .service-card {
        padding: 20px;
    }

    .portfolio-image {
        height: 180px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 11px 13px;
        font-size: 14px;
    }
    
    .carousel-3d-container {
        height: 40vh;
        min-height: 280px;
    }
    
    .carousel-item {
        width: 90vw;
    }
    
    .carousel-item.prev {
        transform: translateX(-50%) translateX(-100vw) translateZ(-60px) scale(0.7);
        opacity: 0.2;
    }
    
    .carousel-item.next {
        transform: translateX(-50%) translateX(100vw) translateZ(-60px) scale(0.7);
        opacity: 0.2;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .carousel-prev {
        left: 1%;
    }
    
    .carousel-next {
        right: 1%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .toggle-btn {
        padding: 9px 12px;
        font-size: 13px;
    }

    .footer {
        padding: 24px 20px;
    }

    .footer-inner {
        font-size: 14px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 90px;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar .logo {
        font-size: clamp(19px, 6.5vw, 23px);
    }

    .logo-icon {
        width: clamp(30px, 6vw, 38px);
        height: clamp(30px, 6vw, 38px);
    }

    .home {
        padding: clamp(35px, 5vw, 50px) 0 clamp(18px, 3.5vw, 35px);
    }

    .home-inner {
        padding: 0 16px;
        gap: clamp(30px, 5vw, 50px);
    }

    .home-info h1 {
        font-size: clamp(28px, 7.5vw, 36px);
        margin-bottom: 8px;
    }

    .home-info h2 {
        font-size: clamp(20px, 4.8vw, 26px);
        margin: clamp(6px, 1.5vw, 10px) 0 clamp(10px, 2vw, 14px);
    }

    .home-info p {
        font-size: clamp(13px, 3.2vw, 15px);
        line-height: 1.6;
        margin: clamp(12px, 2vw, 16px) 0 clamp(18px, 3vw, 24px);
    }


    .btn {
        padding: 11px 24px;
        font-size: 14px;
    }

    .home-info .btn-sci .sci a {
        padding: 7px;
        font-size: 18px;
        margin: 0 6px;
    }

    .home-img .img-box {
        width: clamp(220px, 52vw, 280px);
        height: clamp(220px, 52vw, 280px);
    }

    .section {
        padding: clamp(45px, 7vw, 65px) 0 clamp(35px, 5.5vw, 55px);
    }

    .section-inner {
        padding: 0 16px;
        gap: clamp(20px, 3.5vw, 32px);
    }

    .section h2 {
        font-size: clamp(24px, 5vw, 30px);
    }

    .portfolio-item,
    .service-card {
        padding: 18px;
    }

    .portfolio-item h3 {
        font-size: clamp(18px, 4vw, 22px);
    }

    .portfolio-item p {
        font-size: clamp(13px, 3vw, 15px);
        line-height: 1.65;
    }

    .portfolio-image {
        height: 160px;
        margin-bottom: 14px;
    }

    .tag-list {
        gap: 7px;
        justify-content: flex-start;
    }

    .tag-list li {
        padding: 4px 12px;
        font-size: 12px;
    }

    .contact-grid {
        gap: 24px;
    }

    .contact-form {
        padding: 20px 16px;
        gap: 18px;
    }

    .form-group {
        gap: 8px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .contact-hint {
        font-size: 12px;
    }

    .contact-list {
        gap: 10px;
    }

    .contact-list i {
        font-size: 20px;
    }

    .contact-list li {
        font-size: 14px;
    }
    
    .project-detail-section {
        padding-top: clamp(65px, 7.5vw, 95px);
    }
    
    .project-title {
        font-size: clamp(26px, 5.5vw, 36px);
        margin-bottom: 10px;
    }
    
    .project-subtitle {
        font-size: clamp(15px, 3.5vw, 19px);
        margin-bottom: clamp(28px, 4.5vw, 40px);
    }

    .back-link {
        font-size: 14px;
        margin-bottom: clamp(20px, 3.5vw, 32px);
    }

    .project-content-side h2 {
        font-size: clamp(20px, 4.5vw, 26px);
    }

    .project-content-side p,
    .project-content-side li {
        font-size: clamp(13px, 3vw, 15px);
        line-height: 1.7;
    }

    .feature-list span {
        min-width: 120px;
        font-size: 14px;
    }
    
    .carousel-3d-container {
        height: 35vh;
        min-height: 240px;
        perspective: 600px;
    }
    
    .carousel-item {
        width: 93vw;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    .carousel-prev {
        left: 0.5%;
    }
    
    .carousel-next {
        right: 0.5%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
        gap: 6px;
    }
    
    .gallery-section {
        margin-top: clamp(30px, 5.5vw, 55px);
        padding-top: clamp(28px, 5vw, 48px);
    }
    
    .gallery-header {
        gap: 14px;
        margin-bottom: clamp(26px, 4.5vw, 40px);
    }
    
    .gallery-header h2 {
        font-size: clamp(22px, 4.8vw, 30px);
    }
    
    .toggle-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .project-image-side {
        max-height: 42vh;
    }

    .project-contact-info {
        padding: 16px 18px;
        font-size: 14px;
    }

    .footer {
        padding: 22px 16px;
    }

    .footer-inner {
        font-size: 13px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .to-top {
        font-size: 14px;
    }
}

.navbar .logo {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: clamp(36px, 5vw, 44px);
    height: clamp(36px, 5vw, 44px);
    display: block;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    position: relative;
    border: 2px solid rgba(124, 240, 61, 0.6);
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(8, 12, 18, 0.85);
    color: #7cf03d;
    cursor: pointer;
    transition: border .3s ease, background .3s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: #7cf03d;
    background: rgba(8, 12, 18, 0.95);
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 32px);
}

.nav-links li {
    list-style: none;
    color: #ffffff;
}

.nav-links li a {
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 500;
    transition: color .4s;
}

.nav-links li:hover a,
.nav-links li.active a {
    color: #7cf03d;
}


.home {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: clamp(50px, 8vw, 70px) 0 clamp(24px, 6vw, 48px);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
    animation-delay: calc(-4s * var(--i));
}

.home-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 7vw, 70px);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(18px, 7vw, 48px);
    flex-wrap: wrap;
}

.home-info {
    flex: 1 1 360px;
    max-width: 560px;
}

.home-eyebrow {
    font-size: clamp(12px, 2.8vw, 15px);
    display: block;
    margin-bottom: 12px;
    color: rgba(247, 249, 252, 0.8);
}

.home-img {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}

.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px #7cf03d;
    animation: display-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
    25%,100% {
        display: none;
    }
}

.home-info h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: 2px solid #7cf03d;
    color: #7cf03d;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%,
    100% {
        width: 0;
    }

    70%,
    90% {
        width: 100%;
    }
}

.home-info p {
    font-size: clamp(15px, 1.4vw, 18px);
    margin: clamp(12px, 2vw, 18px) 0 clamp(22px, 3vw, 28px);
    max-width: clamp(340px, 50vw, 560px);
}

.home-info .btn-sci {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: clamp(10px, 2vw, 14px) clamp(24px, 5vw, 34px);
    background: #7cf03d;
    border: 2px solid #7cf03d;
    border-radius: 40px;
    box-shadow: 0 0 10px #7cf03d;
    font-size: clamp(15px, 1.3vw, 16px);
    color: #1f242d;
    font-weight: 600;
    transition: .6s;
}
.btn:hover {
    background: transparent;
    color: #7cf03d;
    box-shadow: none;
}


.home-info .btn-sci .sci {
    margin-left: 0;
    display: inline-flex;
    gap: 12px;
}

.home-info .btn-sci .sci a {
    display: inline-flex;
    padding: 8px;
    border: 2px solid #7cf03d;
    border-radius: 50%;
    font-size: 20px;
    color: #7cf03d;
    margin: 0 8px;
    transition: .6s;
}

.home-info .btn-sci .sci a:hover {
    background: #7cf03d;
    color: #1f242d;
    box-shadow: 0 0 10px #7cf03d;
}

.home-img .img-box {
    position: relative;
    width: clamp(260px, 32vw, 360px);
    height: clamp(260px, 32vw, 360px);
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: conic-gradient(transparent, transparent, transparent, #7cf03d);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
    animation-delay: -5s;
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border-radius: 50%;
    border: .1px solid #1f242d;
    display: flex;
    justify-content: end;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.bars-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {
    width: 100%;
    height: 100%;
    background: #1f242d;      
    transform: translateY(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s  * var(--i));
}

@keyframes show-bars {
    100% {
        transform: translateY(0%);
    }
}

/* Project Detail Pages */
.project-detail-section {
    padding-top: clamp(80px, 10vw, 120px);
}

.back-link {
    display: inline-block;
    color: #7cf03d;
    font-weight: 600;
    margin-bottom: clamp(24px, 4vw, 36px);
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.project-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
}

.project-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: rgba(247, 249, 252, 0.7);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.project-image-large {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: clamp(36px, 6vw, 56px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 3vw, 28px);
    margin-bottom: clamp(36px, 6vw, 56px);
}

.project-images-grid img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-images-grid img:hover {
    transform: scale(1.03);
}

.project-content {
    display: grid;
    gap: clamp(24px, 4vw, 36px);
}

.project-content h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    margin-top: clamp(16px, 3vw, 24px);
}

.project-content p {
    line-height: 1.8;
    color: rgba(247, 249, 252, 0.85);
}

.project-contact-info {
    margin: clamp(24px, 4vw, 32px) 0 clamp(40px, 6vw, 56px);
    padding: clamp(18px, 3vw, 24px) clamp(20px, 3.5vw, 28px);
    background: rgba(12, 19, 28, 0.85);
    border: 1px solid rgba(124, 240, 61, 0.18);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.project-contact-info span {
    color: #7cf03d;
    font-weight: 600;
    margin-right: 8px;
}

.project-contact-info a {
    color: #f7f9fc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-contact-info a:hover {
    color: #7cf03d;
}

.project-content-side {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
}

.project-content-side h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-top: clamp(12px, 2vw, 20px);
}

/* DocuFluxia - Single Image */
.project-image-container {
    width: 100%;
    max-height: 65vh;
    margin-bottom: clamp(36px, 6vw, 56px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 12, 18, 0.6);
}

.project-image-clickable {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.project-image-clickable:hover {
    transform: scale(1.02);
}

/* Moshbot - Horizontal Layout */
.project-layout-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
    margin-bottom: clamp(36px, 6vw, 56px);
}

.project-image-side {
    position: sticky;
    top: 100px;
    max-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    background: rgba(7, 12, 18, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-content-side {
    display: grid;
    gap: clamp(20px, 3vw, 28px);
}

.project-content-side h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-top: clamp(12px, 2vw, 20px);
}

/* 3D Carousel */
.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 70vh;
    margin: clamp(36px, 6vw, 56px) auto;
    perspective: 1200px;
}

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

.carousel-item {
    position: absolute;
    width: min(70vw, 1000px);
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    z-index: 3;
    transform: translateX(-50%) translateZ(0) scale(1);
    pointer-events: auto;
}

.carousel-item.prev {
    opacity: 0.6;
    z-index: 2;
    transform: translateX(-50%) translateX(-25vw) translateZ(-200px) rotateY(25deg) scale(0.9);
    pointer-events: auto;
}

.carousel-item.next {
    opacity: 0.6;
    z-index: 2;
    transform: translateX(-50%) translateX(25vw) translateZ(-200px) rotateY(-25deg) scale(0.9);
    pointer-events: auto;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    border: 2px solid transparent;
    box-shadow: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(124, 240, 61, 0.9);
    border: none;
    color: #0f1722;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 240, 61, 0.3);
}

.carousel-btn:hover {
    background: #7cf03d;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(124, 240, 61, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10%;
}

.carousel-next {
    right: 10%;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

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

.image-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .project-layout-horizontal {
        grid-template-columns: 1fr;
        gap: clamp(24px, 4vw, 36px);
    }
    
    .project-image-side {
        position: relative;
        top: 0;
        max-height: 55vh;
    }
    
    .carousel-3d-container {
        height: 55vh;
        perspective: 1000px;
    }
    
    .carousel-item {
        width: min(75vw, 700px);
    }
    
    .carousel-item.prev {
        transform: translateX(-50%) translateX(-20vw) translateZ(-120px) rotateY(18deg) scale(0.82);
    }
    
    .carousel-item.next {
        transform: translateX(-50%) translateX(20vw) translateZ(-120px) rotateY(-18deg) scale(0.82);
    }
    
    .carousel-btn {
        width: 55px;
        height: 55px;
        font-size: 42px;
    }
    
    .carousel-prev {
        left: 3%;
    }
    
    .carousel-next {
        right: 3%;
    }
}

/* Gallery Section */
.gallery-section {
    margin-top: clamp(48px, 8vw, 80px);
    padding-top: clamp(36px, 6vw, 56px);
    border-top: 1px solid rgba(124, 240, 61, 0.15);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(32px, 5vw, 48px);
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin: 0;
}

.gallery-toggle {
    display: flex;
    gap: 12px;
    background: rgba(12, 19, 28, 0.8);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(124, 240, 61, 0.2);
}

.toggle-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: rgba(247, 249, 252, 0.7);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: #7cf03d;
    background: rgba(124, 240, 61, 0.1);
}

.toggle-btn.active {
    background: #7cf03d;
    color: #0f1722;
}

.gallery-view {
    display: none;
}

.gallery-view.active {
    display: block;
}

.carousel-3d-container.gallery-view.active {
    display: block;
}

.gallery-grid.gallery-view.active {
    display: grid;
}

/* Grid Gallery */
.gallery-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(124, 240, 61, 0.25);
}

@media (max-width: 768px) {
    .project-images-grid {
        grid-template-columns: 1fr;
    }
    
    .project-layout-horizontal {
        gap: clamp(20px, 3vw, 28px);
    }
    
    .project-image-side {
        max-height: 50vh;
    }
    
    .carousel-3d-container {
        height: 45vh;
        min-height: 320px;
        perspective: 800px;
    }
    
    .carousel-item {
        width: min(85vw, 500px);
    }
    
    .carousel-item.prev,
    .carousel-item.next {
        opacity: 0.4;
    }
    
    .carousel-item.prev {
        transform: translateX(-50%) translateX(-35vw) translateZ(-80px) rotateY(15deg) scale(0.75);
    }
    
    .carousel-item.next {
        transform: translateX(-50%) translateX(35vw) translateZ(-80px) rotateY(-15deg) scale(0.75);
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 32px;
    }
    
    .carousel-prev {
        left: 2%;
    }
    
    .carousel-next {
        right: 2%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gallery-toggle {
        width: 100%;
    }
    
    .toggle-btn {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        font-size: 14px;
    }
}