/* ==========================================================================
   Tactical Red Team Design System & Variables (Hacker Vibe)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #020204;
    --bg-card: rgba(10, 8, 8, 0.75);
    --bg-card-hover: rgba(22, 10, 10, 0.88);
    --border-color: rgba(255, 0, 60, 0.07);
    --border-hover: rgba(230, 0, 38, 0.45);
    
    /* Text Colors */
    --text-primary: #f5f5f7;       /* Apple Off-white */
    --text-secondary: #a8a0a0;     /* Slate Gray */
    --text-tertiary: #4c3b3b;      /* Dark Rust Gray */
    
    /* Tactical Offenses Accents */
    --accent-red: #ff003c;         /* Crimson Alert Red */
    --accent-dark-red: #b3002a;    /* Target Warning Red */
    --accent-purple: #9d4edd;      /* Cyber Exploit Purple */
    --accent-yellow: #ffcc00;      /* Warning Gold */
    --accent-green: #00ff66;       /* Shell Success Green */
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Animations & Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   Global Reset & Defaults
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Clean tactical grid background */
    background-image: 
        linear-gradient(rgba(255, 0, 60, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 60, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 60, 0.12);
    border: 2px solid var(--bg-dark);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

/* Container scaled up to utilize widescreen displays */
.container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ==========================================================================
   Decorative Background, Spotlight & Canvas Mesh
   ========================================================================== */

#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 0, 60, 0.05) 0%,
        rgba(157, 78, 221, 0.02) 40%,
        transparent 80%
    );
}

#mesh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   Navigation Bar (Glassmorphic & Floating)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 4, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(2, 2, 4, 0.92);
    border-bottom-color: rgba(255, 0, 60, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.logo-bracket {
    color: var(--accent-red);
    font-weight: 600;
    transition: var(--transition-fast);
}

.logo:hover .logo-bracket {
    color: var(--accent-purple);
    transform: scale(1.15);
    text-shadow: 0 0 10px var(--accent-purple);
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-red);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: rgba(255, 0, 60, 0.06);
    border: 1px solid rgba(255, 0, 60, 0.25);
    padding: 8px 16px !important;
    border-radius: 4px;
    font-size: 0.8rem !important;
    color: var(--accent-red) !important;
    transition: var(--transition-fast) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-red);
    color: var(--bg-dark) !important;
    border-color: var(--accent-red);
    box-shadow: 0 0 18px rgba(255, 0, 60, 0.45);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1010;
}

.hamburger-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 2, 4, 0.99);
    backdrop-filter: blur(20px);
    z-index: 998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links a {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mobile-nav-links a:hover {
    color: var(--accent-red);
    padding-left: 10px;
}

.mobile-cta {
    border: 1px solid var(--accent-red);
    padding: 12px 32px !important;
    border-radius: 4px;
    color: var(--accent-red) !important;
    font-size: 1.3rem !important;
}

.mobile-cta:hover {
    background: var(--accent-red);
    color: var(--bg-dark) !important;
}

/* ==========================================================================
   Hero Section (Tactical Large Header & Terminal Mockup)
   ========================================================================== */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    z-index: 2;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-red);
    background: rgba(255, 0, 60, 0.05);
    border: 1px solid rgba(255, 0, 60, 0.2);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.35);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-purple) 60%, var(--accent-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

.red-glow {
    text-shadow: 0 0 35px rgba(255, 0, 60, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 680px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Red Terminal Mockup */
.terminal-mockup {
    background: rgba(6, 6, 8, 0.9);
    border: 1px solid rgba(255, 0, 60, 0.15);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 0, 60, 0.08);
    overflow: hidden;
    font-family: var(--font-mono);
    position: relative;
    backdrop-filter: blur(12px);
    width: 100%;
    transition: var(--transition-fast);
    cursor: text;
}

.terminal-mockup.focused {
    border-color: rgba(255, 0, 60, 0.5);
    box-shadow: 0 20px 50px rgba(255, 0, 60, 0.12), 0 10px 30px rgba(0, 0, 0, 0.85);
}

.red-terminal {
    border-color: rgba(255, 0, 60, 0.25);
}

.hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.terminal-header {
    background: rgba(14, 10, 10, 0.85);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 0, 60, 0.1);
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.terminal-header .dot.red { background-color: var(--accent-red); }
.terminal-header .dot.yellow { background-color: var(--accent-yellow); }
.terminal-header .dot.green { background-color: var(--accent-green); }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-left: 12px;
}

.terminal-status {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red);
}

.terminal-body {
    padding: 24px;
    min-height: 300px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: auto;
}

.terminal-line {
    margin-bottom: 8px;
    opacity: 0.95;
    white-space: pre-wrap;
}

.t-cyan { color: #00f3ff; }
.t-green { color: var(--accent-green); }
.t-yellow { color: var(--accent-yellow); }
.t-purple { color: var(--accent-purple); }
.t-red { color: var(--accent-red); }

.cursor {
    display: inline-block;
    background: var(--accent-red);
    width: 7px;
    height: 15px;
    vertical-align: middle;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: floatIndicator 2s infinite ease-in-out;
}

@keyframes floatIndicator {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* Buttons */
.btn {
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-primary.alert-btn {
    background: var(--accent-red);
    color: var(--text-primary);
    border: 1px solid var(--accent-red);
}

.btn-primary.alert-btn:hover {
    background: transparent;
    color: var(--accent-red);
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 0, 60, 0.03);
    border-color: var(--accent-red);
}

/* ==========================================================================
   Bento Metrics Section
   ========================================================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(255, 0, 60, 0.08);
}

.metric-header-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.metric-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.text-red {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Sections Layout (Edge-to-Edge Spacers)
   ========================================================================== */

.section {
    padding: 140px 0;
    position: relative;
    z-index: 2;
    /* Web optimization: defer paint cycles for off-screen blocks */
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.section-header {
    margin-bottom: 72px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 2.5px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
}

/* ==========================================================================
   Interactive Card Spotlight Border Effect (Bespoke Moving Borders)
   ========================================================================== */

.card, .bento-item, .achievement-card, .education-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: background 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.card::before, .bento-item::before, .achievement-card::before, .education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px; /* border thickness */
    background: radial-gradient(
        350px circle at var(--card-x, 0px) var(--card-y, 0px),
        rgba(255, 0, 60, 0.4) 0%,
        rgba(157, 78, 221, 0.05) 50%,
        transparent 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.card:hover::before, .bento-item:hover::before, .achievement-card:hover::before, .education-card:hover::before {
    opacity: 1;
}

.card:hover, .bento-item:hover, .achievement-card:hover, .education-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.55), 0 5px 25px rgba(255, 0, 60, 0.04);
}

.red-border {
    border-color: rgba(255, 0, 60, 0.12);
}

/* ==========================================================================
   About Me Section Layout
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-main-text .lead {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.about-main-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-focus-areas h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 0, 60, 0.12);
    padding-bottom: 8px;
}

.focus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.focus-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.focus-list.red-focus li i {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red);
    font-size: 1.1rem;
}

/* ==========================================================================
   Campaign History Timeline (Red Team Track)
   ========================================================================== */

.timeline-container {
    position: relative;
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--text-tertiary);
}

.timeline-line-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-red), var(--accent-purple));
    z-index: 2;
    transition: height 0.8s ease-out;
}

.experience-block {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 40px;
    position: relative;
}

.experience-block::before {
    content: '';
    position: absolute;
    left: -53px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--text-tertiary);
    z-index: 3;
    transition: var(--transition-fast);
}

.experience-block.active::before {
    border-color: var(--accent-red);
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.experience-meta {
    padding-top: 4px;
}

.exp-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.exp-company {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-company i {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exp-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.op-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 0, 60, 0.08);
    padding-bottom: 8px;
}

.op-code {
    color: var(--accent-red);
}

.op-status {
    color: var(--text-secondary);
}

.op-status.status-active {
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
}

.exp-role {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-bullets li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.exp-bullets li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

/* ==========================================================================
   Interactive Skills Console Section
   ========================================================================== */

.skills-console {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    padding: 0 !important;
    overflow: hidden;
}

.console-sidebar {
    background: rgba(10, 6, 6, 0.4);
    border-right: 1px solid var(--border-color);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.console-tab {
    background: none;
    border: none;
    padding: 16px 20px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 14px;
}

.console-tab i {
    font-size: 1.1rem;
    width: 20px;
}

.console-tab:hover {
    color: var(--text-primary);
    background: rgba(255,0,60,0.02);
}

.console-tab.active {
    color: var(--accent-red);
    background: rgba(255, 0, 60, 0.05);
    border-left: 3px solid var(--accent-red);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.console-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.console-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.console-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.console-panel h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.panel-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar.red-bar {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
}

/* ==========================================================================
   Premium Bento Pinned Projects Section (Edge-to-Edge Grid)
   ========================================================================== */

.projects-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

.showcase-wide {
    grid-column: span 2;
}

.project-card.showcase-wide {
    padding: 0;
}

.project-bento-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    padding: 48px;
    align-items: center;
    width: 100%;
}

.proj-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-red);
    background: rgba(255, 0, 60, 0.08);
    border: 1px solid rgba(255, 0, 60, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.proj-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.proj-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.proj-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proj-features.red-bullets li i {
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red);
    margin-top: 3px;
    font-size: 0.9rem;
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proj-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 0, 60, 0.03);
    border: 1px solid rgba(255, 0, 60, 0.1);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Showcase Visual Mockup */
.bento-visual-panel {
    width: 100%;
}

.visual-terminal {
    background: #040202;
    border: 1px solid rgba(255, 0, 60, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.visual-terminal.MSF-console {
    border-color: rgba(255, 0, 60, 0.2);
}

.terminal-bar {
    background: #0e0a0a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 0, 60, 0.08);
}

.terminal-bar.red-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}

.terminal-bar span {
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    margin-left: 8px;
}

.visual-terminal .terminal-body {
    padding: 16px;
    min-height: auto;
    font-size: 0.75rem;
}

.term-line {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Small Project Grid Card */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-icon {
    font-size: 1.5rem;
}

.text-red {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.proj-features-small {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.proj-features-small.red-bullets li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}

.proj-features-small.red-bullets li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-red);
}

/* ==========================================================================
   Achievements Bento Grid
   ========================================================================== */

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.achievement-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.achievement-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.achievement-icon-wrapper.red-glow {
    background: rgba(255, 0, 60, 0.06);
    border: 1px solid rgba(255, 0, 60, 0.2);
    color: var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.15);
}

.achievement-card h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.achievement-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-red);
    margin-bottom: 16px;
    text-shadow: 0 0 5px rgba(255, 0, 60, 0.25);
}

.achievement-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Education Bento Grid
   ========================================================================== */

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.edu-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-primary);
}

.edu-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-red);
    white-space: nowrap;
    padding-top: 4px;
}

.edu-school {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.edu-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Interactive Contact Section
   ========================================================================== */

.contact-wrapper {
    text-align: center;
    padding: 80px 40px !important;
}

.contact-wrapper h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--text-primary);
    margin: 16px 0 12px;
    letter-spacing: -0.5px;
}

.contact-wrapper p {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
}

.contact-channels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255,0,60,0.01);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.channel-btn.red-channel:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background: rgba(255, 0, 60, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    border-top: 1px solid var(--border-color);
    padding: 45px 0;
    background: rgba(2, 2, 4, 0.95);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-status {
    font-family: var(--font-mono);
    font-size: 0.8rem !important;
    text-shadow: 0 0 5px var(--accent-red);
}

/* ==========================================================================
   Scroll Reveal Animation System
   ========================================================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    .projects-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-wide {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .project-card.showcase-wide {
        grid-column: span 2;
    }
    
    .project-bento-inner {
        grid-template-columns: 1fr;
        padding: 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    /* Hamburger Active Animations */
    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .hamburger-btn.active .bar:nth-child(2) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: 20px;
    }
    
    .timeline-container {
        padding-left: 28px;
        margin-left: 10px;
    }
    
    .experience-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .experience-block::before {
        left: -33px;
    }
    
    .projects-bento-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .showcase-wide {
        grid-column: span 1;
    }
    
    .project-bento-inner {
        padding: 24px;
    }
    
    /* Interactive Skills Console on Mobile (Horizontal Sliding Tabs) */
    .skills-console {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .console-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        overflow-x: auto;
        padding: 16px 12px;
        gap: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .console-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .console-tab {
        padding: 10px 16px;
        white-space: nowrap;
        scroll-snap-align: start;
        border-left: none;
        border-radius: 4px;
    }
    
    .console-tab.active {
        border-left: none;
        background: rgba(255, 0, 60, 0.08);
        border: 1px solid rgba(255, 0, 60, 0.2);
    }
    
    .console-content {
        padding: 24px;
    }
    
    .achievements-grid,
    .education-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card, .bento-item, .achievement-card, .education-card {
        padding: 24px;
    }
    
    .edu-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .contact-channels {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
