/* =========================================
   1. GLOBAL CONFIGURATION & VARIABLES
========================================== */
:root {
    /* Professional Dark Theme Palette */
    --bg: #050505;
    --panel-bg: #0f0f0f;
    --border: #262626;
    --border-hover: #404040;
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --accent: #8b5cf6; /* Violet - feels like tech/UV light */
    --accent-hover: #7c3aed;
    --accent-dim: rgba(139, 92, 246, 0.1);
    
    --font-head: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-head);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;

    /* --- NEW BACKGROUND: Engineering Grid --- */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Size of the grid squares */
    background-attachment: fixed; /* Keeps the grid still when you scroll */
    /* ---------------------------------------- */
}

/* =========================================
   2. NAVIGATION BAR
========================================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    /* Added slight transparency so grid shows through blur */
    background: rgba(5, 5, 5, 0.7); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; }
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.brand-text { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { 
    text-decoration: none; color: var(--text-muted); font-size: 0.9rem; 
    font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-main); }

/* =========================================
   3. GENERAL LAYOUT & PANELS
========================================== */
#interface {
    max-width: 1100px; margin: 0 auto; 
    padding: 120px 20px 60px 20px;
}

.grid-section {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 24px; 
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}
.full-width { grid-column: 1 / -1; }

/* The "Bento" Card Style */
.panel {
    background: var(--panel-bg); /* Keeps cards solid so text is readable */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s var(--ease), border-color 0.2s ease;
    
    /* Subtle shadow to separate cards from the grid background */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.panel:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

h2 {
    font-size: 1.5rem; margin-bottom: 24px; color: var(--text-main);
    letter-spacing: -0.02em;
}

/* =========================================
   4. HERO SECTION STYLES
========================================== */
.hero-section {
    padding: 60px 0 100px 0;
    max-width: 800px;
}
.status-badge {
    font-family: var(--font-code);
    font-size: 0.75rem; color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 12px; border-radius: 100px;
    display: inline-block; margin-bottom: 24px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px;
    font-weight: 800; letter-spacing: -0.03em;
    /* Slight gradient on text to make it pop against grid */
    background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white; /* Fallback */
}
.accent-text { color: var(--text-muted); }
.hero-sub {
    font-size: 1.25rem; color: var(--text-muted); 
    max-width: 600px; margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; }
.btn {
    padding: 12px 24px; border-radius: 8px; 
    font-size: 0.95rem; font-weight: 600; 
    text-decoration: none; transition: 0.2s;
    cursor: pointer;
}
.primary-btn {
    background: var(--accent); color: white;
    border: 1px solid var(--accent);
}
.primary-btn:hover { background: var(--accent-hover); }
.secondary-btn {
    background: rgba(255,255,255,0.05); color: white;
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
}
.secondary-btn:hover { background: var(--border-hover); }

/* =========================================
   5. ABOUT & SKILLS
========================================== */
.about-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.tech-stack h3 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); margin-bottom: 16px;
}
.skill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-item {
    font-family: var(--font-code); font-size: 0.8rem;
    background: var(--bg); border: 1px solid var(--border);
    padding: 6px 12px; border-radius: 6px; color: var(--text-main);
}

/* =========================================
   6. EXPERIENCE LOGS
========================================== */
.log-entry { margin-top: 10px; }
.log-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; flex-wrap: wrap;}
.log-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.company-name { color: var(--accent); font-weight: 600; margin-left: 10px; }
.log-meta { font-family: var(--font-code); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.log-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 16px; }
.log-tags span {
    display: inline-block; font-size: 0.75rem; 
    background: var(--border); color: var(--text-muted);
    padding: 4px 8px; border-radius: 4px; margin-right: 6px; margin-bottom: 6px;
}

/* =========================================
   7. PROJECT CARDS
========================================== */
.product-card {
    display: flex; justify-content: space-between; align-items: center; gap: 40px;
    cursor: pointer;
}
.prod-content { flex: 1; }
.prod-visual { font-size: 4rem; color: var(--border); transition: 0.3s; }
.product-card:hover .prod-visual { color: var(--accent); }
.prod-badge { 
    background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; 
    padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 12px;
}
.project-card { cursor: pointer; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.icon-box { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 16px; }
.project-card:hover .icon-box { color: var(--accent); }
.tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
    font-family: var(--font-code); font-size: 0.75rem; 
    border: 1px solid var(--border); color: var(--text-muted);
    padding: 4px 8px; border-radius: 4px;
}

/* =========================================
   8. CONTACT & FOOTER
========================================== */
.contact-panel { text-align: center; padding: 60px 20px; }
.contact-panel p { margin-bottom: 40px; }
.social-grid { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text-muted); text-decoration: none;
    font-weight: 500; transition: 0.2s;
}
.social-link:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-2px);
}

.sys-footer { text-align: center; color: #444; font-size: 0.8rem; margin-top: 40px; }

/* =========================================
   9. MOBILE & RESPONSIVE
========================================== */
.mobile-toggle { display: none; }
.hamburger { cursor: pointer; transform: scale(0.8); }
.hamburger input { display: none; }
.hamburger svg { height: 3em; transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.line { fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; transition: 600ms; }
.line-top-bottom { stroke-dasharray: 12 63; }
.hamburger input:checked + svg { transform: rotate(-45deg); }
.hamburger input:checked + svg .line-top-bottom { stroke-dasharray: 20 300; stroke-dashoffset: -32.42; }

.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 999;
    padding-top: 100px; display: flex; flex-direction: column; align-items: center; gap: 30px;
    transform: translateY(-100%); transition: 0.3s ease;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-link { font-size: 1.5rem; color: white; text-decoration: none; font-weight: 700; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    
    .hero-section { padding-top: 40px; }
    h1 { font-size: 2.5rem; }
    
    .about-content { grid-template-columns: 1fr; }
    .product-card { flex-direction: column; align-items: flex-start; gap: 20px; }
    .prod-visual { display: none; }
}
