        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html, body {
            min-height: 100%;
            height: 100%;
            overflow-x: hidden; 
        }
        
        .carousel-container {
            position: relative;
            width: 100%;
            min-height: 250px;
            max-height: 500px;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            background: #f3f4f6;
        }
        
        .dark .carousel-container {
            background: #1f2937;
        }
        
        .carousel-slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
            min-height: 250px;
            max-height: 500px;
        }
        
        .carousel-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        body.dark-mode .carousel-slide{
            background-color: #2c2c2c;
        }
        
        .carousel-slide img {
            width: 100%;
            height: 100%;
            max-height: 500px;
            object-fit: contain;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        

        
        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            opacity: 0;
        }
        
        .carousel-container:hover .carousel-button {
            opacity: 1;
        }
        
        .carousel-button:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }
        
        .carousel-button.prev {
            left: 10px;
        }
        
        .carousel-button.next {
            right: 10px;
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }
        
        .carousel-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .carousel-indicator.active {
            background: white;
            width: 24px;
            border-radius: 4px;
        }
        
        .carousel-indicator:hover {
            background: rgba(255, 255, 255, 0.8);
        }
        
        @media (max-width: 768px) {
            .carousel-container {
                min-height: 200px;
            }
            
            .carousel-button {
                width: 35px;
                height: 35px;
                opacity: 1;
            }
        }
        
        .image-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0);
            align-items: center;
            justify-content: center;
            padding: 20px;
            transition: background-color 0.15s ease;
        }
        
        .image-modal.active {
            display: flex;
            animation: modalFadeIn 0.15s ease forwards;
        }
        
        @keyframes modalFadeIn {
            from {
                background-color: rgba(0, 0, 0, 0);
            }
            to {
                background-color: rgba(0, 0, 0, 0.9);
            }
        }
        
        .modal-content-wrapper {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .image-modal.active .modal-content-wrapper {
            opacity: 1;
            transform: scale(1);
        }
        
        .image-modal img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            transition: none;
        }
        
        .image-modal img.slide-out-left {
            animation: slideOutLeftFast 0.25s cubic-bezier(0.4, 0.0, 1, 1) forwards;
        }
        
        .image-modal img.slide-out-right {
            animation: slideOutRightFast 0.25s cubic-bezier(0.4, 0.0, 1, 1) forwards;
        }
        
        .image-modal img.slide-in-left {
            animation: slideInLeftFast 0.25s cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
        }
        
        .image-modal img.slide-in-right {
            animation: slideInRightFast 0.25s cubic-bezier(0.0, 0.0, 0.2, 1) forwards;
        }
        
        @keyframes slideOutLeftFast {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-100%);
            }
        }
        
        @keyframes slideOutRightFast {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(100%);
            }
        }
        
        @keyframes slideInLeftFast {
            from {
                opacity: 0;
                transform: translateX(-100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes slideInRightFast {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .carousel-container {
            position: relative;
            width: 100%;
            min-height: 250px;
            max-height: 500px;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            background: #f3f4f6;
        }
        
        .dark .carousel-container {
            background: #1f2937;
        }
        
        .carousel-slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
            min-height: 250px;
            max-height: 500px;
        }
        
        .carousel-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .carousel-slide img {
            width: 100%;
            height: 100%;
            max-height: 500px;
            object-fit: contain;
            cursor: pointer;
            transition: transform 0.3s ease;
        }
        

        
        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            opacity: 0;
        }
        
        .carousel-container:hover .carousel-button {
            opacity: 1;
        }
        
        .carousel-button:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.1);
        }
        
        .carousel-button.prev {
            left: 10px;
        }
        
        .carousel-button.next {
            right: 10px;
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }
        
        .carousel-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .carousel-indicator.active {
            background: white;
            width: 24px;
            border-radius: 4px;
        }
        
        .carousel-indicator:hover {
            background: rgba(255, 255, 255, 0.8);
        }
        
        @media (max-width: 768px) {
            .carousel-container {
                min-height: 200px;
            }
            
            .carousel-button {
                width: 35px;
                height: 35px;
                opacity: 1;
            }
        }
        
        .image-modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .image-modal.active {
            display: flex;
        }
        
        .modal-content-wrapper {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .image-modal img {
            max-width: 100%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
        }
        
        .image-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.65); 
            color: #ffffff; 
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            line-height: 1;
            border-radius: 999px;
            cursor: pointer;
            transition: background-color 0.15s ease, transform 0.12s ease, color 0.15s ease;
            z-index: 10000;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        
        .image-modal-close:hover {
            background: rgba(0, 0, 0, 0.80);
            transform: scale(1.06);
        }
        
        .dark .image-modal-close {
            background: rgba(255, 255, 255, 0.07);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
        }
        
        @media (max-width: 768px) {
            .image-modal-close {
                top: 10px;
                right: 10px;
                width: 40px;
                height: 40px;
                font-size: 18px;
            }
        }
        
        .modal-nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgb(70, 70, 70);
            backdrop-filter: blur(10px);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.3);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10000;
            font-size: 20px;
        }
        
        .modal-nav-button:hover {
            background: rgb(39 27 27 / 52%);
            transform: translateY(-50%) scale(1.1);
        }
        
        .modal-nav-button.prev {
            left: 20px;
        }
        
        .modal-nav-button.next {
            right: 20px;
        }
        
        .modal-indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10000;
        }
        
        .modal-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        
        .modal-indicator.active {
            background: white;
            width: 30px;
            border-radius: 5px;
        }
        
        .modal-indicator:hover {
            background: rgba(255, 255, 255, 0.8);
        }
        
        @media (max-width: 768px) {
            .modal-nav-button {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            
            .modal-nav-button.prev {
                left: 10px;
            }
            
            .modal-nav-button.next {
                right: 10px;
            }
            
            .image-modal-close {
                top: 10px;
                right: 10px;
                font-size: 30px;
            }
        }
        
        @media (max-width: 640px) {
            
            .grid {
                display: flex;
                flex-direction: column;
            }
        }
::-webkit-scrollbar{width:11px}
::-webkit-scrollbar-track{background:#0A0B0F}
::-webkit-scrollbar-thumb{background:#23252f;border-radius:10px;border:3px solid #0A0B0F}
.carousel-container{background:#15171f !important}
.dark .carousel-container{background:#15171f !important}
.card-dark{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012));border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:24px}
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.hamburger span{display:block;width:22px;height:2px;background:#aeb0bd;border-radius:2px}
.mobile-nav{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:rgba(10,11,15,.97);border-bottom:1px solid rgba(255,255,255,.07);padding:8px 0;z-index:49}
.mobile-nav a{display:block;padding:14px 32px;font-size:15px;font-weight:500;color:#aeb0bd;border-bottom:1px solid rgba(255,255,255,.05)}
.mobile-nav a:last-child{border-bottom:none}
.mobile-nav.open{display:flex}
.back-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;background:linear-gradient(135deg,#3B82F6,#8B5CF6);color:#fff;border-radius:100px;font-weight:500;font-size:13px;transition:opacity .2s;text-decoration:none}
.back-btn:hover{opacity:.85}
@media(max-width:900px){
    .nav-desktop{display:none !important}
    .hamburger{display:flex}
    .proj-grid{grid-template-columns:1fr !important}
}
@media(max-width:640px){
    .section-inner{padding-left:20px !important;padding-right:20px !important}
}
