/* Root Variables - Security First Theme */
:root {
    --font-main: 'Space Grotesk', sans-serif;

    /* Color Palette */
    --bg-dark: #080808;
    --surface-dark: #121212;
    --text-main: #ffffff;
    /* Increased contrast for muted text (was #a3a3a3) */
    --text-muted: #d4d4d4;
    --border-color: #333333;
    --accent-color: #ffffff;

    /* Gradients */
    --subtle-gradient: linear-gradient(to bottom, #050505, #0a0a0a);
}

/* Base Resets & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: var(--subtle-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Bootstrap Overrides */
a {
    text-decoration: none;
    color: inherit;
}

/* Custom Utilities */
.tracking-widest {
    letter-spacing: 0.15em;
}

.tracking-jumbo {
    letter-spacing: 0.25em;
}

/* Glassmorphism Header */
.glass-header {
    background-color: rgba(8, 8, 8, 0.85);
    /* Increased opacity for better contrast against page content */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter default border */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-scrolled {
    background-color: #000000 !important;
    /* Solid black */
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    /* Darker/More visible border */
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animate-blink {
    animation: blink 1.2s step-end infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    /* Initial state hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Component Styles */
.navbar-nav .nav-link-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.navbar-nav .nav-link-custom:hover,
.navbar-nav .nav-link-custom.active {
    color: var(--text-main) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Higher contrast border */
    padding: 0.5rem 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    /* Explicit white */
}

@media (min-width: 576px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.terminal-window {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0 1rem 1rem;
    font-family: monospace;
}

@media (min-width: 992px) {
    .terminal-window {
        border-left: none;
        border-right: 2px solid rgba(255, 255, 255, 0.2);
        text-align: right;
        padding-right: 1rem;
        padding-left: 0;
    }
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    transition: background-color 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
    /* Prevent layout shift */
}

.feature-card:hover {
    background-color: var(--surface-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
    font-weight: 500;
}

.footer-link {
    font-size: 0.75rem;
    font-weight: 700;
    /* Bold links */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Utility to force white text on important headers */
.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Social Icons Filter */
.social-icon {
    filter: brightness(0) invert(1);
    /* Inverts black to white */
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

/* Tech Stack Icons */
.tech-icon {
    /* filter removed to show original colors */
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
}

/* --- Refactored Inline Styles --- */

/* Hero Section */
.hero-description {
    max-width: 600px;
    line-height: 1.8;
}

.hero-btn {
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-outline-dim {
    border-color: rgba(255, 255, 255, 0.2);
}

.tech-stack-label {
    font-size: 0.75rem;
}

.tech-separator {
    width: 32px;
    height: 1px;
    background-color: #333;
}

/* Terminal Widget */
.terminal-header-text {
    font-size: 0.7rem;
}

.terminal-command-line {
    font-family: monospace;
    font-size: 0.9rem;
}

.cursor-block {
    width: 8px;
    height: 16px;
    display: inline-block;
}

/* Footer */
.footer-copyright {
    font-size: 0.75rem;
}

/* Typography Utilities */
.lh-relaxed {
    line-height: 1.8;
}

/* Hover Utilities */

.hover-white {
    transition: color 0.3s ease;
}

.hover-white:hover {
    color: #ffffff !important;
}

/* --- 404 Page Styles --- */

.error-description {
    max-width: 480px;
}

.bg-grid {
    background-image: linear-gradient(#ffffff 1px, transparent 1px), linear-gradient(90deg, #ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.text-jumbo {
    font-size: 8rem;
    font-weight: 200; /* font-thin */
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
}

@media (min-width: 768px) {
    .text-jumbo {
        font-size: 11.25rem; /* ~180px */
    }
}

.font-body {
    font-family: 'Noto Sans', sans-serif;
}

.separator-line {
    height: 1px;
    width: 6rem;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

.btn-rounded-full {
    border-radius: 9999px;
    min-width: 160px;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease-in-out;
}
