@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animated background particles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    opacity: 0.3;
    animation: drift 12s linear infinite;
}

@keyframes drift {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Top Navigation Bar */
.navbar {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 26, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-logo {
    display: flex;
    align-items: center;
    z-index: 21;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.8));
}

.nav-link {
    text-decoration: none;
    color: #00ffff;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
}

/* Desktop navigation */
.desktop-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
    background: transparent;
    border: none;
    margin-left: auto;
    z-index: 50;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: linear-gradient(45deg,#ff00ff,#00ffff);
    margin: 4px 0;
    border-radius: 3px;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.2s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background: #ff006e;
}

.hamburger.active span:nth-child(2) { 
    opacity: 0; 
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background: #ff006e;
}

/* Mobile Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-left: 2px solid rgba(0, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -10px 0 30px rgba(0, 255, 255, 0.1);
}

.nav-menu.active {
    right: 0;
}

.nav-menu .nav-link {
    color: #00ffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-menu .nav-link:hover {
    color: #ff00ff;
    border-color: rgba(255, 0, 255, 0.5);
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px);
}

.nav-menu .nav-link:hover::before {
    left: 0;
}

/* Mobile overlay */
body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Portfolio Title */
.portfolio-main-title {
    font-size: 4rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 2rem 0;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    z-index: 10;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Skills Showcase Section */
.skills-showcase {
    padding: 4rem 2rem;
    position: relative;
    width: 100%;
    max-width: 1400px;
    z-index: 10;
}

.skills-title {
    font-size: 3rem;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.skills-subtitle {
    color: #ccc;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Skills Container */
.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    width: 100%;
}

/* 3D Tech Cube */
.tech-cube-container {
    perspective: 1200px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-cube-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.4);
    animation: pulse 2s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tech-cube {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cube-face:hover {
    border-color: rgba(255, 0, 255, 0.8);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.cube-face.front { transform: rotateY(0deg) translateZ(175px); }
.cube-face.back { transform: rotateY(180deg) translateZ(175px); }
.cube-face.right { transform: rotateY(90deg) translateZ(175px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(175px); }
.cube-face.top { transform: rotateX(90deg) translateZ(175px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(175px); }

.tech-category {
    color: #00ffff;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-list {
    list-style: none;
    text-align: center;
}

.tech-list li {
    color: #fff;
    margin: 0.8rem 0;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-list li:hover {
    color: #ff00ff;
    opacity: 1;
    transform: scale(1.1);
}

/* Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

.section-title {
    font-size: 3rem;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

/* Image Carousel Styles */
.project-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.image-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
      z-index: 1; /* keep carousel below */
}

.carousel-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Image Navigation Arrows */
.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 1;
}
/* Lightbox Modal */

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    margin: 0;
    padding: 0;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 95vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ff000d; /* changed from black to white */
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: -60px;
}

.lightbox-nav.next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
}

#lightboxSpinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  animation: spin .8s linear infinite;
  z-index: 10000;
}
@keyframes spin { 100% { transform: rotate(360deg); } }


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; }
    .lightbox-counter { bottom: 10px; }
    .lightbox-nav { padding: 12px; font-size: 20px; }
    
    .lightbox-content {
        max-width: 95vw; /* avoid overflow past viewport */
        max-height: 95vh;
        padding: 5px;
    }
    
    .lightbox-image {
        max-width: 95vw;
        max-height: 90vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}


/* Make carousel images clickable */
.carousel-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.carousel-image:hover {
    opacity: 0.9;
}
/* Make carousel images clickable - ADD TO YOUR EXISTING CAROUSEL IMAGE STYLES */
.carousel-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.carousel-image:hover {
    opacity: 0.9;
}


.image-nav:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.image-nav.prev {
    left: 10px;
}

.image-nav.next {
    right: 10px;
}

/* Image Indicators */
.image-dot {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-dot.active {
    background: #00ffff;
    transform: translateX(-50%) scale(1.2);
}

.image-dot:hover {
    background: rgba(0, 255, 255, 0.8);
}

/* Project Details */
.project-details {
    padding: 1.5rem;
}

.project-type {
    background: linear-gradient(135deg, #63fff7, #00ffff);
    color: rgb(0, 0, 0);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.4rem;
    color: #00ffff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.feature-tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Skills Statistics */
.skills-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffff;
    display: block;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
}

.stat-label {
    color: #ccc;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Form Section */
.contact-form-section {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(10, 10, 26, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;
}

.form-title {
    font-size: 2.5rem;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #00ffff;
    background: rgba(10, 10, 26, 0.8);
    padding: 0 0.5rem;
}

.submit-btn {
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto Mono', monospace;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
    filter: brightness(1.1);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.close-modal {
    background: none;
    border: none;
    color: #ff00ff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00ffff;
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
}

/* Footer */
.footer {
    margin-top: 5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    width: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
        margin-left: 0;
    }
    
    .navbar-logo {
        flex: 1;
    }
    
    .nav-menu {
        width: 280px;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu .nav-link {
        font-size: 1.2rem;
        min-width: 80%;
    }
}

@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tech-cube {
        width: 280px;
        height: 280px;
    }

    .cube-face {
        width: 280px;
        height: 280px;
    }

    .cube-face.front { transform: rotateY(0deg) translateZ(140px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(140px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(140px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(140px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(140px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(140px); }
}

@media (max-width: 768px) {
    .portfolio-main-title {
        font-size: 2.5rem;
    }

    .skills-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tech-cube {
        width: 220px;
        height: 220px;
    }

    .cube-face {
        width: 220px;
        height: 220px;
    }

    .cube-face.front { transform: rotateY(0deg) translateZ(110px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(110px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(110px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(110px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(110px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(110px); }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-nav {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .image-nav.prev {
        left: 5px;
    }
    
    .image-nav.next {
        right: 5px;
    }

    .contact-form-section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .form-title {
        font-size: 2rem;
    }
}