@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;600;700&family=JetBrains+Mono:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-base: #060608;
    --bg-surface: #101014;
    --bg-card: #0c0c0f;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 243, 255, 0.3);
    
    --text-main: #e2e8f0;
    --text-muted: #8b92a5;
    
    --accent-cyan: #00f3ff;
    --accent-orange: #ff5500;
    --accent-purple: #b000ff;
    --accent-green: #00ff66;
    --accent-yellow: #ffcc00;
    
    --font-heading: 'Teko', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-base); color: var(--text-main); font-family: var(--font-body);
    line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth;
}
body.modal-open { overflow: hidden; }

/* --- Floating Background Images --- */
.floating-bg-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; overflow: hidden;
}
.float-img {
    position: absolute; filter: blur(20px) opacity(0.15) grayscale(100%); border-radius: 50%; animation: floatAnim linear infinite;
}
.float-img:nth-child(1) { width: 500px; top: -10%; left: -10%; animation-duration: 45s; }
.float-img:nth-child(2) { width: 400px; bottom: 10%; right: -5%; animation-duration: 55s; animation-direction: reverse; filter: blur(30px) opacity(0.1) grayscale(100%); }
.float-img:nth-child(3) { width: 600px; top: 40%; left: 60%; animation-duration: 65s; filter: blur(40px) opacity(0.08) grayscale(100%); }

@keyframes floatAnim {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(10deg); }
    66% { transform: translate(-30px, 30px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- The Blueprint Grid Background --- */
.cad-background {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.cad-background::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 10%, var(--bg-base) 90%);
}

/* --- Layout & Sections --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; }
.cinematic-section { padding: 6rem 0; position: relative; }

/* --- Typography --- */
h1, h2, h3, .heading-industrial { font-family: var(--font-heading); text-transform: uppercase; line-height: 1.1; letter-spacing: 1px; }
.text-cyan { color: var(--accent-cyan); } .text-orange { color: var(--accent-orange); }

.section-label { font-family: var(--font-mono); color: var(--accent-orange); font-size: 0.9rem; letter-spacing: 4px; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; display: block; width: 40px; height: 1px; background: var(--accent-orange); }

/* --- Nav --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 0; z-index: 100;
    background: linear-gradient(to bottom, rgba(6,6,8,0.95) 0%, transparent 100%); backdrop-filter: blur(8px);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-cyan); }

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none; background: transparent; border: none; color: var(--accent-orange); font-size: 2rem; cursor: pointer; z-index: 200; position: relative;
}
.mobile-nav-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #060608;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 150; opacity: 0; pointer-events: none; transition: all 0.4s ease; transform: translateY(-20px);
}
.mobile-nav-links-wrapper {
    display: flex; flex-direction: column; gap: 2.5rem; align-items: flex-start;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav-overlay a { font-family: var(--font-mono); font-size: 1.5rem; color: var(--text-main); text-decoration: none; letter-spacing: 2px; }
.mobile-nav-overlay a:hover { color: var(--accent-cyan); }

/* --- Hero Section & HUD --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 85vh; padding-top: 6rem; }
.hero-title { font-size: 5rem; margin-bottom: 0.5rem; text-shadow: 0 0 40px rgba(0, 243, 255, 0.15); }
.hero-subtitle { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text-muted); border-left: 2px solid var(--accent-cyan); padding-left: 1.2rem; margin-bottom: 2rem; max-width: 500px; }

.hud-container { position: relative; width: 100%; height: 100%; min-height: 500px; display: flex; justify-content: center; align-items: flex-end; }
.hud-portrait { width: 85%; max-height: 90%; object-fit: contain; z-index: 5; position: absolute; bottom: 0; filter: contrast(1.1) drop-shadow(0 -10px 30px rgba(0,0,0,0.6)); -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }
.hud-ring { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(0, 243, 255, 0.2); z-index: 1; }
.hud-ring-1 { width: 70%; aspect-ratio: 1; animation: rotate 20s linear infinite; }
.hud-ring-2 { width: 90%; aspect-ratio: 1; border: 1px solid rgba(255, 85, 0, 0.1); animation: rotate-reverse 30s linear infinite; }
.hud-brackets { position: absolute; width: 100%; height: 80%; top: 10%; z-index: 6; pointer-events: none; }
.hud-brackets::before, .hud-brackets::after { content: ''; position: absolute; width: 40px; height: 40px; border-color: var(--accent-cyan); border-style: solid; transition: all 0.2s ease-out; }
.hud-brackets::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-brackets::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.skill-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.skill-badge { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.3rem 0.6rem; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-muted); }

/* --- Philosophy --- */
.philosophy-text { font-size: 2.2rem; line-height: 1.4; font-family: var(--font-heading); color: var(--text-main); max-width: 800px; }

/* --- Arsenal --- */
.arsenal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.light-section { display: none; } /* DEPRECATED */

.arsenal-card { 
    background: transparent; 
    border: none; 
    padding: 1rem 0; 
}
.arsenal-card-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.arsenal-card-title i {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}
.arsenal-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.arsenal-chip {
    transition: all 0.3s ease;
    cursor: default;
    background: transparent;
    border: none;
    padding: 0;
}
.arsenal-logo-wrapper {
    background: transparent;
    width: 140px; 
    height: 70px; 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.arsenal-chip:hover .arsenal-logo-wrapper {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 15px 20px rgba(0, 243, 255, 0.3));
}
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.arsenal-chip:nth-child(odd) .arsenal-logo-wrapper {
    animation: floatLogo 4s ease-in-out infinite;
}
.arsenal-chip:nth-child(even) .arsenal-logo-wrapper {
    animation: floatLogo 5s ease-in-out infinite;
    animation-delay: 1s;
}
.arsenal-chip:nth-child(3n) .arsenal-logo-wrapper {
    animation: floatLogo 4.5s ease-in-out infinite;
    animation-delay: 2s;
}
.arsenal-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    /* Crisp white sticker outline to make dark PNGs visible without boxes */
    filter: 
      drop-shadow(1px 0px 0px rgba(255,255,255,0.85))
      drop-shadow(-1px 0px 0px rgba(255,255,255,0.85))
      drop-shadow(0px 1px 0px rgba(255,255,255,0.85))
      drop-shadow(0px -1px 0px rgba(255,255,255,0.85));
}
.arsenal-logo-wrapper i {
    font-size: 4rem;
    color: var(--text-main);
    transition: all 0.4s ease;
}
.arsenal-chip:hover .arsenal-logo-wrapper i {
    color: var(--accent-cyan);
}

/* --- Clean Project Cards (V1 Style) --- */
.category-title { font-size: 3.5rem; margin-bottom: 3rem; margin-top: 4rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem;}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex: 1 1 350px;
    max-width: 450px;
}

.project-card:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.05);
}

.project-card-image-container {
    height: 250px;
    background: var(--bg-surface);
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Beautiful Blurred Background inside the card image area */
.project-card-image-bg {
    position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
    background-size: cover; background-position: center;
    filter: blur(15px) brightness(0.4);
    z-index: 1;
}

.project-card-image {
    width: 100%; height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    padding: 1rem;
    transition: transform 0.5s ease;
}

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

.project-tag {
    position: absolute; bottom: 1rem; left: 1rem;
    font-family: var(--font-mono); font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--border-highlight);
    z-index: 3;
}

.project-card-details { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-card-title { font-size: 2rem; margin-bottom: 0.5rem; line-height: 1.1; }
.project-card-brief { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; line-height: 1.6; }

.project-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 0.8rem;
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-main); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 1px;
    transition: all 0.3s;
}
.project-card:hover .project-btn { border-color: var(--accent-cyan); color: var(--accent-cyan); }


/* --- Information Modal Overlay --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(4, 4, 6, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    width: 90%; max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0, 243, 255, 0.1);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-color);
    color: white; width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 10; transition: all 0.3s;
}
.modal-close:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

.modal-media-container {
    width: 100%; height: 400px;
    background: #000;
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}
.modal-media-container img, .modal-media-container video {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
}
.modal-media-container iframe {
    width: 100%; height: 100%; border: none;
}

.modal-body { padding: 3rem; }
.modal-header-info { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.modal-title { font-size: 3.5rem; line-height: 1; color: var(--text-main); }
.modal-year { font-family: var(--font-mono); color: var(--accent-orange); border: 1px solid var(--accent-orange); padding: 0.2rem 0.6rem; font-size: 0.8rem; border-radius: 4px;}
.modal-brief { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.modal-tags span { font-family: var(--font-mono); font-size: 0.8rem; padding: 0.4rem 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: var(--accent-cyan); }

.modal-readmore-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
    width: 100%; padding: 1.2rem;
    background: transparent; border: 1px solid var(--accent-orange);
    color: var(--accent-orange); font-family: var(--font-mono); font-size: 1rem; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; transition: all 0.3s;
}
.modal-readmore-btn:hover { background: rgba(255, 85, 0, 0.1); box-shadow: 0 0 20px rgba(255, 85, 0, 0.2); }

/* --- Deployment Log (Experience) --- */
.deployment-log { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.timeline-item { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 2.5rem; border-radius: 8px; display: flex; gap: 2rem; align-items: flex-start; transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.timeline-item:hover { border-color: rgba(255,255,255,0.2); transform: translateX(5px); }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--accent-cyan); transition: width 0.3s ease; }
.timeline-item:hover::before { width: 5px; }
.timeline-logo-chip { background: #f0f2f5; width: 90px; height: 90px; border-radius: 12px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; padding: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.8); }
.timeline-logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.timeline-content { flex-grow: 1; min-width: 0; }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 1rem;}
.timeline-title-group h3 { font-size: 2.2rem; color: var(--text-main); margin-bottom: 0.2rem; line-height: 1.1; }
.timeline-role { color: var(--accent-orange); font-family: var(--font-mono); font-size: 1rem; }
.timeline-date { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; border: 1px solid var(--border-color); padding: 0.3rem 0.8rem; border-radius: 4px; background: rgba(0,0,0,0.3); }
.timeline-bullets { list-style: none; margin-top: 1.5rem; }
.timeline-bullets li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: var(--text-main); line-height: 1.6; font-size: 0.95rem; }
.timeline-bullets li::before { content: '>'; position: absolute; left: 0; color: var(--accent-cyan); font-family: var(--font-mono); font-weight: bold; }

/* --- Education & Leadership Grid --- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.edu-card { background: transparent; border-top: 1px solid var(--border-color); padding-top: 2rem; min-width: 0; }
.edu-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.edu-header i { font-size: 2.5rem; color: var(--accent-cyan); }
.edu-header h3 { font-size: 2.5rem; margin-bottom: 0; }
.edu-item { margin-bottom: 1.5rem; }
.edu-item-title { font-family: var(--font-mono); color: var(--accent-orange); font-size: 0.95rem; margin-bottom: 0.2rem; }
.edu-item-desc { color: var(--text-main); font-size: 1rem; }
.edu-item-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; font-style: italic; }
/* --- Terminal Contact --- */
.terminal-section { padding: 4rem 0; font-family: var(--font-mono); margin-top: 4rem; }
.terminal-window { border: 1px solid var(--border-color); background: #050505; padding: 2rem; max-width: 800px; margin: 0 auto; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);}
.terminal-header { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid #1a1a1a; padding-bottom: 1rem;}
.terminal-header span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-prompt { color: var(--accent-cyan); margin-bottom: 1rem; font-size: 0.9rem; }
.terminal-input { color: var(--text-main); font-size: 1rem; margin-bottom: 1.5rem; line-height: 2;}
.terminal-cursor { display: inline-block; width: 8px; height: 1rem; background: var(--accent-orange); animation: blink 1s step-end infinite; }

/* Animations */
@keyframes rotate { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes rotate-reverse { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- TABLET OVERHAUL --- */
@media (max-width: 1024px) {
    .hero-grid { display: flex; flex-direction: column; gap: 3rem; text-align: center; padding-top: 5rem; }
    .hero-info { display: contents; }
    .hero-info-top { order: 1; display: flex; flex-direction: column; align-items: center; width: 100%; }
    .hud-container { order: 2; min-height: 450px; max-width: 600px; margin: 0 auto; width: 100%; }
    .hero-info-bottom { order: 3; display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: -1.5rem; }
    .hero-subtitle { border-left: none; border-bottom: 2px solid var(--accent-cyan); padding-left: 0; padding-bottom: 0.5rem; }
}

/* --- MOBILE OVERHAUL --- */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .cinematic-section { padding: 3rem 0; }
    .hero-grid { gap: 2rem; min-height: auto; padding-top: 4rem; }
    .hero-info-top, .hero-info-bottom { align-items: flex-start; text-align: left; margin-top: 0; }
    .hero-title { font-size: 3.5rem; }
    .hud-container { min-height: 350px; }
    nav .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .philosophy-text { font-size: 1.5rem; }
    .category-title { font-size: 2.5rem; margin-bottom: 2rem; margin-top: 3rem; }
    .arsenal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .arsenal-card { padding: 1.5rem 0 !important; }
    .arsenal-chips-grid { gap: 1.5rem; justify-content: center; padding: 1rem 0; }
    .arsenal-logo-wrapper { width: 110px; height: 60px; }
    .arsenal-logo-wrapper i { font-size: 3rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .float-img { width: 250px !important; }
    
    .timeline-item { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    .timeline-logo-chip { width: 70px; height: 70px; }
    .timeline-header { flex-direction: column; }
    .edu-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .modal-content { width: 95%; max-height: 85vh; margin-top: 0; }
    .modal-media-container { height: 250px; }
    .modal-body { padding: 1.5rem; }
    .modal-title { font-size: 2rem; margin-bottom: 1rem;}
    .modal-header-info { flex-direction: column; gap: 1rem; }
    
    .terminal-window { padding: 1.25rem; word-wrap: break-word; word-break: break-all; overflow-wrap: break-word; }
    .terminal-input { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
    .terminal-prompt { font-size: 0.85rem; margin-bottom: 0.5rem; }
    .terminal-section { margin-top: 2rem; padding: 2rem 0; }
}
