/* --- Google Fonts & Basic Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* --- UNIVERSAL COLOR VARIABLES --- */
:root {
  --background-color: #0a192f;
  --panel-color: #112240;
  --panel-rgb: 17, 34, 64;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --accent-color: #64ffda;
  --accent-rgb: 100, 255, 218;
  --accent-color-darker: #13b192;
}

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

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--background-color);
}
/* Add this to your main stylesheet */
#menu-icon {
    display: none;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-top: 2rem;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}
.nav-links a:active{
     color: var(--accent-color);
}

/* --- 3D Scene & Carousel Setup --- */
.scene-container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

.carousel {
    width: 90vw;
    height: 25vh;
    max-width: 1200px;
    min-height: 580px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.carousel-panel {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--panel-color);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 2rem;
    backface-visibility: hidden;
}
/* --- Positioning for all 5 panels (NOW RESPONSIVE) --- */
.panel-home { transform: rotateY(0deg) translateZ(62vw); }
.panel-about { transform: rotateY(72deg) translateZ(62vw); }
.panel-skills { transform: rotateY(144deg) translateZ(62vw); }
.panel-projects { transform: rotateY(216deg) translateZ(62vw); }
.panel-contact { transform: rotateY(288deg) translateZ(62vw); }


/* --- Hero Section Styling --- */
.hero-content {
    flex-basis: 50%;
}
.hero-content h3 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    color: var(--text-secondary);
}
.hero-content h1 {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-darker));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        2px 2px 5px rgba(0,0,0,0.3),
        -1px -1px 2px rgba(100, 255, 218, 0.1);
}
.hero-content .quote {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
}
.social-media {
    margin: 2rem 0;
}
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2rem;
    color: cyan;
    text-decoration: none;
    margin-right: 0.2rem;
    transition: all 0.3s ease;
}
.social-media a:hover {
    transform: scale(1.1);
}

/* This is the new hover effect */
.social-media a:hover {
    transform: translateY(-8px) scale(1.1); /* Lifts up and scales */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
/* --- Social Media Icon Brand Colors on Hover --- */

/* LinkedIn */
.social-media a.linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
}
.social-media a.linkedin:hover i {
    color: #fff;
}

/* GitHub */
.social-media a.github:hover {
    background-color: #fff;
    border-color: #fff;
}
.social-media a.github:hover i {
    color: #171515; /* Dark color for the icon */
}

/* Gmail */
.social-media a.gmail:hover {
    background-color: #EA4335;
    border-color: #EA4335;
}
.social-media a.gmail:hover i {
    color: #fff;
}

/* Instagram */
.social-media a.instagram:hover {
    background: #d6249f;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border-color: transparent;
}
.social-media a.instagram:hover i {
    color: #fff;
}
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 30px;
}
.btn:hover {
      background: linear-gradient(45 deg,var(--accent-color),var(--accent-color),var(--accent-color));
box-shadow: 0 0 20px var(--accent-color),0 0 40px var(--accent-color), 0 0 60px var(--accent-color);
border-radius: 30px;
}
.hero-image-container {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-container img {
    max-width: 90%;
    border-radius: 10px;
}

/* --- About Section Styling --- */
.about-image {
    flex-basis: 40%;
}
.about-image img {
    width: 100%;
    max-w: 350px;
    border-radius: 10px;
}
.about-content {
    flex-basis: 60%;
}
.heading {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    width: 100%;
    text-align: center;
}
.heading span {
    color: var(--accent-color);
}
.about-content p {
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

/* --- Skills Section Styling --- */
.skills-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.skill-card {
    background: var(--background-color);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-10px);
    background: var(--panel-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-color);
}
.skill-card i {
    font-size: 5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* --- About Me Modal Styling --- */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-container.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--panel-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* --- New Contact Section Styling --- */
.panel-contact {
  background-attachment: fixed;
    flex-direction: column;
    justify-content: center;
}
.contact-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}
.contact-container .heading {
    margin-bottom: 2rem;
}
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 2px solid var(--text-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1.6rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
}
.contact-form textarea {
    height: 140px;
    resize: none;
}
.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- Success Pop-up Modal Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-overlay .modal-content {
    background-color: var(--panel-color);
    padding: 3rem;
    border-radius: 1rem;
    border: 2px solid var(--accent-color);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-content i {
    font-size: 6rem;
    color: var(--accent-color);
}
.modal-content h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin: 1rem 0;
}
.modal-content p {
    color: var(--text-secondary);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}
.modal-content .btn {
    width: 100%;
}

/* --- Project Panel & 3D Flip Card Styling (ENHANCED V2) --- */
.panel-projects {
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 0;
    overflow: hidden;
}

.panel-projects .projects-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.panel-projects .projects-conveyor {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    perspective: 1500px;
    overflow: visible;
}

.panel-projects .conveyor-track {
    display: flex;
    width: calc(340px * 12 + 2rem * 12);
    animation: scroll 37s linear infinite;
}

.panel-projects:hover .conveyor-track {
    animation-play-state: paused;
}

.panel-projects .project-card {
    flex-shrink: 0;
    width: 380px;
    height: 400px;
    margin: 0 1rem;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.8s ease, box-shadow 0.8s ease, height 0.8s ease;
    will-change: transform, height, box-shadow;
}

.panel-projects .project-card.is-flipped {
    border-radius: 30px;
    height: 420px; 
    transform: translateY(-10px) rotateY(180deg);
    box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.5), 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.panel-projects .project-card-front,
.panel-projects .project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.panel-projects .project-card-front {
    background-color: var(--panel-color);
}

.panel-projects .project-card-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(var(--panel-rgb), 0.95), transparent);
    z-index: 1;
}

.panel-projects .project-card-front img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    object-position: top;
}

.panel-projects .project-card-front h3,
.panel-projects .project-card-front .project-links {
    position: relative;
    z-index: 2;
}

.panel-projects .project-card-front h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    text-align: center;
    padding: 1rem;
    margin: auto 0;
    line-height: 1.2;
}

.panel-projects .project-links {
    width: 100%;
    padding: 1rem;
    margin-top: auto;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}

.panel-projects .project-links i {
    font-size: 2.8rem;
    color: var(--text-secondary);
}

.panel-projects .project-card-back {
    border-radius: 20px;
    transform: rotateY(180deg);
    background: rgba(7, 17, 36, 0.918);       /* translucent white */
  backdrop-filter: blur(12px);                /* frosted blur */
  -webkit-backdrop-filter: blur(12px);        /* Safari support */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);  /* soft shadow */
    /* background: rgba(var(--panel-rgb), 0.5); */
    /* backdrop-filter: blur(12px); */
    /* -webkit-backdrop-filter: blur(12px); */
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--text-primary);
    padding: 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.panel-projects .card-back-content {
    width: 100%;
    height: 100%;
    padding: 1rem 0.5rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.panel-projects .card-back-content::-webkit-scrollbar {
    display: none;
}

.panel-projects .project-card-back h4 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.panel-projects .project-card-back p {
    color: aliceblue;
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.panel-projects .project-card-back .tech-used {
    font-size: 1.2rem;
    font-style: italic;
    color: cyan;
    margin-bottom: 1rem;
}

.panel-projects .project-card-back .project-links {
    visibility: hidden;
}

/* --- Final Fix: Hover Effect for Card Icons --- */
.panel-projects .project-card a i {
    transform: translateZ(0);
    transition: transform 0.3s ease, color 0.3s ease;
}
.panel-projects .project-card a:hover i {
    color: var(--accent-color);
    transform: scale(1.2) translateZ(0);
}

/* --- NEW: Hide original links and Style the Master Pop-up --- */
#project-links-popup {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    
    display: flex;
    gap: 1.5rem;
    padding: 0.8rem 2rem;
    
    background: var(--panel-color);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);

    transform: translateX(-50%) translateY(-20px); 
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

#project-links-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#project-links-popup a i {
    font-size: 2.8rem; 
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

#project-links-popup a:hover i {
    color: var(--accent-color);
    transform: scale(1.2); 
}
/* --- Contact Form Icon Styling (UPDATED) --- */
.contact-form .input-group {
    position: relative;
    width: 100%;
    display: flex; /* Arrange icon and input side-by-side */
    align-items: stretch; /* Make icon and input the same height */
}

.contact-form .input-group i {
    /* Style for the icon's "box" */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: rgba(var(--panel-rgb), 0.7); /* Glass effect background */
    border: 2px solid var(--text-secondary);
    border-right: none; /* Remove border between icon and input */
    border-radius: 0.5rem 0 0 0.5rem; /* Round the left corners */
    font-size: 2.2rem;
    color: var(--accent-color);
    transition: border-color 0.3s ease;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    border-radius: 0 0.5rem 0.5rem 0; /* Round the right corners */
    /* REMOVED padding-left */
}

/* Adjusts the icon position for the taller textarea */
.contact-form .input-group textarea ~ i {
   align-items: flex-start; /* Align icon to the top */
   padding-top: 1rem;
}

/* Highlight both the icon and input when the user clicks inside */
.contact-form .input-group:focus-within i,
.contact-form .input-group:focus-within input,
.contact-form .input-group:focus-within textarea {
    border-color: var(--accent-color);
}
/* --- Skill Icon Color Customization --- */

.skill-card .bxl-html5 { color: #E34F26; }
.skill-card .bxl-css3 { color: #1572B6; }
.skill-card .bxl-javascript { color: #F7DF1E; }
.skill-card .bxl-react { color: #61DAFB; }
.skill-card .bxl-git { color: #F05032; }
.skill-card .bxl-nodejs { color: #339933; }
.skill-card .bxl-typescript { color: #3178C6; }
.skill-card .bxl-tailwind-css { color: #06B6D4; }
.skill-card .bxl-mongodb { color: #47A248; }
.skill-card .bx-data { color: #4479A1; } /* For MySQL */
/* --- Animated Skill Icon Enhancements --- */

/* 1. Define the animation for floating */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 2. Define the animation for spinning (for React) */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 3. Apply the floating animation to all icons on hover */
.skill-card:hover i {
  animation: float 2s ease-in-out infinite;
}

/* 4. Override the float for the React icon and apply the spin animation instead */
.skill-card:hover .bxl-react {
  animation: spin 3s linear infinite;
}
/* --- 3D Tilt Effect for About Image --- */
/* --- Hero Image "Aura Pan" Effect --- */

.hero-image-container {
    border-radius: 10px; /* Match the image's border-radius for the glow */
    transition: box-shadow 0.5s ease;
}

/* The glowing 'Aura' on hover */
.hero-image-container:hover {
    box-shadow: 0 0 25px cyan;
transform: rotate(3deg);    /* tilt 10° counter-clockwise */
  transform-origin: bottom; 
}

.hero-image-container img {
    /* Set up transitions for the pan (transform) and grayscale (filter) */
    transition: transform 0.2s linear, filter 0.5s ease;
}

/* The grayscale effect on hover */
.hero-image-container:hover img {
    filter: grayscale(100%);
}
/* --- Text Decode Effect Styling --- */
.multiple-text {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}
/* ==============================================
   --- PORTFOLIO MEDIA QUERIES ---
   ============================================== */

/* --- 1. Large Laptops (<= 1200px) --- */
@media (max-width: 1200px) {
    .carousel {
        /* Use viewport-width to make the 3D effect responsive */
        perspective: 1500px;
    }
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* --- 2. Tablets (<= 992px) --- */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 3%;
    }

    .carousel {
        min-height: 700px; /* Give more space for stacked content */
    }

    .carousel-panel {
        /* Stack content inside panels */
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 3rem;
    }

    /* --- Panel-Specific Stacking --- */
    .panel-home .hero-image-container {
        order: -1; /* Move image to the top */
        margin-bottom: 2rem;
    }
    .panel-home .hero-image-container img {
        max-width: 70%;
        margin: 0 auto;
    }
    .panel-home .hero-content {
        flex-basis: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-media {
        justify-content: center;
    }

    .panel-about .about-image {
        margin-bottom: 2rem;
    }
    .panel-about .about-content {
        flex-basis: auto;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr; /* Stack form fields */
    }
}


/* --- 3. Small Tablets & Phones (<= 768px) --- */
/* This is the most important breakpoint. We flatten the 3D carousel. */
@media (max-width: 768px) {
    
    
    /* --- Mobile Navbar --- */
    #menu-icon {
        display: block;
        font-size: 3.6rem;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--panel-color);
        flex-direction: column;
        align-items: center;
        
        /* Hide menu by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-links.active {
        /* This class is toggled by JavaScript to show the menu */
        max-height: 350px; 
        border-bottom: 1px solid var(--accent-color);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    /* --- Flatten the 3D Scene --- */
    .scene-container {
        height: auto;
        perspective: none;
        padding-top: 75px; /* Offset for fixed navbar */
    }

    .carousel {
        width: 90%;
        height: auto;
        min-height: unset;
        transform-style: flat;
        transform: none;
    }

    .carousel-panel {
        position: relative;
        display: block; /* Change from flex to block */
        transform: none !important; /* CRITICAL: Overrides JS inline style */
        opacity: 1 !important;     /* CRITICAL: Overrides JS inline style */
        backface-visibility: visible;
        width: 100%;
        height: auto;
        padding: 2.5rem 2rem;
        margin-bottom: 3rem;
        min-height: unset;
    }

    .panel-home {
        /* Make home panel fill the first view */
        min-height: calc(100vh - 75px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .heading {
        font-size: 3.5rem;
    }

    /* --- Adjust Panels for Vertical Scroll --- */
    
    .panel-home .hero-image-container img {
        max-width: 250px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* --- Flatten Project Conveyor --- */
    .panel-projects .projects-conveyor {
        overflow: visible;
    }
    
    .panel-projects .conveyor-track {
        animation: none; /* Stop the marquee */
        flex-direction: column; /* Stack the cards */
        width: 100%;
        gap: 2rem;
    }

    .panel-projects .project-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    /* --- Add these to your (max-width: 768px) media query --- */

/* Hide the hover-based popup on mobile */
#project-links-popup {
    display: none !important;
}

/* Make the links on the back of the card visible on mobile */
.panel-projects .project-card-back .project-links {
    visibility: visible;
    margin-top: 1rem;
}
/* --- This is the fix to show your project links on mobile --- */

/* Hides the desktop-only hover popup */
#project-links-popup {
    display: none !important;
}

/* Makes the links on the back of the card VISIBLE */
.panel-projects .project-card-back .project-links {
    visibility: visible;
    margin-top: 1rem; /* Adds a little space */
    display: flex; /* Ensures they are aligned */
    justify-content: center;
    gap: 2rem;
}
}


/* --- 4. Small Phones (<= 480px) --- */
@media (max-width: 480px) {
    .carousel {
        width: 95%;
    }
    
    .carousel-panel {
        padding: 2rem 1.5rem;
    }

    .panel-home .hero-content h1 {
        font-size: 4rem; /* Clamp() handles this, but good to check */
    }

    .social-media a {
        width: 3.8rem;
        height: 3.8rem;
        font-size: 1.8rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skill-card {
        padding: 2rem 1rem;
    }
    .skill-card i {
        font-size: 4rem;
    }
}
/* --- 5. Laptops & Desktops (>= 1334px) --- */
/* This locks the 3D carousel's size to match its max-width */
@media (min-width: 1334px) {
    .panel-home { transform: rotateY(0deg) translateZ(826px); }
    .panel-about { transform: rotateY(72deg) translateZ(826px); }
    .panel-skills { transform: rotateY(144deg) translateZ(826px); }
    .panel-projects { transform: rotateY(216deg) translateZ(826px); }
    .panel-contact { transform: rotateY(288deg) translateZ(826px); }
}