/* ============================================================
   styles.css — Ayush OS Portfolio
   
   INDEX:
   1.  Fonts
   2.  CSS Variables (Dark / Light Theme)
   3.  Global Reset
   4.  Typography
   5.  Taskbar
   6.  Windows
   7.  Terminal / Skills Window
   8.  Contact Cards
   9.  Buttons
   10. Folder / Projects Grid
   11. Dock
   12. Mobile Responsive (max-width: 768px)
   13. Very Small Screens (max-width: 400px)
   ============================================================ */


/* ============================================================
   1. FONTS
   ============================================================ */
@font-face {
    font-family: 'MochiBoom';
    src: url('Mochi Boom DEMO.ttf') format('truetype');
}


/* ============================================================
   2. CSS VARIABLES
   Dark mode is default. Light mode toggled via JS on <body>
   ============================================================ */
:root {
    --text-color: #ffffff;
    --window-bg:  #121212;
    --header-bg:  #1e1e1e;
}
.light-mode {
    --text-color: #000000;
    --window-bg:  #ffffff;
    --header-bg:  #f3f3f3;
}


/* ============================================================
   3. GLOBAL RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Default arrow cursor everywhere */
* { cursor: default !important; }

/* Pointer cursor on interactive elements */
a, button, .dot, .menu-item, .folder-item, .dock-icon, .download-btn {
    cursor: pointer !important;
}

/* Body — dark wallpaper by default, no scroll */
body {
    background: #000 url('wallpaper-dark.png') no-repeat center center / cover;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--text-color);
    perspective: 1200px; /* Enables 3D depth for hero animation */
    transition: background-image 0.5s ease;
}


/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.mochi-font {
    font-family: 'MochiBoom', sans-serif;
    text-transform: uppercase;
}
.highlight-green { color: #34d399; }
.highlight-blue  { color: #60a5fa; }

/* Each hero character — split by JS for magnetic animation */
.char {
    display: inline-block;
    will-change: transform;
    pointer-events: none;
    color: inherit;
}


/* ============================================================
   5. TASKBAR
   ============================================================ */
.taskbar {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    height: 44px;
    font-size: 14px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
.menu-item {
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 500;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.2); }


/* ============================================================
   6. WINDOWS
   Hidden by default, shown + animated via openWin() in JS
   ============================================================ */
.window {
    position: absolute;
    width: 620px;
    height: 480px;
    background: var(--window-bg);
    border-radius: 12px;
    display: none;
    opacity: 0;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 50;
}
.window-header {
    height: 38px;
    background: var(--header-bg);
    cursor: move !important;
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex-shrink: 0;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.dot:hover { opacity: 0.7; }


/* ============================================================
   7. TERMINAL / SKILLS WINDOW
   ============================================================ */
.terminal-body {
    padding: 25px 35px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #e0e0e0;
}


/* ============================================================
   8. CONTACT CARDS
   ============================================================ */
.contact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
}
.contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: #60a5fa;
}


/* ============================================================
   9. BUTTONS
   .demo-btn   → green pill (project demo links)
   .download-btn → small dark (resume download)
   ============================================================ */
.demo-btn, .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #34d399;
    color: #000 !important;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s;
    position: relative;
    z-index: 100;
}
.demo-btn:hover, .download-btn:hover {
    background: #60a5fa;
    transform: scale(1.05);
}
/* Download button override */
.download-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.download-btn:hover {
    background: #34d399;
    color: #000 !important;
    border-color: transparent;
}


/* ============================================================
   10. FOLDER / PROJECTS GRID
   ============================================================ */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
}
.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    padding: 15px;
    border-radius: 10px;
}
.folder-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}


/* ============================================================
   11. DOCK
   ============================================================ */
.glass-dock {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 70px;
    border-radius: 24px;
}
.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dock-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transform-origin: bottom;
    transition: width 0.1s, height 0.1s;
}
.dock-label {
    position: absolute;
    bottom: 80px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    transform: translateY(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dock-item:hover .dock-label { opacity: 1; transform: translateY(0); }


/* ============================================================
   12. MOBILE RESPONSIVE — max-width: 768px
   ============================================================ */
@media (max-width: 768px) {

    /* Disable 3D perspective — too slow on mobile */
    body { perspective: none; }

    /* Taskbar */
    .taskbar { height: 40px; font-size: 11px; padding: 0 8px; }
    .menu-item { padding: 3px 6px; font-size: 11px; }
    #live-clock { font-size: 10px; letter-spacing: 0; }
    #theme-toggle { font-size: 14px; }

    /* Hero */
    #hero-trigger { margin-top: 28vh; }
    #sub-text { font-size: 10px !important; letter-spacing: 0.1em; }
    #hero-title { font-size: 2.8rem !important; }

    /* Windows — full screen on mobile */
    .window {
        width: 94vw !important;
        height: 78vh !important;
        min-height: unset !important;
        left: 3vw !important;
        top: 11vh !important;
        border-radius: 14px;
        overflow-y: auto;
    }

    /* Folder grid — 2 columns */
    .folder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }
    .folder-item img { width: 44px !important; }
    .folder-item { padding: 10px; }

    /* Terminal */
    .terminal-body { padding: 15px; font-size: 11px; }

    /* Buttons */
    .demo-btn { padding: 7px 14px; font-size: 12px; }

    /* Dock — touch friendly, smaller icons */
    .glass-dock { gap: 8px; height: 58px; padding: 8px 10px; border-radius: 18px; }
    .dock-icon { width: 36px !important; height: 36px !important; }
    .dock-label { font-size: 10px; bottom: 60px; padding: 3px 8px; }
}


/* ============================================================
   13. VERY SMALL SCREENS — max-width: 400px
   ============================================================ */
@media (max-width: 400px) {
    #hero-title  { font-size: 2rem !important; }
    #sub-text    { font-size: 9px !important; }
    .dock-icon   { width: 30px !important; height: 30px !important; }
    .glass-dock  { gap: 5px; padding: 6px 8px; height: 50px; }
    .window      { height: 82vh !important; width: 96vw !important; }
    .menu-item   { padding: 2px 4px; font-size: 10px; }
}