@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #F8F8F8; 
    color: #333;
    line-height: 1.7;
}

.container {
    /* Increase this number (e.g., from 1200px to 1400px) */
    max-width: 1200px; 
    margin: 0 auto;
    padding: 80px 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    padding: 30px 0;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding-right: 5vw;
    gap: 60px;
}

.nav-links a {
    color: #F8F8F8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b892d1;
}


.hero-section {
    background: radial-gradient(80% 50% at 20%, #9B43B4 0%, #4a1d6e 80%);
    color: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;

}

.hero-image img {
    position: static;
    width: 100%; 
    max-width: 30vw;
    margin: 0 auto;
}
    
.hero-text p {
    font-size: 2rem;
    font-weight: 400;
    color: #F8F8F8;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 550;
    margin: 10px 0 20px;
    line-height: 0.5;
}

.mynameis{
     font-size: 2rem;
    font-weight: 400;
    color: #c782ff;
}

.badge {
    border: 2px solid #F8F8F8;
    padding: 10px 50px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 550;
    letter-spacing: 1.5px;
    display: inline-block;
    text-transform: uppercase;
}

/* --- About Section --- */
.about-section {
    display: flex;
    align-items: center;
    gap: 1vw;
    background-color: #F8F8F8;
}

.about-image {
    flex: 1; /* Allows the image container to share space fairly with the text */
    min-width: 450px; /* Prevents the text from squishing the photo */
}

.about-image img {
    position: relative;
    width: 100%;
    max-width: 600px; /* INCREASED: This makes it much bigger on desktop! */
    margin: 0 auto; /* Keeps it perfectly centered */
    border-radius: 12px; /* Optional: Gives the graduation photo a clean, modern edge */
}

.about-content {
    max-width: 1000px;
    
    /* ADD THESE 3 LINES */
    max-height: 350px; /* Adjust this to match your image height */
    overflow-y: auto;  /* Adds a vertical scrollbar if text overflows */
    padding-right: 15px; /* Adds breathing room so the text doesn't touch the scrollbar */
}

/* Optional: Style the scrollbar so it matches your theme */
.about-content::-webkit-scrollbar {
    width: 6px;
}
.about-content::-webkit-scrollbar-thumb {
    background: #8e44ad; 
    border-radius: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 25px;
    color: #333;
    font-weight: 400;
}
 
.about-content h2 span {
    color: #8e44ad; 
    font-weight: 400;
}

.about-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.3rem;
    text-align: justify;
}   

/* --- Scroll Reveal Animation --- */
.hidden-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Make the text fade in slightly after the image */
.about-content.hidden-scroll {
    transition-delay: 0.2s;
}

.skills-section h2 {
    text-align: left;
    letter-spacing: 8px;
    margin-bottom: 20px;
    font-size: 2.7rem;
    font-weight: 400;
}
.skills-section h2 span {
    color: #8e44ad; 
    font-weight: 400;
}

.skills-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px; 
    gap: 30px;
    overflow-x: auto; 
    overscroll-behavior-x: contain; 
    padding-bottom: 20px; 
    scroll-snap-type: x mandatory; 
}

.skills-grid > * {
    scroll-snap-align: start; 
}

.skills-grid::-webkit-scrollbar {
    height: 4px;
}

.skills-grid::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 4px;
}

.skills-grid::-webkit-scrollbar-thumb {
    background: #a8249c; 
    border-radius: 5px;
}

.skill-card {
    background: #F8F8F8; /* Lighter purple background */
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.skill-card img {
    border-radius: 8px;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #2b0c4a;
    font-weight: 700;
}

.skill-card p {
    font-size: 0.9rem;
    color: #4a1d6e;
    font-weight: 600;
}

/* --- Projects Section --- */
.projects-section {
    text-align: center;
    padding: 60px 20px;
    overflow: hidden; 
}

.projects-section h2 {
    letter-spacing: 0.5em; 
    font-weight: 500;
    font-size: 50px;
    text-align: right;
    margin-bottom: 150px;
}

.projects-section h2 span {
    color: #8e44ad; 
    font-weight: 500;
}

/* --- Carousel Navigation Buttons --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #b892d1;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 10px;
    color: #4a1d6e; /* Your theme purple */
    cursor: pointer;
    z-index: 10; /* Ensures buttons are clickable above the images */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #8e44ad; /* Highlight purple */
    color: #ffffff;
    transform: translateY(-50%) scale(1.1); /* Slight pop effect */
}

/* Position them wide outside the center image */
.prev-btn {
    left: -120px; 
}

.next-btn {
    right: -120px;
}

/* On smaller screens, pull the buttons closer so they don't get cut off */
@media (max-width: 992px) {
    .prev-btn { left: -30px; }
    .next-btn { right: -30px; }
}
/* Set up the carousel container */
.gallery-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Adjust this height based on your actual image dimensions */
    margin: 0 auto 40px auto;
    width: auto;
    max-width: 800px;
    box-shadow: none !important; /* <--- Forces ALL shadows to disappear */
    margin-bottom: 80px;
}

.gallery-carousel img {
    position: absolute; 
    width: 500px; 
    height: 350px; 
    object-fit: cover;
    transition: all 0.4s ease; 
    cursor: pointer; 
}
/* Postion nung 5 projects */
.pos-1 { 
    transform: translateX(-65%) scale(0.7); 
    z-index: 1; 
    opacity: 0.8; 
}
.pos-2 { transform: translateX(-35%) scale(0.85); 
    z-index: 2; 
    opacity: 0.9; }
.pos-3 { 
    transform: translateX(0) scale(1.15); 
    z-index: 3; 
    opacity: 1; 
}
.pos-4 { 
    transform: translateX(35%) scale(0.85); 
    z-index: 2; 
    opacity: 0.9; 
}
.pos-5 { 
    transform: translateX(65%) scale(0.7); 
    z-index: 1; 
    opacity: 0.8; 
} 

.project-item h3 {
    font-weight: 300;
    letter-spacing: 0.2em;
    font-size: 2vw;
    margin-bottom: 20px;
}

.project-item p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #333;
}

.project-item.full-width h3,
.project-item.full-width p {
    transition: opacity 0.3s ease-in-out;
}

.fade-out {
    opacity: 0 !important;
}

/* =========================================
   POSTER GRID LAYOUT
   ========================================= */

.poster-grid {
    display: grid;
    /* This automatically creates columns that fit the screen. 
       If the screen is wide, it makes 3 columns. If it's small, it makes 1. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; /* Space between the posters */
    max-width: 1200px;
    margin: 60px auto; /* Centers the grid on the page */
    padding: 0 20px;
}

/* --- The Individual Cards --- */
.poster-card {
    border-radius: 20px;
    overflow: hidden; /* Keeps the image inside the rounded corners */
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover effect so they pop up when you mouse over them */
.poster-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* --- The Poster Images --- */
.poster-card img {
    width: 100%;
    /* Posters are usually tall, so we give them a good fixed height */
    height: 480px; 
    object-fit: cover; /* Ensures the image doesn't stretch weirdly */
    border-bottom: 2px solid #f0f0f0; /* Tiny separator line */
}

/* --- The Text Below the Poster --- */
.poster-info {
    padding: 30px;
    flex-grow: 1; /* Makes sure the cards stay the same height even if text length varies */
    text-align: left;
}

.poster-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8e44ad;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.poster-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
/* Photography Grid */


.section-subtitle {
    text-align: center;
    letter-spacing: 6px;
    margin-bottom: 40px;
    color: #8e44ad;
    font-weight: 400;
    text-transform: uppercase;
    
    /* ADD THIS LINE */
    font-size: 3vw; 
}

.section-subtitle span {
    color: #333;
}
/* --- Photography Grid Styling --- */
.photography-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px; /* Adjust this to match the space between your photos */
}

.photography-grid img {
    width: 100%;
    /* Change this from auto to a specific height */
    height: 350px; /* Try 300px, 350px, or 400px to see what looks best */
    object-fit: cover;
    
    box-shadow: none !important; 
    border-radius: 11px; 
    background: transparent;
    padding: 0;
    transition: transform 0.3s ease;
}
/* Keep a clean hover effect without adding the shadow back */
.photography-grid img:hover {
    transform: translateY(-5px);
}
/* --- Clothing Designs Section --- */
/* --- Master Spacing for the Clothing Section --- */

.clothing-designs {
    display: flex;
    flex-direction: column;
    /* 1. VERTICAL SPACING: Distance between the 3 different shirts */
    gap: 20px; 
    /* 2. PADDING: Breathing room inside the whole section */
    padding: 60px 20px; 
}

/* Image on Left, Text on Right */
.project-item.flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 3. HORIZONTAL SPACING: Distance between the Image and the Text */
    gap: 60px; 
}

/* Image on Right, Text on Left */
.project-item.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    /* HORIZONTAL SPACING: Keep this exactly the same as .flex-row */
    gap: 60px; 
}

/* 1. The Starting State (Hidden and pushed down 30px) */
.project-item p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    margin-bottom: 20px;
}


/* 2. The Ending State (Fully visible and back to normal position) */
.project-item p.show-text {
    opacity: 1;
    transform: translateY(0);
}


/* --- Mobile Spacing Fixes --- */
@media (max-width: 992px) {
    .clothing-designs {
        gap: 80px; /* Shrink vertical gap between projects on mobile */
        padding: 40px 15px; 
    }
    
    .project-item.flex-row,
    .project-item.flex-row-reverse {
        flex-direction: column; /* Stacks image on top of text */
        gap: 30px; /* Shrink the space between the image and text when stacked */
    }
}

.clothing-designs img {
    width: 55%; 
    max-width: 650px;
    object-fit: fill;
    border: none;
    transition: transform 0.3s ease;
    padding: 0; /* Removes any default padding */
    margin: 20px 0; /* Adds vertical spacing between the image and text */
    gap: 40px;
    
}



/* Keep the hover effect so they still lift up when hovered */
.clothing-designs img:hover {
    transform: translateY(-10px);
}

/* Text Container Styling */
.clothing-designs .project-item:nth-child(1) .project-text h3 {
    text-align: right;
}

.project-text {
    width: 80%;
    max-width: 1300px;
    text-align: left; /* Keeps text aligned nicely next to the image */
}

.project-yunky {
    width: 100%;
    LETTER-SPACING: 0.2em;
    max-width: 1300px;
    text-align: justify; /* Keeps text aligned nicely next to the image */
}

.project-yunky h3 {
    font-size: 2.8rem;
    letter-spacing: normal; /* Wide spacing matching Figma */
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 500;
}

.project-text h3 span {
    color: #ad4444; /* Matching purple color for subtitle */
}

/* Ensure the main h3 for the 3rd item stays dark */
.clothing-designs .project-item:nth-child(3) .project-yunky h3 {
    color: #1d8fe0; 
}

/* Make ONLY the word YUNKY blue */
.yunky-blue {
    color: #333; /* This is the dark blue from your Figma */
}

.project-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}
/* --- Poster Grid Styling --- */
.poster-card {
    display: flex;
    flex-direction: column;
    text-align: left; /* Aligns the text cleanly under the image */
}

.poster-card img {
    width: 150%;
    border-radius: 5px; /* Optional: gives the posters soft corners */
    margin-bottom: 10px; /* Space between the image and the title */
    transition: transform 0.3s ease;
}

.poster-card img:hover {
    transform: translateY(-8px);
}

.poster-info h3 {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: #333; /* Dark text for readability */
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.poster-info p {
    font-size: 0.95rem;
    color: #666; /* Softer gray for the paragraph */
    line-height: 1.2;
    text-align: justify;

}

/* --- Responsive Fix for Mobile & Tablets --- */
/* This ensures the zig-zag layout stacks neatly on smaller screens */
@media (max-width: 992px) {
    .project-item.flex-row,
    .project-item.flex-row-reverse {
        flex-direction: column; /* Stacks image on top of text */
        text-align: center;
        gap: 0px;
    }

    .clothing-designs img {
        width: 80%; /* Takes up more space on mobile */
        max-width: none;
    }

    .project-text {
        width: 90%;
        text-align: center; /* Centers text on mobile */
    }
}

/* --- Bento Box Grid Layout --- */
.photography-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px; /* Fixed height for clean rows */
    gap: 24px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Base Card Styling matching your reference */
.bento-card {
    position: relative; /* Allows us to layer text over the image */
    background-color: #000; /* Dark background behind images */
    border-radius: 24px;
    padding: 0; /* 1. REMOVED PADDING to let image touch the edges */
    display: flex;
    align-items: flex-end; /* Pushes the text to the bottom of the card */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden; /* This is what rounds the corners of the image */
    transition: transform 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
}

/* --- The Grid Math (Mapping exact positions) --- */
/* 1. Tall card spans 1 column, 2 rows */
.bento-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; } 
/* 2. Wide card spans 2 columns, 1 row */
.bento-card:nth-child(2) { grid-column: 2 / 4; grid-row: 1 / 2; } 
/* 3. Square card */
.bento-card:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; } 
/* 4. Square card */
.bento-card:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; } 
/* 5. Wide card spans 2 columns, 1 row */
.bento-card:nth-child(5) { grid-column: 1 / 3; grid-row: 3 / 4; } 
/* 6. Square card */
.bento-card:nth-child(6) { grid-column: 3 / 4; grid-row: 3 / 4; } 

/* --- Internal Card Layouts (Flexbox) --- */
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-row { flex-direction: row ; align-items: center; }

/* Image constraints so they don't break the cards */
.bento-card:hover img {
    transform: scale(1.05);
}

/* --- Image constraints (Full Screen inside box) --- */
.bento-card img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without stretching */
    border-radius: 0; 
    z-index: 1; /* Puts image in the background */
    transition: transform 0.5s ease;
}

/* --- Text Styling (Overlaid on Image) --- */
.bento-text {
    position: absolute; /* Allows us to layer it on top of the image */
    text-align: center;
    z-index: 2; /* 3. Puts text perfectly on top of the image */
    padding: 30px; /* Moves the padding to the text box instead of the outer card */
    width: 100%;
}
.bento-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff; /* Changed to white */
    margin-bottom: 8px;
    line-height: 1.2;
}

.bento-text p {
    font-size: 1rem;
    color: #e0e0e0; /* Changed to light gray */
    line-height: 1.4;
    margin: 0;
}
/* --- Mobile Responsiveness --- */
/* Stacks everything into a neat single column on phones */
@media (max-width: 900px) {
    .photography-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto; /* Let content dictate height on mobile */
    }
    
    /* Reset all grid spans to fit 1 column */
    .bento-card:nth-child(n) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* Force all cards to stack vertically on small screens */
    .bento-card {
        flex-direction: column-reverse;
        padding: 20px;
    }
    
    .flex-row img {
        width: 100%;
        height: 250px; /* Give images fixed height on mobile */
    }
}

/* --- Contact & Social Section --- */
/* =========================================
   CONTACT SECTION (Overlapping Cards)
   ========================================= */
.contact-section {
    padding: 100px 20px;
}

.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
}

/* --- Left Card: Social Media --- */
.social-media-card {
    background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 100%);
    border-radius: 16px;
    /* Extra padding on the right so text doesn't hide behind the purple box */
    padding: 60px 100px 60px 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 450px;
    z-index: 1;
}

.social-media-card h2 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 40px;
    font-weight: 800;
}

.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}

.social-links a i {
    font-size: 1.5rem;
    width: 35px; /* Ensures all icons take up the same space */
    margin-right: 15px;
}

.social-links a:hover {
    color: #8e44ad;
    transform: translateX(5px);
}

/* --- Right Card: Contact Form --- */
.contact-form-card {
    background: linear-gradient(135deg, #3d0046 0%, #5e0066 100%);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    flex: 1.2;
    max-width: 600px;
    
    /* THIS IS THE MAGIC THAT CREATES THE OVERLAP */
    margin-left: -50px; 
    z-index: 2;
}

.contact-form-card h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 800;
}

.field-label {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group.row {
    display: flex;
    gap: 30px;
}

/* Invisible inputs with just a bottom border */
.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #d800ff;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns button and phone number on same line */
    margin-top: 40px;
}

.submit-btn {
    background: #c300ff;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 30px; /* Gives it that pill shape */
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.3s;
}

.submit-btn:hover {
    background: #e44dff;
    transform: translateY(-2px);
}

.phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

/* --- Mobile Fixes for the Overlap --- */
@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
    
    .social-media-card {
        padding: 40px;
        max-width: 100%;
        /* Make the bottom flat so the purple box can sit perfectly on top */
        border-radius: 16px 16px 0 0; 
    }
    
    .contact-form-card {
        /* Remove horizontal overlap, add vertical overlap */
        margin-left: 0;
        margin-top: -30px; 
        max-width: 100%;
        border-radius: 16px;
    }
    
    .contact-form .form-group.row {
        flex-direction: column;
        gap: 25px;
    }
}

/* =========================================
   SIDE SCROLL WHEEL NAVIGATION
   ========================================= */
.side-scroll-nav {
    position: fixed;
    top: 50%;
    left: -150px; 
    /* We add a translateX(-20px) to make it slide slightly left when hiding */
    transform: translateY(-50%) translateX(-20px);
    z-index: 500;
    
    /* NEW: Hide it by default */
    opacity: 0; 
    pointer-events: none; /* Prevents clicking on it while invisible */
    
    /* Smooth fade and slide animation */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* NEW: This class will be added by JavaScript when scrolling */
.side-scroll-nav.is-visible {
    opacity: 1;
    pointer-events: auto; /* Makes it clickable again */
    transform: translateY(-50%) translateX(0); /* Slides it into its proper place */
}

.scroll-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    /* This smooth transition makes the wheel spin nicely */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.wheel-circle {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    /* The purple gradient matching your Figma */
    background: radial-gradient(circle at center, #d870ff 0%, #a200cc 80%);
    box-shadow: 0 0 30px rgba(162, 0, 204, 0.4);
}

.wheel-labels {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    list-style: none;
    margin: 0; padding: 0;
}

.wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Pushes text 170px away from the center (just outside the 150px radius circle) */
    transform-origin: left center;
    margin-top: -12px; 
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #b3b3b3;
    cursor: pointer;
    transition: color 0.3s ease, font-size 0.3s ease;
}

/* Hardcoded angles to fan them out like spokes */
.wheel-label[data-target="home"] { transform: rotate(-60deg) translateX(170px); }
.wheel-label[data-target="about"] { transform: rotate(-30deg) translateX(170px); }
.wheel-label[data-target="skills"] { transform: rotate(0deg) translateX(170px); }
.wheel-label[data-target="projects"] { transform: rotate(30deg) translateX(170px); }
.wheel-label[data-target="contact"] { transform: rotate(60deg) translateX(170px); }

/* The style for whichever section is currently active */
.wheel-label.active {
    color: #333; /* Dark color like in Figma */
    font-size: 16px;
    font-weight: 700;
}

/* Hide the side wheel entirely on tablets and phones */
@media (max-width: 1200px) {
    .side-scroll-nav {
        display: none;
    }
}

/* --- Responsive Design & Mobile Fixes --- */

/* Hamburger Button Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 30px;
    z-index: 2000;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #F8F8F8;
    margin: 4px 0;
    transition: 0.3s ease;
}

/* Tablets and smaller screens */
@media (max-width: 992px) {
    /* Hamburger Menu Logic */
    .menu-toggle {
        display: flex; /* Show the hamburger button */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hides the menu off-screen to the right */
        height: 100vh;
        width: 250px;
        background-color: rgba(30, 10, 45, 0.95); /* Dark purple background */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease; /* Smooth slide animation */
        padding-right: 0;
        gap: 40px;
    }

    /* Class added by JavaScript to slide the menu in */
    .nav-links.mobile-active {
        right: 0; 
    }

    /* Prevent content from hiding behind the transparent navbar */
    .hero-section, .about-section, .contact-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px; 
    }
    
    .hero-text h1 {
        font-size: 2.5rem; /* Shrink giant hero text */
        line-height: 1.2; 
    }

    .hero-image img, .about-image img {
        max-width: 300px;
        margin: 0 auto 30px auto;
        width: 100%;
    }

    .about-image img {
        box-shadow: 0px 15px 0px #e6e6e6;
    }

    .flex-row, .flex-row-reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .project-text, .project-yunky {
        width: 100%;
        max-width: 100%;
    }

    .project-yunky h3 {
        font-size: 2rem;
    }

    .poster-grid, .photography-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group.row {
        flex-direction: column;
    }

    /* Shrink the carousel for tablets */
    .gallery-carousel img {
        width: 350px; 
        height: 245px; 
    }
    .pos-1 { transform: translateX(-55%) scale(0.7); }
    .pos-5 { transform: translateX(55%) scale(0.7); }
}

/* Mobile phones specifically */
@media (max-width: 576px) {
    .container {
        padding: 60px 15px; 
    }

    .poster-grid, .photography-grid {
        grid-template-columns: 1fr; /* Stack into 1 column */
    }

    .hero-text p {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
    
    .contact-form-card, .social-media-card {
        padding: 30px 20px; 
    }

    /* Shrink the carousel further for small phones */
    .gallery-carousel {
        height: 150px;
        margin-bottom: 50px;
    }

    .gallery-carousel img {
        width: 220px; 
        height: 154px; 
    }

    /* Pull the carousel items tighter together so they don't go off-screen */
    .pos-1 { transform: translateX(-40%) scale(0.6); }
    .pos-2 { transform: translateX(-25%) scale(0.8); }
    .pos-4 { transform: translateX(25%) scale(0.8); }
    .pos-5 { transform: translateX(40%) scale(0.6); }

    /* Fix title sizes */
    .projects-section h2 {
        font-size: 35px;
        text-align: center;
        margin-bottom: 60px;
    }
}

/* =========================================
   POP-UP MODAL STYLES (Safely outside media queries)
   ========================================= */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    z-index: 2000; /* Ensure it stays above the navbar */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Class added by JavaScript to show the modal */
.modal-overlay.show {
    display: flex; 
    opacity: 1;
}

.modal-content {
    background-color: #F8F8F8;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.modal-overlay.show .modal-content {
    transform: translateY(0); /* Slides into place */
}

/* The Close Button (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #8e44ad;
}

.modal-content h2 {
    color: #4a1d6e;
    margin-bottom: 15px;
    letter-spacing: 2px;
}