/* 
           ========================================
           1. CONFIGURATION & VARIABLES
           ========================================
        */
:root {
    --bg-color: #020c1b;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --accent-color: #00ffff;
    --font-main: "Courier New", Courier, monospace;
    --modal-bg: rgba(2, 12, 27, 0.98);
    --border-color: rgba(0, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
    }

    .crosshair-h,
    .crosshair-v,
    .cursor-plus {
        display: none !important;
    }
}

/* 
           ========================================
           2. CROSSHAIR CURSOR
           ========================================
        */
.crosshair-v {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.crosshair-h {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.cursor-plus {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.cursor-plus::before,
.cursor-plus::after {
    content: "";
    position: absolute;
    background-color: #ffffff;
}

.cursor-plus::before {
    width: 2px;
    height: 14px;
}

.cursor-plus::after {
    width: 14px;
    height: 2px;
}

/* 
           ========================================
           3. BACKGROUND CANVAS
           ========================================
        */
#ocean-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 
           ========================================
           4. NAVIGATION
           ========================================
        */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(2, 12, 27, 0.9), transparent);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    background: rgba(0, 255, 255, 0.05);
}

.brand-name {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

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

.nav-links li {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-letter {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.1rem;
    margin-right: 1px;
}

.nav-links li:hover,
.nav-links li.active {
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* 
           ========================================
           5. MAIN SLIDER LAYOUT
           ========================================
        */
.container {
    display: flex;
    width: 500vw;
    height: 100vh;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    padding-top: 80px;
}

.panel-left {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
    z-index: 2;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-line {
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-color) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 20px rgba(0, 255, 255, 0.15));
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.font-xl {
    font-size: clamp(3.5rem, 7vw, 7rem);
    letter-spacing: -3px;
}

.font-lg {
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -2px;
}

.font-md {
    font-size: clamp(1.5rem, 3vw, 3rem);
    letter-spacing: 2px;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.visible .hero-line {
    opacity: 1;
    transform: translateX(0);
}

.panel-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 120px 0 60px;
    position: relative;
}

.panel-right::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    bottom: 30%;
    width: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    opacity: 0.8;
}

.section-label {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-weight: bold;
    display: block;
}

.description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    text-align: justify;
}

.btn-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    align-self: flex-start;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    background-color: rgba(0, 255, 255, 0.05);
    cursor: none;
}

/* CHANGE: User requested width update */
.panel-right .btn {
    min-width: 150px;
    text-align: center;
}

/* CHANGE: Developer button rules updated to stop stretching and center the group */
#mainContainer > section:nth-of-type(4) .btn-container {
    flex-wrap: nowrap;
    justify-content: left; /* Center the group of buttons */
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.4s;
}

/* 
           ========================================
           6. MODALS & OVERLAYS
           ========================================
        */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--accent-color);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* SPECIAL LARGE SIZE FOR LIGHTBOX */
#modal-lightbox .modal-content {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    max-height: none;
    padding: 0;
    border: 1px solid var(--border-color);
}

/* CUSTOM SIZE FOR REVIEWS - LARGER AS REQUESTED */
#modal-reviews .modal-content {
    max-width: 900px;
    height: 80vh;
}

/* CUSTOM SIZE FOR CONSULTATION - LARGER AS REQUESTED */
#modal-consultation .modal-content {
    max-width: 800px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

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

.form-group {
    margin-bottom: 20px;
}

/* Multi-column Layout for Contacts */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

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

.form-label {
    display: block;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* NEW: Feedback Modal Specifics */
#modal-feedback {
    z-index: 2001;
    /* Ensure it's on top of other modals */
}

#modal-feedback .modal-content {
    max-width: 500px;
    /* Smaller than main modals */
}

/* NEW: Custom File Upload Button */
.file-upload-btn {
    display: inline-block;
    cursor: none;
    /* Inherit cursor style */
    text-align: center;
    width: auto;
}

#file-info {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-height: 1.2em;
    /* Prevent layout shift */
    font-style: italic;
}

/* --- REVIEW LOG STYLES --- */
.log-container {
    /* Occupy remaining height in the larger modal */
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
    overscroll-behavior: contain;
}

.log-entry {
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    border-left: 2px solid var(--accent-color);
    background: rgba(0, 243, 255, 0.05);
}

.log-header {
    color: var(--accent-color);
    font-size: 0.75rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.log-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-style: italic;
}

.log-footer {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 10px;
    text-align: right;
}

/* 
           ========================================
           6.1. PORTFOLIO GALLERY & SCROLLBAR STYLES
           ========================================
        */

/* --- CUSTOM SCROLLBAR --- */
.log-container,
.gallery-content-panels {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.log-container::-webkit-scrollbar,
.gallery-content-panels::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track,
.gallery-content-panels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.log-container::-webkit-scrollbar-thumb,
.gallery-content-panels::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.log-container::-webkit-scrollbar-thumb:hover,
.gallery-content-panels::-webkit-scrollbar-thumb:hover {
    background-color: #33ffff;
}

.modal-header-bar {
    flex-shrink: 0;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.project-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-gallery {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.gallery-slider-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* SIMPLIFIED TABS (Minimalist) */
.gallery-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    padding-left: 20px;
    background: transparent;
}

.gallery-tab {
    padding: 15px 25px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    background: transparent;
}

.gallery-tab:hover {
    color: var(--text-primary);
}

.gallery-tab.active {
    color: var(--accent-color);
    font-weight: bold;
}

.gallery-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* PANELS */
.gallery-content-panels {
    flex-grow: 1;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    /* === FIX: Prevents layout shift from scrollbar appearing/disappearing === */
    scrollbar-gutter: stable;
}

.gallery-panel {
    display: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.gallery-panel.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* MEDIA HANDLING */
.media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #1a1a1a;
    position: relative;
}

.media-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* DESCRIPTION TEXT STYLE */
.text-panel-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 1rem;
}

/* CODE BLOCK (No Syntax Highlight) */
.code-block {
    background: #0e1016;
    border: 1px solid #333;
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    font-family: "Courier New", monospace;
    color: #f8f8f2;
    text-align: left;
    white-space: pre;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NAVIGATION BAR (Bottom) */
.gallery-navigation {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
}

.gallery-nav-btn {
    background: none;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 20px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-nav-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    background: rgba(0, 255, 255, 0.05);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #444;
    color: #444;
    box-shadow: none;
}

.gallery-counter {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: bold;
    letter-spacing: 2px;
}
