/* --- IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Rajdhani:wght@400;600;700&display=swap');

/* --- VARIABLES --- */
:root {
    /* Neo JPop Tech Palette */
    --bg-main: #F4F5F7;       /* Off-white lab color */
    --bg-surface: #FFFFFF;    /* Pure white */
    --text-main: #111111;     /* Jet black */
    --text-muted: #888888;
    --accent-red: #FF2A2A;    /* The "Anime" Red */
    --tech-line: #D1D5DB;     /* Subtle grid lines */
    
    /* Dimensions */
    --cut-corner: 20px;       /* Size of angled cuts */
    
    /* Fonts */
    --font-display: 'Rajdhani', sans-serif; /* Tech headers */
    --font-body: 'Noto Sans JP', sans-serif; /* Readable body */
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Dot grid background pattern */
    background-image: radial-gradient(var(--tech-line) 1px, transparent 1px);
    background-size: 40px 40px; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; border-left: 5px solid var(--accent-red); padding-left: 1rem; }
h3 { font-size: 1.5rem; }

p { font-weight: 300; }

/* ===== UPDATED TOP NAVIGATION ===== */
.top-nav {
    display: flex;
    justify-content: space-between; /* Spreads links and buttons apart */
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95); /* Keep your existing background */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Fix for the ul list to sit nicely */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-family: 'Arial', sans-serif; /* Or your preferred font */
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link.active, .nav-link:hover {
    color: #ff2a2a; /* Your red accent */
}

/* Container for the new buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Email Icon Button */
.nav-icon-btn {
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s transform 0.3s;
}

.nav-icon-btn:hover {
    color: #ff2a2a;
    transform: scale(1.1);
}

/* Schedule Meeting Button (Cyberpunk Style) */
.nav-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ff2a2a; /* Red Background */
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-family: 'Courier New', monospace; /* Tech font */
    font-weight: bold;
    font-size: 0.85rem;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%); /* Angled edges */
    transition: background 0.3s, transform 0.3s;
}

.nav-cta-btn:hover {
    background: #d60000; /* Darker red on hover */
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-cta-btn span {
        display: inline; /* Ensure text shows on mobile */
    }
}
/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Nav spacing */
    overflow: hidden;
    background: var(--bg-surface);
}

/* The Red Diagonal Slash */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    font-size: 2rem;
    background: var(--accent-red);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
    padding: 2rem;
    gap: 4rem;
}

/* Hero Text Side */
.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    /* Subtle shadow to separate text from background if they overlap */
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5); 
}

/* Japanese vertical text decoration */
.hero-deco-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    left: 2rem;
    top: 20%;
    font-family: var(--font-display);
    color: var(--text-muted);
    letter-spacing: 0.5em;
    font-size: .8rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.bio {
    background: rgba(255,255,255, 0.9);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-left: 3px solid var(--text-main);
    margin-bottom: 2rem;
}

/* Tech Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.role-button {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    /* Angled corners */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}

.role-button:hover {
    background: var(--text-main);
    color: var(--bg-surface);
    transform: translateY(-2px);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: white;
    padding: 1rem 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    /* Aggressive angle */
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.3s;
}

.cta-primary:hover {
    background: #000;
    color: #fff;
}

/* Hero Image Side */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    /* The Anime Diamond Cut */
    clip-path: polygon(20% 0%, 100% 0, 100% 20%, 100% 80%, 80% 100%, 0 100%, 0% 80%, 0% 20%);
    /* Full color by default */
    filter: none; 
    transition: 0.5s;
    border-left: 10px solid white;
    border-bottom: 4px solid white;
}

.hero-image:hover img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Expands on hover */
    transform: scale(1.02);
}

/* Floating Tech Decoration */
.tech-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 10px dashed rgba(255,255,255,0.5);
    border-radius: 50%;
    right:  -200px;
    bottom: -20px;
    animation: spin 20s linear infinite;
    z-index: 0;
}

/* --- NEW TRIANGLE GRAPHIC --- */
.tech-triangle {
    position: absolute;
    width: 500px;
    height: 500px;
    
    /* Material Style: Solid White with low opacity */
    background: rgba(255, 255, 255, 0.15);
    
    /* Create the Play Button Shape */
    clip-path: polygon(30% 20%, 85% 50%, 30% 80%);
    
    /* Positioning: Centered based on the circle's coordinates */
    /* Circle is at right: -200px + 250px (radius) = Center is approx at Right 50px */
    right: -200px; 
    bottom: -20px;
    
    z-index: 2; /* Above the circle (0), Below text (5) */
    pointer-events: none;
    
    /* Optional: Add a subtle backdrop blur for a 'Glass' material look */
    backdrop-filter: blur(2px);
}


@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- SECTIONS GENERAL --- */
.portfolio-section{
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.reels-gallery-section{
    padding: 0rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.selling-section{
    padding: 12rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ===== SERVICES SECTION STYLES ===== */
.services-section {
    padding: 80px 20px;
    background-color: #0a0a0a; /* Matches your dark theme */
    position: relative;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header Styling */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .sys-label {
    font-family: 'Courier New', monospace;
    color: #ff2a2a; /* Your red accent color */
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Tech Cards */
.tech-card {
    background: #141414;
    border: 1px solid #333;
    border-left: 4px solid #ff2a2a; /* Red accent on left */
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #555;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.card-header h3 {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    color: #fff;
}

.icon-glow {
    font-size: 1.8rem;
    color: #ff2a2a;
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.4);
}

/* List Styling */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.list-icon {
    color: #888;
    margin-top: 4px;
    font-size: 1.1rem;
}

.list-content strong {
    display: block;
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.sub-text {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

/* Pricing Highlight */
.highlight-item {
    background: rgba(255, 42, 42, 0.05);
    padding: 10px;
    border-radius: 4px;
    border: 1px dashed #ff2a2a;
}

.highlight-item .list-icon {
    color: #ff2a2a;
}

.price-tag {
    font-family: 'Courier New', monospace;
    color: #ff2a2a;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Card Footer Button */
.card-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.card-footer p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.cta-button.small-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.cta-button.small-btn:hover {
    background: #fff;
    color: #000;
}

.audioterminal-section{
    padding: 0rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Decorative Section Markers */
.portfolio-section::before {
    content: '+ + + +';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    font-family: var(--font-display);
    letter-spacing: 1em;
    color: var(--accent-red);
}

/* --- SELLING SECTION --- */
.selling-section {
    background: var(--text-main);
    color: var(--bg-surface);
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
    margin: 4rem auto;
    text-align: center;
}

.selling-section h3 {
    color: var(--accent-red);
    font-size: 2rem;
}

.selling-section p strong {
    color: var(--accent-red);
}

.selling-section .cta-button {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 1rem 2rem;
    font-weight: 700;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
    margin-top: 1.5rem;
}

.selling-section .cta-button:hover {
    background: var(--accent-red);
    color: white;
}

/* --- GRID & CARDS --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--tech-line);
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.project-card::after {
    /* Corner Accent */
    content: '</>';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.card-thumbnail-container {
    overflow: hidden;
}

.card-thumbnail-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Full color by default */
    filter: none; 
    transition: transform 0.4s ease;
}

.project-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-card:hover .card-thumbnail-container img {
    /* Slight zoom on hover */
    transform: scale(1.05); 
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-tags {
    margin-top: 0.5rem;
}

.card-tags span {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--tech-line);
    padding: 2px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-family: var(--font-display);
    color: var(--text-muted);
}

.loading-message {
    text-align: center;
    font-family: var(--font-display);
    color: var(--text-muted);
}

/* --- MODAL SYSTEM --- */

/* Base State (Hidden) */
.modal {
    position: fixed;
    inset: 0; /* Full screen */
    z-index: 2000; /* On top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Click-through when hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active State (Visible) */
.modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* The Dark Background */
.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.85); /* Dark tint */
    backdrop-filter: blur(8px); /* Blur effect behind */
    z-index: 2001;
    cursor: pointer;
}

/* The Modal Card (Tech Window) */
.modal-content {
    position: relative;
    z-index: 2002;
    background: var(--bg-surface);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    
    /* Neo Tech Borders */
    border: 1px solid var(--text-main);
    border-left: 10px solid var(--accent-red); /* Thick red bar on left */
    
    /* Tech Shape (Angled Corners) */
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 30px), 
        calc(100% - 30px) 100%, 
        0 100%
    );
    
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #eee; }
.modal-content::-webkit-scrollbar-thumb { background: var(--text-main); border-radius: 0; }
.modal-content::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

/* Modal Header */
#modal-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
    line-height: 1;
    color: var(--text-main);
}

/* Decorative line under title */
#modal-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-red);
    margin-top: 10px;
}

/* Close Button (Tech Box) */
.close-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--text-main);
    color: var(--bg-surface);
    border: none;
    font-family: var(--font-display);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2003;
}

.close-button:hover {
    background: var(--accent-red);
    color: white;
}

/* Modal Content Typography */
.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.modal-description p { margin-bottom: 1rem; }
.modal-description a { color: var(--accent-red); font-weight: 700; text-decoration: underline; }

/* Tags (Tech Capsules) */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--tech-line);
}

.modal-tags span {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.3em 1em;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* External Link Buttons */
.external-links-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.external-link-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--text-main);
    color: white;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
    transition: 0.3s;
}

.external-link-button:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
    color: white;
}

/* Plyr / Video / Audio Overrides */
.video-container { margin-bottom: 2rem; width: 100%; aspect-ratio: 16/9; background: #000; }
.modal-audio-container { margin-top: 2rem; padding: 1rem; background: #f4f4f4; border-left: 3px solid var(--accent-red); }
.modal-audio-container h4 { font-size: 1rem; margin-bottom: 1rem; }
.modal-image-carousel img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }

/* --- FOOTER --- */
.site-footer {
    background: var(--bg-surface);
    border-top: 5px solid var(--text-main);
    padding: 4rem 2rem;
    text-align: center;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 1rem;
}

.social-icons a:hover {
    color: var(--accent-red);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero::before {
        width: 100%;
        height: 40%;
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
        top: auto;
        bottom: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .hero-text h1 { font-size: 3rem; }
    
    .hero-image { order: -1; }
    
    .hero-deco-text { display: none; }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%; /* Full screen on mobile */
        max-height: 100vh;
        border: none;
        clip-path: none;
        padding: 4rem 1.5rem 2rem 1.5rem; /* More top padding for close button */
    }
    .close-button {
        position: fixed; /* Stick to screen on mobile */
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}


/* --- UPDATED REELS STYLING (CROP UI) --- */

.reels-gallery-section .splide {
    padding: 2rem 0;
}

.splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
}

/* THE MASK CONTAINER */
.reel-frame {
    background: var(--bg-surface);
    border: 1px solid var(--text-main);
    
    /* 1. Set Fixed Dimensions for the Crop Window (9:16 Aspect Ratio) */
    width: 330px; 
    height: 600px; 
    
    /* 2. Hide everything outside this box */
    overflow: hidden; 
    position: relative;
    
    /* Tech Style Effects */
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1);
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%
    );
    transition: transform 0.3s ease, border-color 0.3s ease;
    
    /* Flex to align iframe */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns iframe to top so we can pull it up */
}

/* TARGET THE IFRAME INSIDE */
.reel-frame iframe.instagram-media {
    /* 3. Pull the iframe UP to hide the User Header */
    margin-top: -58px !important; 
    
    /* 4. Force Width/Height to ensure video fills the frame */
    width: 100% !important;
    min-width: 100% !important;
    
    /* Make iframe tall enough so the video fills the view, 
       and the caption gets pushed out of the .reel-frame overflow */
    height: 750px !important; 
    
    position: relative;
    z-index: 1;
}

/* HOVER EFFECTS */
.reel-frame:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 8px 8px 0px rgba(255, 42, 42, 0.2);
}

/* Custom Arrows (Kept from previous design) */
.splide__arrow {
    background: var(--text-main);
    opacity: 1;
    border-radius: 0;
    width: 3rem;
    height: 3rem;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.splide__arrow svg { fill: var(--bg-surface); }
.splide__arrow:hover { background: var(--accent-red); }

/* Responsive adjustments */
@media (max-width: 480px) {
    .reel-frame {
        width: 300px;
        height: 550px;
    }
}


/* --- AUDIO TERMINAL STYLING --- */

.audio-terminal-container {
    max-width: 2000px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--text-main);
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    
    /* The Tech "Cut" Shape */
    clip-path: polygon(
        20px 0, 
        100% 0, 
        100% calc(100% - 20px), 
        calc(100% - 20px) 100%, 
        0 100%, 
        0 20px
    );
}

/* Header Bar */
.terminal-bar {
    background: var(--text-main);
    color: var(--bg-surface);
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: space-between;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Grid Layout */
.terminal-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

/* LEFT: Player Screen */
.player-screen {
    position: relative;
    background: #000;
    border-right: 1px solid var(--text-main);
    min-height: 300px;
}

/* Scanline Overlay Effect */
.screen-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none; /* Let clicks pass through */
    z-index: 5;
}

/* RIGHT: Track List */
.track-list-container {
    background: var(--bg-main);
    max-height: 300px;
    overflow-y: auto;
}

/* Custom scrollbar for list */
.track-list-container::-webkit-scrollbar { width: 6px; }
.track-list-container::-webkit-scrollbar-thumb { background: var(--accent-red); }

.tech-track-list {
    padding: 0;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--tech-line);
    cursor: pointer;
    transition: 0.2s ease;
}

.track-item:last-child { border-bottom: none; }

.track-item:hover {
    background: #fff;
    padding-left: 1.5rem; /* Slide effect */
}

/* Active State */
.track-item.active {
    background: var(--text-main);
    color: var(--bg-surface);
}

.track-item.active .track-id { color: var(--accent-red); }
.track-item.active .track-genre { color: #aaa; }

/* Typography */
.track-id {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 1rem;
    color: var(--text-muted);
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.track-genre {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
    .player-screen {
        border-right: none;
        border-bottom: 1px solid var(--text-main);
    }
}


/* 1. The Mask Container */
.instagram-crop {
    width: 100%;
    /* Set the Width/Height ratio to match a Reel (9:16) */
    /* Adjust '350px' to your preferred card width */
    max-width: 350px; 
    height: 450px; /* Fixed height to cut off the bottom caption/footer */
    overflow: hidden; /* This cuts off the UI */
    position: relative;
    border-radius: 15px; /* Optional: rounds the corners of your video */
    margin: 0 auto;
}

/* 2. Target the iframe that Instagram generates */
.instagram-crop iframe {
    position: absolute;
    left: 0;
    width: 100% !important; /* Force width */
    
    /* THE MAGIC NUMBERS */
    /* Pull the iframe UP to hide the user profile header */
    top: -65px; 
    
    /* Make the iframe taller than the container so the bottom UI 
       gets pushed out of the visible area */
    height: 125% !important; 
    
    /* Optional: Scale up slightly to hide white borders if they appear */
    transform: scale(1.02); 
    transform-origin: top center;
}

/* --- HERO IMAGE & BACKGROUND TEXT UPDATE --- */

/* Ensure the container allows layering */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Establish stacking context */
}

/* The Profile Picture */
.hero-image img {
    position: relative;
    z-index: 10; /* Places image vertically ON TOP of the text */
    /* ... keep your existing clip-path and width styles here ... */
}

/* The New "GU RE MI" Text - RIGHT ALIGNED */
.hero-bg-text {
    position: absolute;
    top: 50%;
    
    /* Changed from centering to Right Alignment */
    right: 0; 
    left: auto; 
    transform: translateY(-50%); /* Only center vertically now */
    
    display: flex;
    flex-direction: column;
    
    /* Aligns the letters themselves to the right */
    align-items: flex-end; 
    justify-content: right;
    
    z-index: 5; 
    pointer-events: none; 
    line-height: 0.85; 
    width: 100%;
    
    /* Adds a small gap so it doesn't touch the exact edge of the screen/container */
    padding-right: 2rem; 
}

.hero-bg-text span {
    font-weight: 700;
    font-size: 12rem; 
    color: white; 

    opacity: 1; 
    user-select: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; /* Needs to be bold for the outline to look good */
    letter-spacing: 0.05em;
    
    /* Optional: If you want the text to tilt slightly for speed effect */
    /* font-style: italic; */
}

/* Middle syllable accent */
.hero-bg-text span:nth-child(2) {
    -webkit-text-stroke: 3px var(--accent-red);
    
    /* Optional: Offset the middle text slightly to the left for a 'glitch' offset look */
    /* margin-right: 20px; */ 
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-bg-text span {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .hero-bg-text span {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .hero-bg-text span {
        font-size: 6rem;
    }
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   (Single Row Nav + Icon Button)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Force Single Row Layout */
    .top-nav {
        flex-direction: row; /* Keep elements side-by-side */
        align-items: center;
        padding: 10px 15px;
        gap: 15px;
        height: 60px; /* Fixed height for consistency */
        overflow: hidden;
    }

    /* 2. Scrollable Text Links (Ticker Tape Style) */
    .nav-links {
        display: flex;
        flex-direction: row;
        width: auto;
        flex-grow: 1; /* Take up remaining space */
        justify-content: flex-start;
        gap: 20px;
        overflow-x: auto; /* Allow horizontal scroll */
        white-space: nowrap; /* Prevent text wrapping */
        padding-right: 10px; /* Space before icons */
        
        /* Hide Scrollbar for clean tech look */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .nav-links::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }

    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    /* 3. Action Buttons Container */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0; /* Prevent icons from getting squashed */
        margin-top: 0;
        width: auto;
        padding-left: 10px;
        border-left: 1px solid #ddd; /* Separator line */
    }

    /* 4. Transform "SCHEDULE_MEET" into an Icon */
    .nav-cta-btn span {
        display: none; /* Hide the text */
    }

    .nav-cta-btn {
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px; /* Soft square tech look */
        clip-path: none; /* Remove the angled cut to save space */
    }
    
    .nav-cta-btn i {
        font-size: 1rem;
    }

    /* --- HERO & OTHER FIXES (Keep these from previous step) --- */
    .hero { padding-top: 80px; padding-bottom: 2rem; min-height: auto; }
    .hero-container { flex-direction: column-reverse; gap: 2rem; padding: 0.8rem; }
    .hero-text { text-align: left; width: 100%;}
    .hero-text h1 { font-size: 3rem; }
   .hero-bg-text {
        /* Reset positioning from desktop */
        top: 45%;  /* Position vertically near the middle */
        left: 50%; /* Position horizontally at 50% */
        right: auto;
        bottom: auto;
        
        /* Perfect Centering Technique */
        transform: translate(-50%, -50%);
        
        /* Layout */
        width: 100%;
        align-items: center;
        justify-content: center;
        padding-right: 0;
        z-index: 0; /* Ensure it stays behind the image */
    }

    .hero-bg-text span {
        /* Responsive size */
        font-size: 25vw; 
        
        /* COLOR CHANGE: Black text */
        color: #000000; 
        
        /* Opacity: High enough to be seen, low enough to not block content */
        opacity: 0.5; 
    }
    .hero-image img { max-width: 80%; margin: 0 auto; clip-path: none; border: none; }
    .tech-circle, .tech-triangle { display: none; }
    
    /* Global Section Padding */
    .services-section, .selling-section, .portfolio-section { padding: 3rem 1rem; clip-path: none; }
    
    /* Reels & Modal */
    .reel-frame { width: 100%; max-width: 300px; height: 533px; margin: 0 auto; }
    .instagram-crop iframe { top: -50px; }
    .modal-content { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; padding: 4rem 1.5rem; clip-path: none; border: none; }
    .close-button { position: fixed; top: 10px; right: 10px; z-index: 9999; background: var(--accent-red); width: 40px; height: 40px; }
}

/* --- Fix the "GU RE MI" Giant Text on Mobile --- */
 

    
    /* Optional: Middle letter outline style for mobile */
    .hero-bg-text span:nth-child(2) {
        -webkit-text-stroke: 1px var(--accent-red);
        color: transparent; /* Makes the middle letter just an outline */
        opacity: 0.8; /* Slightly more visible for the red outline */
    }

    /* --- CENTER BIO & BUTTONS --- */
    
    /* 1. Fix the Bio Text Box */
    .bio {
        text-align: left; /* Center the text lines */
        border-left: none;  /* Remove the black left bar */
        border-top: 3px solid var(--text-main); /* Move the bar to the top for symmetry */
        width: calc(90% - 0.5rem);
        padding: 1.5rem rem; /* Adjust padding for mobile width */
    }

    /* 2. Fix the Buttons (Composer, Producer, etc.) */
    .button-group {
        justify-content: left; /* Push buttons to the middle */
        width: 90%;
        margin-bottom: 2rem; /* Add space before the big Discord button */
    }

    /* 3. Ensure the Role Buttons don't stretch weirdly */
    .role-button {
        font-size: 0.9rem; /* Slightly smaller text for mobile fitting */
        padding: 0.6rem 1rem;
    }


    