/* --- VARIABLES: EMERALD LUXURY --- */
:root {
    --brand-primary: #50C878;   /* Emerald Green */
    --brand-secondary: #0B6E4F; /* Royal Amethyst */
    --bg-dark: #013220;         /* Dark Evergreen */
    --text-light: #D1F2EB;      /* Mint Whisper */
    --text-muted: #8FA89F;      /* Muted Mint */
}

/* --- CORE RESET --- */
html {
    width: 100%;
    /* Keep scroll on HTML */
    overflow-y: auto; 
    overflow-x: hidden;
    overscroll-behavior-y: none;
    background-color: var(--bg-dark);
    touch-action: pan-y;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background: transparent !important; 
    color: var(--text-light);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    cursor: default;
    /* Security */
    user-select: none;
    -webkit-user-select: none;
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
    html, body {
        /* Force native scroll capability on mobile */
        overflow-y: auto !important; 
        height: auto !important;
        touch-action: pan-y !important; 
    }
}

/* --- NEW LOADER TYPOGRAPHY --- */
.loader-font {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 10rem; /* Massive size */
    line-height: 1;
    letter-spacing: -0.05em;
}

/* Mobile size for loader */
@media (max-width: 768px) {
    .loader-font { font-size: 6rem; }
}

/* --- CONTENT WRAPPER --- */
#smooth-wrapper {
    position: relative;
    z-index: 10; 
    width: 100%;
}

/* --- SECURITY & UTILS --- */
img, .no-save {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

::-webkit-scrollbar {
    width: 8px;
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background-color: var(--brand-secondary);
    border-radius: 4px;
    border: 1px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-primary);
}

#canvas-container {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: -1; 
    pointer-events: none;
    opacity: 1;
}

.grid-btn {
    aspect-ratio: 1.4/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(1, 50, 32, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(80, 200, 120, 0.15);
    border-radius: 0;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stack-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: help;
    animation: float 4s ease-in-out infinite;
}

.stack-icon:hover {
    color: var(--stack-color);
    filter: drop-shadow(0 0 10px var(--stack-color));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(80, 200, 120, 0.2);
    border-color: #50C878;
}

.grid-btn:hover {
    background: rgba(var(--brand-rgb), 0.15);
    border-color: rgb(var(--brand-rgb));
    transform: translateY(-3px);
    box-shadow: 0 4px 20px -5px rgba(var(--brand-rgb), 0.3);
}

.grid-btn:hover i, .grid-btn:hover span {
    color: rgb(var(--brand-rgb)) !important;
}

.grid-btn i, .grid-btn span { color: #50C878; }
.grid-btn span.text-xs { color: #D1F2EB; }
.grid-btn i.fa-arrow-up-right-from-square { color: #0B6E4F; }

@media (max-width: 768px) {
    .grid-btn { aspect-ratio: 1.2/1; padding: 1rem; }
    .stack-icon { font-size: 2rem; }
}

::selection {
    background: var(--brand-primary);
    color: var(--bg-dark);
}

.animate-text, .animate-fade, .animate-card, .animate-line, .animate-cert {
    opacity: 0;
}