        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html, body {
            min-height: 100%;
            height: 100%;
            overflow-x: hidden; 
        }
        
        .mobile-menu-btn {
            display: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }
        
        .mobile-menu-btn:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .dark .mobile-menu-btn:hover {
            background-color: rgba(255, 255, 255, 0.05);
        }
        
        .mobile-menu-btn .bar {
            display: block;
            width: 25px;
            height: 3px;
            background-color: #374151;
            margin: 5px 0;
            transition: 0.3s;
            border-radius: 3px;
        }
        
        .dark .mobile-menu-btn .bar {
            background-color: #d1d5db;
        }
        
        .mobile-menu-btn.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-6px, 6px);
        }
        
        .mobile-menu-btn.active .bar:nth-child(2) {
            opacity: 0;
        }
        
        .mobile-menu-btn.active .bar:nth-child(3) {
            transform: rotate(45deg) translate(-6px, -6px);
        }
        
        .mobile-menu {
            position: fixed;
            top: 64px;
            right: -100%;
            width: 250px;
            height: calc(100vh - 64px);
            overflow-y: auto;
            overflow-x: hidden;
            padding-top: 1rem;
        }
        
        @media (max-width: 768px) {
            .content-container {
                height: auto !important;
                min-height: calc(100vh - 60px);
            }
        }
        
        @media (min-width: 769px) {
            .content-container {
                min-height: calc(100vh - 64px);
            }
        }
        
        .back-btn-desktop {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            text-decoration: none;
        }
        
        .back-btn-desktop:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .dark .back-btn-desktop {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }
        
        @media (max-width: 639px) {
            .back-btn-desktop {
                display: none;
            }
        }
        
        .project-image-container {
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 0.75rem;
            overflow: hidden;
            background: transparent;
            min-height: 250px;
        }
        
        .project-image-container:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .project-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        @media (max-width: 768px) {
            .project-image-container {
                min-height: 200px;
            }
        }
        
        .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);
            }
        }
        
        .back-btn-desktop {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50px;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
            text-decoration: none;
        }
        
        .back-btn-desktop:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .dark .back-btn-desktop {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
        }
        
        @media (max-width: 639px) {
            .back-btn-desktop {
                display: none;
            }
        }
        
        .project-image-container {
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 0.75rem;
            overflow: hidden;
            background: transparent;
            min-height: 250px;
        }
        
        .project-image-container:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }
        
        .project-image-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        @media (max-width: 768px) {
            .project-image-container {
                min-height: 200px;
            }
        }
        
        .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) {
            .content-container {
                -webkit-overflow-scrolling: touch;
            }
            
            .grid {
                display: flex;
                flex-direction: column;
            }
        }