/* Base Variables & Reset */
:root {
    --bg-color: #3b3b3b;
    --text-color: #e0e0e0;
    --text-muted: #8c8c8c;
    --accent-color: #E25822; /* Burnt orange matching the prompt */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #323030;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden; /* Prevent scrolling for the full-screen hero */
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 50px;
    width: 100%;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.logo-area p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #b0b0b0;
    font-weight: 300;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: 15px;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #b0b0b0;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Dynamic Hero & Spotlight Section */
.dynamic-hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    padding-left: 100px; /* Align with header logo */
    overflow: hidden;
}

/* Base & Reveal Backgrounds */
.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease-in-out, filter 0.8s ease;
    z-index: 1;
}

video.hero-bg {
    object-fit: cover;
}

.base-bg {
    filter: brightness(0.5) grayscale(30%); /* Darker, moody default state */
}

.reveal-bg {
    z-index: 2;
    /* CSS Variables updated via JS mousemove */
    --x: 50%;
    --y: 50%;
    -webkit-mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 20%, transparent 80%);
    mask-image: radial-gradient(circle 400px at var(--x) var(--y), black 20%, transparent 80%);
    pointer-events: none; /* Let pointer events pass through to modals/cards */
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%; /* Slightly larger to allow movement without showing edges */
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.layer-splash {
    /* Generated splash will go here */
    background-image: url('assets/watercolor_splash.png');
    background-size: 80%;
    background-position: center right;
    -webkit-mask-image: radial-gradient(ellipse at right center, black 50%, transparent 100%);
    mask-image: radial-gradient(ellipse at right center, black 50%, transparent 100%);
}

.layer-butterfly {
    /* Generated butterfly */
    background-image: url('assets/glowing_butterfly.png');
    background-size: 350px;
    background-position: 80% 50%;
    mix-blend-mode: screen;
    opacity: 0.7;
}

.layer-caligraphy {
    /* User's Caligraphy */
    background-image: url('assets/Caligraphy.png');
    /* Inherits background-size: cover and center from .parallax-layer */
    opacity: 0.85;
}

/* Content Styling */
.content-wrapper {
    max-width: 800px;
    z-index: 10;
    margin-top: 50px;
    display: grid; /* Used to stack the slides in the same spot */
}

.slide-content {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.slide-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.orange-text {
    color: var(--accent-color);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    display: block;
    margin-bottom: 2px;
}

.slide-title {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.slide-desc {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.6;
    font-weight: 300;
}

.slide-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(226, 88, 34, 0.3);
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* About Section */
.about-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}

.about-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    gap: 80px;
    padding: 0 100px;
}

.about-image {
    flex: 1;
}

.profile-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border: 1px solid #444;
}

.about-content {
    flex: 1.2;
}

.about-content.scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 25px;
}

.sub-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 30px 0 10px 0;
    letter-spacing: 0.5px;
}

/* Custom Scrollbar for About Content */
.about-content.scrollable::-webkit-scrollbar {
    width: 6px;
}

.about-content.scrollable::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.about-content.scrollable::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.about-content.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Portfolio Sections Grid */
.portfolio-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.portfolio-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 50px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.portfolio-card {
    background: #222020;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid #383838;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(226, 88, 34, 0.15);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #222;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #383838;
    transition: all 0.4s ease, filter 0.6s ease;
    filter: grayscale(100%);
}

.motion-img {
    background-image: url('assets/motion_graphic_bg.png');
}

.logo-img {
    background-image: url('assets/logo_design_bg.png');
}

.print-img {
    background-image: url('assets/print_design_bg.png');
}

.portfolio-card:hover .card-image {
    border-bottom-color: var(--accent-color);
    filter: grayscale(0%);
}

.placeholder-text {
    font-family: var(--font-body);
    color: #555;
    font-size: 1.2rem;
    font-weight: 500;
}

.card-content {
    padding: 30px 25px;
}

.card-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.portfolio-card:hover .card-title {
    color: var(--accent-color);
}

.card-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #b0b0b0;
    line-height: 1.6;
    font-weight: 300;
}

.card-features {
    list-style: none;
    margin-top: 20px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Subtle divider */
    padding-top: 20px;
}

.card-features li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.card-features li::before {
    content: '▪';
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Digital Art Masonry Gallery */
.gallery-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    align-items: center;
}

.gallery-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    column-count: 4;
    column-gap: 25px;
    padding: 0 60px;
    height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Digital Art Popup Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.modal-caption {
    margin-top: 20px;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 1px;
}

.modal-meta {
    margin-top: 10px;
    color: #e0e0e0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Custom Scrollbar for Gallery Container */
.gallery-container::-webkit-scrollbar {
    width: 6px;
}
.gallery-container::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}
.gallery-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.gallery-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #222;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

/* Placeholder styles if user doesn't have an image */
.gallery-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #555;
    font-size: 1.2rem;
    font-family: var(--font-body);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(226, 88, 34, 0.85); /* Burnt Orange Overlay */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder {
    transform: scale(1.08);
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-transform: uppercase;
}

.gallery-item:hover .overlay-text {
    transform: translateY(0);
}

.modal-controls {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.modal-controls span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.modal-controls span:hover {
    color: #E25822;
}

/* Music Section Overrides */
.music-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 40px 100px 40px;
}

.music-item {
    background: #222;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #383838;
}

.music-item:hover {
    transform: translateY(-5px);
    border-color: #E25822; /* Burnt Orange signature hover */
}

.music-metadata {
    margin-top: 25px;
}

.music-title {
    color: #E25822;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.music-year {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-style: italic;
}

.music-desc {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 300;
}

/* Global Footer */
.main-footer {
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    background: linear-gradient(to top, rgba(25, 25, 25, 0.95) 20%, transparent);
    pointer-events: none; /* Allows clicking through the gradient */
}

.main-footer p {
    color: #777;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
}

/* Motion Graphics Popup Overlay Engine */
.motion-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center; z-index: 2000;
    opacity: 0; transition: opacity 0.4s ease;
}
.motion-overlay.show { display: flex; opacity: 1; }

.motion-container {
    background: rgba(45, 45, 45, 0.6); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 40px; width: 95%; max-width: 1400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8); position: relative;
}
.motion-layout { display: flex; gap: 30px; align-items: stretch; max-height: 80vh;}

.motion-text { flex: 1.1; background: rgba(0,0,0,0.3); border-radius: 8px; padding: 40px; overflow-y: auto;}
/* Hide scrollbar structurally to maintain elegance but enable manual pan */
.motion-text::-webkit-scrollbar { width: 4px; }
.motion-text::-webkit-scrollbar-thumb { background: #E25822; }

.motion-media { flex: 1.5; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-right:15px;}
.motion-media::-webkit-scrollbar { width: 4px; }
.motion-media::-webkit-scrollbar-thumb { background: #555; }

.motion-video-box { width: 100%; border-radius: 8px; overflow: hidden; background: #111; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.motion-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.motion-img-box { border-radius: 8px; overflow: hidden; background: #111; box-shadow: 0 10px 30px rgba(0,0,0,0.4); aspect-ratio: 16/10;}

.close-motion { position: absolute; top: -45px; right: -5px; font-size: 40px; font-family: 'Montserrat', sans-serif; color: #fff; cursor: pointer; transition: color 0.3s ease; }
.close-motion:hover { color: #E25822; }
