:root {
    --bg-color: #00021a;
    /* Hadopelagic Water */
    --text-color: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-color: #d4af37;
    /* Gold for premium touch */
    --transition-speed: 0.6s;
    /* Updated Typography from reference */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Caudex', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Selection */
::selection {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: transparent;
    /* Transparent on scroll as requested */
    backdrop-filter: none;
    padding: 1rem 5%;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    z-index: 1001;
    /* Above mobile overlay */
}

.logo-container {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 180px;
    /* Adjusted for new logo containing text */
    width: auto;
    filter: invert(1);
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
    filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2002;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

/* Menu Trigger */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 2000;
    /* Above everything */
    color: white;
    /* Default white in header */
    transition: color 0.3s ease;
}

.menu-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    transition: all 0.3s ease;
}

/* Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    /* Align to right */
    left: auto;
    /* Override full width */
    width: 350px;
    /* Small box, not full screen */
    max-width: 85vw;
    height: 100vh;
    background: transparent;
    backdrop-filter: blur(15px);
    /* Premium glass effect */
    color: #f0f0f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Right aligned text */
    padding-right: 3rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.overlay-header {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.close-btn {
    cursor: pointer;
    transition: transform 0.3s ease;
    color: white;
    /* Ensure visibility */
}

.close-btn:hover {
    transform: rotate(90deg);
}

.overlay-content {
    text-align: right;
    width: 100%;
}

.overlay-title {
    font-family: var(--font-heading);
    color: #ccc;
    display: none;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(20px);
    /* Slide from right */
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Reduced font size significantly */
    color: #ffffff;
    /* White text for dark background */
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    /* Increased spacing for aesthetic */
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-color);
}

/* Hamburger Animation State */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    /* Force full coverage */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* Behind regular content */
    overflow: hidden;
}

.hero-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    /* Slight zoom to prevent edges */
    object-fit: cover;
    opacity: 0.7;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 2, 26, 0.4), var(--bg-color));
    z-index: 1;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: letter-spacing 0.6s ease, text-shadow 0.6s ease;
    cursor: default;
}

.hero-content h1:hover {
    letter-spacing: 0.15em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-content .accent-text {
    font-style: italic;
    color: var(--accent-color);
    transition: text-shadow 0.6s ease;
}

.hero-content h1:hover .accent-text {
    text-shadow: 0 0 20px var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
}

.scroll-indicator {
    display: inline-block;
    color: var(--text-color);
    margin-top: 1rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

.scroll-indicator:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: scale(1.1);
    animation-play-state: paused;
}

.scroll-indicator svg {
    display: block;
}



@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(5px);
    }
}

/* Homepage Section Title Effect */
#gallery {
    text-align: center;
}

#gallery .section-title {
    transition: text-shadow 0.6s ease;
    cursor: default;
    display: inline-block;
    /* Ensure it behaves well for hover */
}

#gallery .section-title:hover {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Audio Control */
.audio-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.audio-control:hover {
    opacity: 1;
}

.audio-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: white;
}

.audio-icon-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 15px;
}

.audio-icon-bars .bar {
    width: 3px;
    background-color: var(--accent-color);
    animation: none;
}

/* Playing Animation */
.audio-control.playing .bar {
    animation: soundBars 1s infinite ease-in-out;
}

.audio-control.playing .bar:nth-child(1) {
    height: 60%;
    animation-delay: 0s;
}

.audio-control.playing .bar:nth-child(2) {
    height: 100%;
    animation-delay: 0.1s;
}

.audio-control.playing .bar:nth-child(3) {
    height: 80%;
    animation-delay: 0.2s;
}

.audio-control:not(.playing) .bar {
    height: 3px;
    /* Flat line when paused */
    transition: height 0.3s ease;
}

@keyframes soundBars {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}

/* Portfolio Page Specifics */
.portfolio-hero {
    padding: 15rem 5% 5rem;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: text-shadow 0.5s ease;
    cursor: default;
}

.portfolio-hero h1:hover {
    text-shadow: 0 0 15px var(--accent-color), 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Portfolio Filter Cards */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.filter-card {
    display: flex;
    flex-direction: column;
    /* 3 cards per row with gap handling */
    width: calc(33.333% - 2rem);
    height: 350px;
    /* Increased size */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

/* Glow Title Utility */
.glow-title {
    transition: text-shadow 0.5s ease;
    cursor: default;
}

.glow-title:hover {
    text-shadow: 0 0 15px var(--accent-color), 0 0 30px rgba(212, 175, 55, 0.5);
}

.card-header {
    background-color: #0d1117;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    /* Larger font */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 15px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.card-image {
    flex: 1;
    background-color: #0f2b38;
    /* Removed padding and inner border as requested */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    border: none;
    /* No border on image */
}

/* Hover Effects */
.filter-card:hover {
    transform: translateY(-5px);
}

.filter-card:hover .card-header,
.filter-card.active .card-header {
    color: var(--accent-color);
    background-color: #000;
    border-color: var(--accent-color);
}

.filter-card:hover .card-image,
.filter-card.active .card-image {
    border-color: var(--accent-color);
}

.filter-card:hover .card-image img,
.filter-card.active .card-image img {
    filter: grayscale(0%);
    opacity: 1;
}





/* Expanded Card State */
.filter-card.expanded {
    width: 100% !important;
    /* Force full width */
    height: auto;
    /* Allow growth */
    cursor: default;
    /* Not clickable as a button anymore? or click header to close */
    order: -1;
    /* Move to top if utilizing flex order, or just let it expand */
    z-index: 10;

    margin-bottom: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    /* Background for the expanded area */
    border: 1px solid var(--accent-color);
}

.filter-card.expanded .card-image {
    /* Hide the cover image or make it a banner? 
       User said "inside it... should contain all images".
       Maybe the cover image becomes the banner? */
    height: 300px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-card.expanded .card-image img {
    filter: grayscale(0%);
    opacity: 0.4;
}

/* Container for the grid inside the card */
.inner-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    animation: fadeIn 0.8s ease;
}

.inner-gallery .portfolio-item {
    height: 300px;
    /* specific height for grid items */
}

@media (max-width: 768px) {
    .inner-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Adjust grid layout for mobile */
@media (max-width: 900px) {
    .filter-card {
        width: 45%;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .filter-card {
        width: 100%;
        height: 250px;
    }
}

/* Specific adjustment for 'All' card - REMOVED */

.portfolio-grid-section {
    padding: 0 4rem 8rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 400px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Filtering Logic via opacity/display would be handled by JS usually, 
   but for simple CSS transitions we can use opacity/transform */
.portfolio-item.hidden {
    display: none;
    /* Or use a more complex animation approach */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Ensure faces/tops are prioritized */
    transition: transform 0.8s ease;
    filter: grayscale(20%);
    /* Crop bottom 10% to remove unwanted text/watermarks */
    clip-path: inset(0 0 10% 0);
    /* Make sure the image scales to compensate for the lost height visually, 
       otherwise we just have empty space? 
       No, clip-path just masks. The container size stays same. 
       If we clip the bottom 10%, we see the background of the container?
       No, .portfolio-item usually fits the image.
       If we clip the image, we show the background behind it. 
       
       Better approach: Make image taller, then clip?
       Or use object-fit: cover and object-position: top center 
       and let the container (which has fixed aspect ratio or masonry height) 
       cut it off naturally if we zoomed in?
       
       The Masonry grid has `grid-auto-rows: 400px` (or spanned rows).
       The container `.portfolio-item` has a fixed height (filled by grid).
       The image `height: 100%` fills that.
       
       If I use `height: 115%` and `object-position: top center`:
       The image renders at 115% of the container height.
       The container has `overflow: hidden`.
       The top aligns.
       The bottom 15% overflows and is hidden.
       THIS IS THE CORRECT WAY.
    */
    height: 115%;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 26, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--accent-color);
    margin-top: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Portfolio Grid Spans - Reusing logic */
.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item.tall {
    grid-row: span 2;
}

.portfolio-item.wide {
    grid-column: span 2;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05), transparent);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.outline-btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Gallery Section */
.section-padding {
    padding: 8rem 4rem;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 0;
    /* Collage style - no spaces */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: none;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.gallery-item img.object-top {
    object-position: top center;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-item:hover {
    z-index: 10;
    /* pop out z-index */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay span {
    transform: translateY(0);
}

/* About Section */
#about {
    min-height: 80vh;
    display: flex;
    align-items: center;
    scroll-margin-top: 100px;
    /* Modern CSS scroll offset */
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.magical-text {
    background: linear-gradient(to right,
            var(--text-color) 20%,
            #d4af37 30%,
            #ffd700 40%,
            #d4af37 50%,
            var(--text-color) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: textShine 3s linear infinite;
    display: inline-block;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    /* Prevent it from being taller than viewport */
    object-fit: contain;
    /* Ensure full image is visible */
    border-radius: 2px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
}

/* Contact Section */
.contact-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.email-link {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 5px;
}

.email-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 5rem;
    font-size: 0.8rem;
    color: #ffffff40;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Cursor - Hidden on Touch Devices */
#cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s, height 0.3s, background 0.3s, border-radius 0.3s;
    mix-blend-mode: difference;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0;
    color: black;
    overflow: hidden;
    white-space: nowrap;
}

body:hover #cursor-follower {
    opacity: 1;
}

/* Active States */
#cursor-follower.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: white;
}

#cursor-follower.cursor-view {
    transform: translate(-50%, -50%) scale(4);
    background: white;
    font-size: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Magical Spark Cursor (Fireworks Style) */
#cursor-follower.cursor-magic {
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    mix-blend-mode: screen;
    /* Brighter blending */
    font-size: 0;
}

/* Inner Core - Rapid Pulse */
#cursor-follower.cursor-magic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, #fff 20%, #ffd700 60%, transparent 80%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: corePulse 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 15px #ffd700, 0 0 30px #ff4500;
}

/* Outer Burst - Expanding Fireworks */
/* Outer Burst - Expanding Fireworks */
#cursor-follower.cursor-magic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    /* Starburst pattern using conic gradient */
    background: conic-gradient(from 0deg,
            transparent 0deg, gold 10deg, transparent 20deg,
            transparent 45deg, #ff4500 55deg, transparent 65deg,
            transparent 90deg, gold 100deg, transparent 110deg,
            transparent 135deg, #ff4500 145deg, transparent 155deg,
            transparent 180deg, gold 190deg, transparent 200deg,
            transparent 225deg, #ff4500 235deg, transparent 245deg,
            transparent 270deg, gold 280deg, transparent 290deg,
            transparent 315deg, #ff4500 325deg, transparent 335deg);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: fireworkSpinExpand 1.5s linear infinite;
    mask-image: radial-gradient(circle, transparent 20%, black 100%);
    -webkit-mask-image: radial-gradient(circle, transparent 20%, black 100%);
}

@keyframes corePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes fireworkSpinExpand {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.3);
        opacity: 0;
    }
}



@media (pointer: coarse) {
    #cursor-follower {
        display: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .section-padding {
        padding: 6rem 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        /* Shorter rows for mobile */
    }

    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .about-container {
        flex-direction: column;
    }

    .section-padding {
        padding: 4rem 1.5rem;
    }

    .book-btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    /* Shows Section (Fashion Tab) */
    .shows-section {
        text-align: center;
        padding: 2rem 5% 4rem;
        /* Spacing before grid */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 3rem;
        display: none;
        /* Hidden by default, toggled by JS logic if needed, but 'hidden' class handles it too */
    }

    /* Override default display for showing via class removal */
    .shows-section:not(.hidden) {
        display: block;
        animation: fadeIn 0.8s ease-out;
    }

    .shows-section h2 {
        font-size: 2rem;
        letter-spacing: 0.1rem;
        margin-bottom: 3rem;
        color: var(--text-muted);
        font-weight: 300;
        text-transform: uppercase;
    }

    .shows-logos {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4rem;
        flex-wrap: wrap;
    }

    /* Inner Gallery Controls */
    .gallery-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 100;
        transition: all 0.3s ease;
    }

    .gallery-close-btn:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: rotate(90deg);
    }

    .show-logo {
        height: 80px;
        width: auto;
        object-fit: contain;
        filter: grayscale(100%) invert(1) brightness(10);
        /* Make logo white */
        opacity: 0.8;
        transition: all 0.4s ease;
    }

    .show-logo:hover {
        filter: grayscale(100%) invert(1) brightness(10) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
        opacity: 1;
        transform: scale(1.05);
    }

    @media (max-width: 768px) {
        .shows-logos {
            gap: 2rem;
        }

        .show-logo {
            height: 50px;
        }
    }

    .email-link {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 5rem;
    text-transform: uppercase;
    margin-bottom: 4rem;
    line-height: 1;
    text-align: center;
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.message-group {
    margin-bottom: 4rem;
}

.message-group textarea {
    resize: vertical;
    min-height: 40px;
}

.contact-submit-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    .contact-heading {
        font-size: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s ease;

    /* Crop bottom text/watermarks */
    object-fit: cover;
    object-position: top center;
    clip-path: inset(0 0 8% 0);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Services Page Redesign */
.services-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    /* Use more space */
    margin: 0 auto;
    padding-bottom: 5rem;
    gap: 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    opacity: 0.8;
}

.service-card:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), transparent);
    padding-left: 4rem;
    opacity: 1;
}

.service-image {
    display: none;
    /* Hidden on mobile */
    width: 300px;
    height: 450px;
    margin-right: 4rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.service-details {
    margin-bottom: 3rem;
}

/* Desktop Layout */
@media (min-width: 900px) {
    .service-image {
        display: block;
        /* Visible on desktop */
    }

    .service-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 6rem 4rem;
        /* More generous padding */
    }

    .service-details {
        margin-bottom: 0;
        flex: 1;
        padding-right: 4rem;
    }

    .service-cta {
        text-align: right;
        min-width: 250px;
        flex-shrink: 0;
    }

    .service-card:hover {
        padding-left: 6rem;
        /* Slide content */
    }
}

.service-card h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    font-weight: 300;
}

.service-card .price {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    line-height: 1.6;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card ul li {
    position: relative;
}

.service-card ul li::after {
    content: '/';
    position: absolute;
    right: -18px;
    color: var(--accent-color);
    opacity: 0.5;
    font-weight: 300;
}

.service-card ul li:last-child::after {
    content: '';
}

/* Button Styling */
.book-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.book-btn:hover::before {
    width: 100%;
}

.book-btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

/* =========================================
   Mobile Optimization Overrides
   ========================================= */

@media (max-width: 768px) {

    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
        /* Smaller hero title */
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Navigation Overlay */
    .mobile-nav-links li {
        margin: 1.5rem 0;
    }

    .mobile-link {
        font-size: 2.5rem;
        /* Manageable size */
    }

    /* About Section */
    .about-text h2 {
        font-size: 2.5rem;
    }

    .magical-text {
        font-size: 2.5rem;
        /* Ensure magical text scales */
    }

    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        /* Image on top on mobile */
        width: 100%;
        max-height: 400px;
        overflow: hidden;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column */
        grid-auto-rows: 300px;
        /* Reasonable height */
        gap: 2px;
        /* Tiny gap for visual separation if desired, or 0 if strict collage */
    }

    /* Services */
    .service-card {
        padding: 3rem 1.5rem;
        /* Reduced padding from 6rem */
        text-align: left;
        /* Keep left or center? Header suggests clean simple lines */
        opacity: 1;
        /* Fully visible on mobile since hover is rare */
    }

    .service-card:hover {
        padding-left: 1.5rem;
        /* Disable hover movement */
    }

    /* Contact Form */
    .contact-heading {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .form-row {
        gap: 1.5rem;
        /* Tighter gap */
    }

    .contact-submit-btn {
        width: 100%;
        /* Full width button */
    }

    /* Lightbox Touch Friendly */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
        background: rgba(0, 0, 0, 0.5);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 3rem;
        padding: 20px;
        background: rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {

    /* Small Phone Adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 4rem 1rem;
    }

    .mobile-link {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-auto-rows: 250px;
        /* Shorter images */
    }
}