/* --- 1. DESIGN TOKENS (Gallery Light Theme) --- */
:root {
    --bg-main: #FFFFFF;        /* Pure White */
    --bg-card: #F9FAFB;        /* Very Light Gray for cards */
    --border-card: #E5E7EB;    /* Light Border */
    --accent-blue: #2563EB;    /* Vibrant Blue */
    --accent-gold: #D97706;    /* Deep Gold */
    --text-main: #111827;      /* Dark Charcoal (Almost Black) */
    --text-muted: #6B7280;     /* Medium Gray */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- 2. GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); color: var(--text-main); }
a { text-decoration: none; color: inherit; }

/* --- 3. ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-glow {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

@keyframes bar-grow {
    from { height: 0; }
}

/* --- 4. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #F3F4F6 0%, #FFFFFF 100%); /* Subtle radial gradient */
}

/* Soft ambient blobs (Adjusted for light mode) */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: pulse-glow 8s infinite ease-in-out;
}
.glow-blue { width: 40vw; height: 40vw; background: #DBEAFE; top: -10%; left: -10%; } /* Very light blue */
.glow-gold { width: 30vw; height: 30vw; background: #FEF3C7; bottom: 10%; right: -5%; animation-delay: 4s; } /* Very light gold */

.badge {
    position: relative; z-index: 10;
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 50px;
    background: #EFF6FF; /* Light blue bg */
    border: 1px solid #BFDBFE;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent-blue);
    text-transform: uppercase;
    font-weight: 600;
}

.hero h1 {
    position: relative; z-index: 10;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    color: #111;
}

.hero-subtitle {
    position: relative; z-index: 10;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), #60A5FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline {
    position: relative; z-index: 10;
    padding: 16px 36px;
    border: 1px solid #111; /* Sharp black border */
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    color: #111;
    font-weight: 600;
}
.btn-outline:hover {
    background: #111;
    color: #FFF;
    transform: translateY(-2px);
}

/* --- 5. BENTO GRID SYSTEM --- */
.container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

.bento-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-blue);
    background: #FFFFFF;
}

.card-header i { font-size: 2rem; color: var(--text-main); margin-bottom: 15px; display: block; }
.card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; color: #111; }
.card-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.tech-icons {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 20px;
    align-items: center;
}
.tech-icons i:hover { color: var(--accent-blue); transform: scale(1.1); transition: 0.2s; }
.tech-text { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-blue); text-transform: uppercase; font-weight: 600; }

/* Mock Dashboard Chart */
.chart-container {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 10px;
    opacity: 0.8;
}
.chart-bar {
    flex: 1;
    background: var(--text-muted); /* Darker gray for bars */
    border-radius: 2px 2px 0 0;
    opacity: 0.3;
    transition: 0.3s;
    animation: bar-grow 1s ease-out forwards;
}
.chart-bar:hover { opacity: 1; background: var(--accent-blue); }

/* Spans */
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }
.col-span-3 { grid-column: span 3; }

/* --- 6. DOMAIN EXPERTISE SECTION --- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.domain-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    transition: 0.3s;
    box-shadow: var(--shadow-card);
}
.domain-card:hover { border-color: var(--accent-gold); transform: translateY(-5px); }
.domain-icon { font-size: 2rem; color: var(--accent-gold); margin-bottom: 20px; }

.domain-list {
    list-style: none;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.domain-list li { margin-bottom: 8px; }
.domain-list li::before { content: "•"; color: var(--accent-blue); margin-right: 8px; font-weight: bold; }

/* --- 7. TERMINAL SECTION (Keep Dark for Contrast) --- */
.terminal-wrapper {
    background: #1E293B; /* Slate 800 */
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    font-family: var(--font-mono);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    color: #E2E8F0;
}
.terminal-bar {
    background: #0F172A; /* Slate 900 */
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #334155;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }

.terminal-content { padding: 30px; font-size: 0.9rem; color: #CBD5E1; }
.cmd-line { margin-bottom: 20px; }
.prompt { color: #60A5FA; } /* Light Blue */
.cmd { color: #FBBF24; } /* Light Gold */
.output { color: #94A3B8; margin-top: 5px; padding-left: 15px; display: block; border-left: 2px solid #334155; }

/* --- 8. CTA SECTION (Clean White) --- */
.cta-section {
    padding: 120px 20px;
    text-align: center;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}
.cta-content { max-width: 768px; margin: 0 auto; }

.cta-title { 
    font-size: 2.5rem; 
    font-family: var(--font-serif); 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    color: #111;
}

.cta-text { 
    color: var(--text-muted); 
    font-size: 1.2rem; 
    margin-bottom: 3rem; 
}

.cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #111;
    color: #FFF;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* --- 9. FOOTER --- */
footer {
    padding: 40px 20px;
    background: #FFF;
}
.footer-flex {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-indicator {
    display: inline-block;
    width: 8px; height: 8px;
    background: #10B981; /* Green */
    border-radius: 50%;
    margin-right: 8px;
}
.ping { position: absolute; width: 8px; height: 8px; background: #10B981; border-radius: 50%; opacity: 0.7; animation: pulse-glow 1s infinite; }

/* --- 10. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .bento-grid, .domain-grid { grid-template-columns: repeat(2, 1fr); }
    .col-span-3, .col-span-2 { grid-column: span 2; }
    .row-span-2 { grid-row: span 1; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.5rem; }
    
    .bento-grid, .domain-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .col-span-2, .col-span-3, .row-span-2 { grid-column: span 1 !important; grid-row: auto !important; }
    .card, .domain-card { min-height: 250px; padding: 25px; }
    
    .footer-flex { flex-direction: column; gap: 15px; text-align: center; }
    .terminal-content { font-size: 0.75rem; overflow-x: scroll; }
}
