/* --- BLADECLOUD THEME (style.css) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Fira+Code:wght@500&display=swap');

:root {
    --primary: #0f172a; --secondary: #1e293b; --accent: #3b82f6;
    --accent-hover: #2563eb; --text-main: #f8fafc; --text-muted: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7); --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --success: #10b981; /* Green for Online Status */
    --danger: #ef4444;  /* Red for Offline */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--primary); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; display: block; }
.btn { display: inline-block; background-color: var(--accent); color: white; padding: 12px 32px; border-radius: 6px; font-weight: 600; transition: transform 0.2s ease, background-color 0.2s ease; border: none; cursor: pointer;}
.btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

/* HEADER */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: 'Fira Code', monospace; font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
/* --- ABOUT SECTION LAYOUT --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .about-split {
        grid-template-columns: 1fr; /* Stacks them nicely on mobile */
    }
}
/* --- STAT BUBBLES (For About Me) --- */
.stat-box {
    background: var(--secondary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
/* CARDS & GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: var(--secondary); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.icon-box { width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); font-family: 'Fira Code', monospace; font-weight: bold; font-size: 1.2rem; }

/* HERO & FOOTER */
.hero { height: 60vh; display: flex; align-items: center; position: relative; overflow: hidden; margin-top: 70px;}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; }
footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; margin-top: auto;}

/* LAB SPECIFIC DASHBOARD STYLES */
.status-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.status-online { background-color: var(--success); box-shadow: 0 0 10px var(--success); }
.status-offline { background-color: var(--danger); }
.tech-spec { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 0.9rem; color: var(--text-muted); }
.tech-spec span:last-child { color: var(--text-main); font-family: 'Fira Code', monospace; }
.terminal { background: #000; padding: 20px; border-radius: 8px; font-family: 'Fira Code', monospace; font-size: 0.85rem; border: 1px solid var(--border); color: #0f0; margin-top: 20px; }

/* FORM */
input, textarea { width: 100%; padding: 12px; background: var(--primary); border: 1px solid var(--border); border-radius: 6px; color: var(--text-main); margin-bottom: 20px; font-family: inherit;}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

/* --- MOBILE OPTIMIZATION (Professional Grade) --- */
@media (max-width: 768px) {

    /* 1. HEADER & LOGO */
    nav {
        flex-direction: column; /* Stack logo on top, menu below */
        height: auto;           /* Let it grow to fit content */
        padding: 15px 0;
    }

    .logo {
        margin-bottom: 15px;    /* Space between logo and menu */
        white-space: nowrap;    /* CRITICAL: Forces logo to stay on one line */
        font-size: 1.4rem;      /* Slightly smaller to fit narrow screens */
    }

    .nav-links {
        display: flex;
        flex-direction: row;    /* Keep links side-by-side (if they fit) */
        justify-content: center;
        gap: 20px;
        width: 100%;
        font-size: 0.85rem;     /* Smaller text for menu items */
        flex-wrap: wrap;        /* If screen is TINY, let them wrap nicely */
    }

    /* 2. HERO SECTION TYPOGRAPHY */
    .hero {
        height: auto;           /* Stop forcing full height, let content dictate */
        padding: 120px 0 60px;  /* Add top padding so header doesn't cover text */
        text-align: center;     /* Center align looks better on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;      /* drastically reduced from desktop size */
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;        /* Prevent text hitting screen edges */
        margin-bottom: 2rem;
    }

    /* 3. BUTTON FIX */
    .btn {
        width: 100%;            /* Make button span full width on mobile */
        max-width: 300px;       /* ...but don't let it get crazy wide */
        display: block;
        margin: 0 auto;         /* Center the button */
    }

    /* 4. GRID & CARDS */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 40px;                  /* More space between stacked cards */
    }

    /* 5. ABOUT SECTION */
    .about-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Keep stats 2x2 grid, but smaller */
    .grid-3[style*="margin-top: 0"] {
        grid-template-columns: 1fr 1fr; 
        gap: 15px;
    }
}
