/* 
  * Theme: Light Corporate Glass
 */
 /*
 * Arnold Mutua - ePortfolio
 * Copyright (c) 2025 Arnold Mutua
 *
 * This project is licensed under the MIT License.
 * See LICENSE file for details.
 *
 * Author: Arnold Mutua
 * Contact: arno.mutua@gmail.com
 */

 /* 
  * Theme: Light Corporate Glass
 */

:root {
    --bg-body: #F8FAFC;         
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.6);
    
    --primary: #2563eb;         /* Royal Blue */
    --primary-dark: #1e40af;
    --secondary: #0ea5e9;       /* Sky Blue */
    --accent: #10b981;          /* Emerald Green */
    
    --text-main: #1e293b;       /* Deep Slate */
    --text-muted: #64748b;      /* Medium Slate */
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
    --radius: 16px;
    --font-mono: 'SFMono-Regular', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0; box-sizing: border-box;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Open Sans', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; margin-top: 0; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--bg-glass-border);
    padding: 1rem 0;
}

.nav {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
}

.header__logo { height: 40px; width: 40px; border-radius: 50%; margin-right: 10px; }
.header__logo-link { display: flex; align-items: center; color: var(--text-main); font-weight: 800; font-size: 1.2rem; }

.nav__list { display: flex; gap: 2rem; }
.nav__link { color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.nav__link:hover { color: var(--primary); }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* --- HERO --- */
#hero {
    padding: 8rem 1rem 6rem;
    text-align: center;
}

.hero-content {
    max-width: 900px; margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bg-glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-soft);
}

.hero-image { width: 200px; height: 200px; border-radius: 50%; border: 4px solid white; box-shadow: var(--shadow-soft); margin-bottom: 1.5rem; object-fit: cover; }

#hero h1 { font-size: 3rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; }
#hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }

.hero-cta {
    display: inline-block; padding: 12px 24px; border-radius: 50px; font-weight: 700; margin: 0 10px;
}
.hero-cta:first-of-type { background: var(--primary); color: white; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3); }
.hero-cta:last-of-type { background: white; color: var(--primary); border: 1px solid var(--primary); }
.hero-cta:hover { transform: translateY(-3px); }

/* --- SECTIONS --- */
section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
section h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
section h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }

/* --- ABOUT --- */
.about-content { display: flex; align-items: center; gap: 3rem; background: white; padding: 3rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-content img { width: 300px; border-radius: 12px; }
.about-social-links a { font-size: 1.5rem; color: var(--text-muted); margin-right: 15px; }
.about-social-links a:hover { color: var(--primary); }

/* --- SKILLS (Glass Flip Cards) --- */
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.flip-card { width: 280px; height: 320px; perspective: 1000px; background: transparent; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: var(--radius);
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem;
    box-shadow: var(--shadow-soft);
}
.flip-card-front { background: white; color: var(--text-main); border: 1px solid rgba(0,0,0,0.05); }
.flip-card-back { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; transform: rotateY(180deg); text-align: center; }

/* --- PROJECTS (Browser Frames) --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; }

.glass-card {
    background: white; border-radius: var(--radius); padding: 2rem;
    box-shadow: var(--shadow-soft); transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.glass-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.browser-frame {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.browser-header { background: #f1f5f9; padding: 8px 12px; display: flex; gap: 6px; border-bottom: 1px solid #e2e8f0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #10b981; }
.browser-frame img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.glass-card:hover img { transform: scale(1.03); }

.tech-pill { font-family: var(--font-mono); font-size: 0.75rem; background: #f1f5f9; color: var(--primary-dark); padding: 4px 10px; border-radius: 6px; font-weight: 600; border: 1px solid #e2e8f0; }
.btn-group { display: flex; gap: 10px; margin-top: 1.5rem; }

.btn-primary, .btn-secondary {
    padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--text-main); border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #f8fafc; border-color: var(--text-muted); }

/* --- TIMELINE --- */
.timeline { position: relative; padding-left: 2rem; border-left: 2px solid #e2e8f0; }
.timeline-item { margin-bottom: 2rem; position: relative; }
.timeline-node { position: absolute; left: -2.55rem; top: 0; width: 16px; height: 16px; background: white; border: 4px solid var(--primary); border-radius: 50%; }
.timeline-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow-soft); cursor: pointer; transition: 0.2s; }
.timeline-card:hover { transform: translateX(5px); border-left: 4px solid var(--primary); }
.timeline-date { color: var(--secondary); font-weight: 600; font-size: 0.9rem; margin-top: 5px; }

/* --- CONTACT --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-form, .contact-info { background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.form-input { width: 100%; padding: 12px; margin-bottom: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.form-input:focus { outline: none; border-color: var(--primary); background: white; }

/* --- MODALS --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); }
.modal-content { background: white; margin: 5% auto; width: 90%; max-width: 600px; border-radius: 16px; overflow: hidden; animation: slideUp 0.3s; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.modal-body { padding: 2rem; }
.cred-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.cred-table td { padding: 10px; border: 1px solid #e2e8f0; }
.cred-table strong { color: var(--text-muted); }
.cred-table code { color: var(--primary); font-family: var(--font-mono); font-weight: bold; }
.copy-icon { float: right; cursor: pointer; color: var(--text-muted); }
.copy-icon:hover { color: var(--primary); }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav__list { display: none; } 
    .hamburger { display: block; }
    .nav__list.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: white; padding: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .about-content, .contact-container { flex-direction: column; }
    .about-content img { margin: 0 auto; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* --- EXPERIENCE PAGE SPECIFIC STYLES --- */

/* 1. Header Stats Grid */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Two-Column Layout */
.resume-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

/* 3. Sticky Sidebar */
.resume-sidebar {
    position: sticky;
    top: 100px; /* Space for fixed header */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.8);
}
.resume-nav li { margin-bottom: 0.5rem; }
.resume-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s;
}
.resume-nav a:hover, .resume-nav a.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}
.resume-nav i { width: 20px; }

/* 4. Job Cards */
.job-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.job-title h3 { font-size: 1.5rem; margin-bottom: 0.25rem; color: var(--text-main); }
.job-title h4 { font-size: 1.1rem; color: var(--primary); font-weight: 600; margin: 0; }
.job-meta { text-align: right; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* The "Key Impact" Box */
.impact-box {
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #064e3b;
}
.impact-box strong { color: #047857; }

/* List Styling */
.job-details { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.job-details li { margin-bottom: 0.8rem; position: relative; color: var(--text-main); }
.job-details li::before {
    content: "•"; color: var(--primary); font-weight: bold; display: inline-block; width: 1em; margin-left: -1em;
}

/* 5. Leadership Section Specifics */
.leadership-card { border-top: 4px solid #f59e0b; } /* Gold top border */

/* Responsive */
@media (max-width: 900px) {
    .resume-grid { grid-template-columns: 1fr; }
    .resume-sidebar { display: none; } /* Hide sidebar on mobile, just scroll */
    .job-header { flex-direction: column; }
    .job-meta { text-align: left; }
}

/* --- PROJECT SHOWCASE SPECIFIC --- */

/* 1. The Media Gallery (App Store Style) */
.media-gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.media-gallery::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.media-item {
    flex: 0 0 85%; /* Shows 85% of image, hinting there is more to scroll */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease;
}
.media-item:hover { transform: scale(1.01); }

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.7); color: white;
    padding: 10px 15px; font-size: 0.85rem; backdrop-filter: blur(4px);
}

/* 2. Feature Grid (Bento Box) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.feature-card h4 { color: var(--primary); font-size: 1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* 3. Live Status Badge */
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(16, 185, 129, 0.1); color: #10b981;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; border: 1px solid rgba(16, 185, 129, 0.2);
}
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 4. Architecture Block */
.arch-block {
    background: #0f172a; /* Dark background for diagrams */
    color: white;
    padding: 2rem;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 2rem 0;
    overflow-x: auto;
}
.flow-diagram { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow-node { border: 1px solid #334155; padding: 8px 12px; border-radius: 6px; background: #1e293b; white-space: nowrap; }
.flow-arrow { color: var(--secondary); }

/* Responsive Media */
@media (max-width: 768px) {
    .media-item { flex: 0 0 100%; }
}

/* --- CASE STUDY LAYOUT (Vertical Sections) --- */
.case-study {
    min-height: 90vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text Left, Visual Right */
    gap: 4rem;
    align-items: center;
}

.cs-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.cs-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    color: var(--primary);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cs-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item strong { display: block; font-size: 1.8rem; color: var(--text-main); line-height: 1; }
.stat-item span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }



/* --- ARCHITECTURE & DEVOPS VISUALIZATIONS --- */

/* Shared Styles */
.diagram-wrapper {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 1rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden; /* Keeps animations inside */
    box-shadow: var(--shadow-soft);
}

.diagram-label {
    position: absolute; top: 15px; left: 20px;
    font-size: 0.75rem; color: var(--text-muted); font-weight: 700; 
    text-transform: uppercase; letter-spacing: 1px;
}

/* --- ARCHITECTURE DIAGRAM (Enhanced) --- */

.diagram-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4rem 1rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    overflow: hidden; /* Contains the firewall lines */
}

.diagram-label {
    position: absolute; top: 15px; left: 20px;
    font-size: 0.75rem; color: #94a3b8; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 1px;
}

.diagram-caption {
    text-align: center; margin-top: 2rem; font-size: 0.85rem; color: #64748b;
}

/* --- THE FIREWALL BARRIER --- */
.firewall-barrier {
    position: absolute;
    top: 0; bottom: 0; left: 42%; /* Positioned between CF and Server */
    width: 2px;
    z-index: 0;
    display: flex; flex-direction: column; align-items: center;
}

.fw-line {
    width: 2px; height: 100%;
    background: repeating-linear-gradient(to bottom, #ef4444 0, #ef4444 10px, transparent 10px, transparent 20px);
    opacity: 0.3;
}

.fw-label {
    background: #fee2e2; color: #ef4444;
    padding: 4px 10px; border-radius: 50px;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    position: absolute; top: 20px;
    border: 1px solid #fca5a5;
    z-index: 1;
}

/* --- GRID LAYOUT --- */
.arch-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.arch-node {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    width: 150px;
    position: relative;
    transition: 0.3s;
    background: white;
}
.arch-node:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.arch-node i { font-size: 2rem; margin-bottom: 0.5rem; color: #64748b; }
.arch-node h4 { font-size: 0.9rem; margin: 0; color: #1e293b; }
.arch-node p { font-size: 0.75rem; color: #64748b; margin: 0; }

/* Special Colors */
.node-cf { border-color: #f59e0b; } .node-cf i { color: #f59e0b; }
.node-cloud { border-color: #3b82f6; } .node-cloud i { color: #3b82f6; }
.node-prem { border-color: #10b981; } .node-prem i { color: #10b981; }

/* --- CONNECTING LINES --- */
.connection-line {
    position: absolute;
    height: 3px;
    background: #cbd5e1;
    top: 50%;
    z-index: -1;
}

/* Right going lines */
.connection-line.right { width: 3rem; right: -3rem; }
.connection-line.right-short { width: 1.5rem; right: -1.5rem; }

/* Left going lines (from branches) */
.connection-line.left-short { width: 1.5rem; left: -1.5rem; }

/* Tunnel Effect (Visual bypass) */
.tunnel-effect1 {
    background: #10b981; /* Green line */
    height: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.tunnel-effect2 {
    background: #3b82f6; /* Blue line */
    height: 4px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Branching Logic */
.arch-branch {
    display: flex; flex-direction: column; gap: 3rem;
    position: relative;
    padding-left: 1.5rem; /* Space for the rail */
}
.rail-y {
    position: absolute; left: 0; top: 25%; bottom: 25%;
    width: 3px; background: #cbd5e1;
}
.branch-item { position: relative; }

/* --- ANIMATED DATA PACKETS --- */
.packet-dot {
    position: absolute;
    top: -3px; left: 0;
    width: 8px; height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: travel 1.5s infinite linear;
}
/* Tunnel packet is green */
.tunnel-effect1 .packet-dot { background: white; animation: travel 1s infinite linear; }
.tunnel-effect2 .packet-dot { background: white; animation: travel 1s infinite linear; }

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes travel {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* --- EXTRAS --- */
.app-list { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.app-tag { font-size: 0.65rem; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #475569; font-weight: 600; border: 1px solid #e2e8f0; }

.live-status-btn {
    display: inline-block; margin-top: 10px; text-decoration: none;
    font-size: 0.7rem; font-weight: 700; color: #10b981;
    background: #ecfdf5; padding: 4px 8px; border-radius: 20px;
    border: 1px solid #10b981;
}
.dot-pulse { display: inline-block; width: 6px; height: 6px; background: #10b981; border-radius: 50%; margin-right: 4px; animation: pulse 1s infinite; }

/* Responsive */
@media (max-width: 900px) {
    .arch-grid { flex-direction: column; gap: 2rem; }
    .firewall-barrier { width: 100%; height: 2px; top: 42%; left: 0; border-left: none; border-top: 2px dashed #ef4444; }
    .fw-label { top: -12px; left: 50%; transform: translateX(-50%); }
    .connection-line { display: none; } /* Simplify on mobile */
    .rail-y { display: none; }
    .arch-branch { padding-left: 0; gap: 2rem; }
}

/* --- DIAGRAM 2: DEVOPS PIPELINE --- */
.pipeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

/* The Line behind */
.pipeline-line {
    position: absolute; top: 50%; left: 0; right: 0;
    height: 4px; background: #f1f5f9; z-index: 0;
    border-radius: 4px;
}

/* The Active Progress Bar */
.pipeline-progress {
    position: absolute; top: 50%; left: 0;
    height: 4px; background: var(--accent); z-index: 0;
    width: 0%;
    animation: fillPipe 4s infinite ease-in-out;
}

@keyframes fillPipe { 0% { width: 0%; } 100% { width: 100%; } }

/* The Steps */
.pipe-step {
    position: relative; z-index: 2;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.pipe-step i { font-size: 1.2rem; color: var(--text-muted); }
.pipe-step.active-step { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
.pipe-step.active-step i { color: var(--accent); }

/* Step Labels */
.step-info {
    position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
    text-align: center; width: 120px;
}
.step-info h5 { font-size: 0.8rem; margin: 0; color: var(--text-main); }
.step-info p { font-size: 0.65rem; color: var(--text-muted); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .arch-grid { flex-direction: column; gap: 2rem; }
    .arch-branch { gap: 2rem; }
    .split-v, .line-2, .line-3, .line-4 { display: none; } /* Hide complex lines on mobile */
    
    .pipeline-track { flex-direction: column; gap: 2rem; }
    .pipeline-line { width: 4px; height: 100%; left: 50%; top: 0; }
    .step-info { position: static; transform: none; margin-top: 10px; }
}


/* --- AURA UI MOCKUP (Realism Update) --- */
.aura-mockup-wrapper {
    position: relative;
    width: 350px; /* Mobile width */
    margin: 0 auto;
}

/* Floating Action Button (FAB) */
.aura-fab {
    position: absolute; bottom: 0; right: 0;
    width: 60px; height: 60px;
    background: #10b981; /* MTIB Green */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
    z-index: 5;
    animation: float 3s infinite ease-in-out;
}
.aura-fab i { color: white; font-size: 1.5rem; }

/* The Chat Window */
.aura-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    transform: translateY(-20px); /* Lifted up */
}

/* Header */
.aura-header {
    background: linear-gradient(to right, #2563eb, #10b981); /* Blue to Green */
    padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
    color: white;
}
.aura-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }

/* Body */
.aura-body {
    background: #f8fafc;
    padding: 15px;
    height: 300px;
    overflow-y: hidden; /* Hide scrollbar for neatness */
    display: flex; flex-direction: column; gap: 12px;
}

/* Bubbles */
.msg { padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; max-width: 90%; position: relative; }
.msg-ai { background: white; border: 1px solid #e2e8f0; border-top-left-radius: 2px; color: #334155; }
.msg-user { background: #3b82f6; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

/* TTS Icon */
.tts-icon {
    position: absolute; top: -8px; right: -8px;
    width: 20px; height: 20px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.6rem; cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tts-playing { color: #10b981; animation: pulse 1s infinite; }

/* Input Area */
.aura-input {
    padding: 10px; background: white; border-top: 1px solid #e2e8f0;
    display: flex; gap: 10px;
}
.fake-input { flex-grow: 1; height: 36px; background: #f1f5f9; border-radius: 8px; 
}
.fake-send { width: 36px; height: 36px; background: #3b82f6; border-radius: 8px; 
}

/* --- AUTHORING TOOL BADGES (For LMS Section) --- */
.author-tools {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.tool-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fffbeb; /* Amber Light */
    color: #b45309;      /* Amber Dark */
    border: 1px solid #fcd34d;
    font-weight: 600;
}

/* --- ROBUST MODAL STYLES --- */
.modal, .tech-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sit on top of EVERYTHING */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(15, 23, 42, 0.85); /* Dark slate overlay */
    backdrop-filter: blur(8px);
}

.modal-content, .tech-modal-content {
    background-color: #fff;
    margin: 5% auto; /* 5% from top and centered */
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button */
.close, .close-tech {
    color: #64748b;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-right: 20px;
    margin-top: 15px;
}
.close:hover, .close-tech:hover { color: #ef4444; }

/* Headers inside Modals */
.modal-header h2 { margin: 0; padding: 1.5rem 2rem; border-bottom: 1px solid #e2e8f0; font-size: 1.5rem; color: #1e293b; }

/* Body inside Modals */
.modal-body { padding: 2rem; }

/* Credential Table Style */
.cred-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 20px; }
.cred-table td { padding: 12px 15px; border-bottom: 1px solid #e2e8f0; }
.cred-table tr:last-child td { border-bottom: none; }
.cred-table strong { color: #64748b; text-transform: uppercase; font-size: 0.8rem; }
.cred-table code { color: #2563eb; font-family: monospace; font-size: 1rem; font-weight: 600; }


/* --- OPERATIONS: NETWORK DIAGRAM --- */
.network-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    position: relative;
}

.net-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.net-device {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    width: 140px;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.net-device:hover { transform: translateY(-5px); border-color: var(--secondary); }
.net-device i { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.net-device h4 { font-size: 0.85rem; margin: 0; color: var(--text-main); }
.net-device small { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Connecting Cables */
.cable-v {
    width: 4px; height: 3rem; background: #cbd5e1; margin: -1rem 0; z-index: 1;
}
.cable-h-bar {
    height: 4px; width: 60%; background: #cbd5e1; margin: -1rem auto 1rem; border-radius: 4px;
}

/* --- OPERATIONS: HARDWARE GRID --- */
.hardware-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow-soft);
}
.hardware-card ul { margin-top: 1rem; padding-left: 1.2rem; }
.hardware-card li { list-style: disc; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.95rem; }

/* --- BLOG: ARTICLE CARDS --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.article-image {
    height: 200px;
    background: #e2e8f0;
    position: relative;
}
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-tag {
    position: absolute; top: 15px; left: 15px;
    background: rgba(37, 99, 235, 0.3); color: rgb(201, 18, 18);
    padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}

.article-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.article-content h3 { font-size: 1.25rem; margin-bottom: 0.8rem; color: var(--text-main); line-height: 1.4; }
.article-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { color: var(--primary); font-weight: 700; font-size: 0.9rem; margin-top: auto; display: inline-flex; align-items: center; gap: 5px; }
.read-more:hover { gap: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .net-row { flex-direction: column; align-items: center; gap: 1rem; }
    .cable-v, .cable-h-bar { display: none; } /* Hide complex lines on mobile */
}

/* --- TESTIMONIAL STYLES --- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-left: 4px solid var(--primary);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(37, 99, 235, 0.1);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- SCROLL ANIMATIONS (The "Breeze" Effect) --- */

/* 1. Base State (Hidden) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* 2. Active State (Visible) - Added by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Staggered Delays (One by one pop-up) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* 4. Enhanced Hover for Everything */
.glass-card, .btn-primary, .nav__link {
    transition: all 0.3s ease-out;
}

/* --- HERO UPGRADES --- */

/* 1. The Moving Cyber Grid (Background) */
.cyber-grid-bg {
    position: relative;
    background-color: var(--bg-body);
    /* Creates a subtle grid pattern */
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: panGrid 60s linear infinite;
}

@keyframes panGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* 2. The "Available" Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px; height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3. Compact Hero (For Inner Pages) */
.compact-hero {
    padding: 6rem 1rem 3rem !important; /* Shorter top padding */
    text-align: left !important;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.compact-hero h1 { font-size: 2.5rem !important; margin-bottom: 0.5rem; }
.compact-hero p { margin: 0 !important; max-width: 800px; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 5px; color: #cbd5e1; }