/* Global Variables & Reset */
:root {
    --bg-dark: #080300;
    --text-main: #fcf1eb;
    --text-muted: #bda293;
    
    --accent-blue: #ff5e00;
    --accent-purple: #ff2a00;
    --accent-pink: #ff9100;
    
    --glass-bg: rgba(30, 10, 0, 0.5);
    --glass-border: rgba(255, 100, 50, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    text-shadow: 0 0 20px rgba(255, 94, 0, 0.5);
}

.neon-icon {
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue));
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 42, 0, 0.4);
}

.primary-btn:hover {
    box-shadow: 0 0 25px rgba(255, 94, 0, 0.7);
    transform: translateY(-2px);
}

.secondary-btn {
    color: var(--text-main);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 94, 0, 0.1);
    color: var(--accent-blue);
}

/* Page Layouts for Sub-pages */
.page-container {
    padding: 150px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

/* Sections */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 120px 5% 50px;
    gap: 40px;
    position: relative;
}

.hero-bg-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 16 / 9; /* Matches standard 8k/HD aspect ratio to prevent cropping */
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(255, 94, 0, 0.2);
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image is always visible */
    /* Smooth, non-cartoonish breathing animation */
    animation: slowBreath 25s ease-in-out infinite alternate;
}

.hero-glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle overlay, no blur, to keep the 8k image sharp */
    background: rgba(8, 3, 0, 0.1);
    z-index: 2;
    pointer-events: none; /* Let mouse events pass to the interactive image */
}

@keyframes slowBreath {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    margin-top: 0;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 30px;
}

.hero .title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Custom OS Section */
.os-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.os-info {
    padding: 40px;
}

.os-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.os-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.progress-container {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-blue);
}

.os-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 600;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card:hover .overlay {
    transform: translateY(0);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 94, 0, 0.15);
}

.project-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: linear-gradient(45deg, #3a1505, #1f0b02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.project-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(255, 94, 0, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    border: 1px solid rgba(255, 94, 0, 0.3);
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.project-details p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 12px;
}

/* Footer */
.footer {
    margin-top: 100px;
    padding: 40px 5%;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Initial States for GSAP */
.gs-reveal, .gs-reveal-left, .gs-reveal-right, .gs-reveal-up {
    opacity: 0;
    visibility: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .os-showcase {
        grid-template-columns: 1fr;
    }
    .hero .title {
        font-size: 3.5rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero .title {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* --- Custom Cursor & Particles --- */
* { cursor: none !important; }
.cursor-dot {
    width: 6px; height: 6px; background: #00ff00; border-radius: 50%;
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00ff00;
}
.cursor-particle {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999998;
    background: #00ff00; border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* --- Terminal Exhibit --- */
.exhibit-terminal {
    background: #0a0a0a; color: #a8b2c1; font-family: 'Consolas', 'Courier New', monospace;
    padding: 30px; border-radius: 12px; border: 1px solid rgba(0, 255, 0, 0.2); position: relative;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.05); overflow: hidden; text-align: left;
    line-height: 2; font-size: 1.1rem;
}
.exhibit-terminal::before {
    content: "root@star-tech:~/indac-os# cat README.md";
    display: block; color: #00ff00; margin-bottom: 20px; font-weight: bold;
}
.exhibit-terminal strong { color: #fff; }
.exhibit-terminal .badge {
    color: white; padding: 2px 6px; font-size: 0.8rem; font-weight: bold; margin: 0 4px; display: inline-block; border-radius: 2px;
}
.exhibit-terminal .badge-red { background-color: #a53026; }
.exhibit-terminal .badge-orange { background-color: #d6892e; }

/* --- Mobile Hamburger Menu --- */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1000;
    width: 30px;
    height: 20px;
    position: relative;
    margin-left: 15px;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    transition: 0.3s;
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { top: 18px; }

.mobile-menu-btn.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        z-index: 999;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-content > div[style*="display: flex"] {
        display: none !important;
    }
    .nav-content > div[style*="display: flex"].active {
        display: flex !important;
        position: absolute;
        top: 320px;
        left: 0;
        width: 100%;
        justify-content: center;
        background: rgba(10, 10, 10, 0.95);
        padding-bottom: 20px;
        z-index: 999;
    }
    .nav-links li { margin: 15px 0; }
}

/* --- Apple-Style Splash Screen --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, transform 1s ease;
}
#splash-text {
    font-size: 8rem;
    font-weight: 400;
    font-family: 'Great Vibes', cursive;
    
    /* SVG Tracing properties */
    fill: transparent;
    stroke: #ffd700;
    stroke-width: 1.5px;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

#splash-text.writing {
    animation: drawStroke 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards, fillText 0.8s ease-in 2.8s forwards;
}

#splash-text.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

@keyframes drawStroke {
    0% { stroke-dashoffset: 2000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes fillText {
    0% { fill: transparent; stroke: #ffd700; }
    100% { fill: #ffd700; stroke: transparent; }
}
.splash-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* --- Smooth Page Transitions --- */
body {
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease;
    filter: blur(10px);
}
body.page-enter {
    opacity: 1;
    filter: blur(0px);
}
body.page-exit {
    opacity: 0;
    filter: blur(10px);
}

/* --- MacOS Code Snippet Window Styling --- */
.mac-window {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 20px 0;
    text-align: left;
}
.mac-header {
    background: #2d2d2d;
    padding: 12px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }
.mac-window pre {
    margin: 0;
    padding: 20px;
    font-size: 0.95rem;
    overflow-x: auto;
}
.mac-window code {
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.5;
}
