:root {
    --bg-body: #000000;
    --bg-card: #0a0a0a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ff0000;
    --accent-glow: rgba(255, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-body); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.highlight { color: var(--accent); font-weight: 600; }

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

/* --- NAVIGATION --- */
nav { position: fixed; width: 100%; top: 0; background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(255,0,0,0.1); }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:hover { color: var(--accent); }
.cta-btn { background: var(--gradient); color: white !important; padding: 10px 24px; border-radius: 5px; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-block; border: none; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px var(--accent-glow); color: white !important; }

/* HAMBURGER STYLING */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}

/* MOBILE NAV DRAWER */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        right: -100%; /* Hidden off-screen to the right */
        top: 0;
        height: 100vh;
        width: 70%; /* Takes up 70% of screen width */
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0; /* Slides in */
    }

    /* Animation: Turn hamburger into an 'X' */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent); }
}
/* --- HERO --- */
#home {
    height: 100vh; display: flex; align-items: center; position: relative; padding-top: 120px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7)), radial-gradient(circle, transparent 40%, black 100%), url('hero-bg.JPG');
    background-size: cover; background-position: center;
}
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; color: #ffffff; }

/* --- ABOUT & TECH STACK --- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.tech-stack-container { background-color: var(--bg-card); padding: 40px; border-radius: 12px; border: 1px solid #1a1a1a; }
.tech-category { margin-bottom: 30px; }
.tech-category h4 { color: var(--text-main); margin-bottom: 15px; font-family: var(--font-heading); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; border-bottom: 1px solid #222; padding-bottom: 5px; }
.tech-items { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag { background-color: rgba(255,255,255,0.03); padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; border-left: 2px solid var(--accent); transition: 0.3s; }
.tech-tag:hover { background-color: var(--accent-glow); transform: translateX(3px); }

/* --- PROJECTS --- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 40px; }
.project-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; border: 1px solid #1a1a1a; transition: 0.3s; cursor: pointer; height: 100%; }
.project-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(255,0,0,0.1); }
.project-header { width: 100%; height: 180px; object-fit: cover; }
.project-body { padding: 20px; }

/* --- MODAL --- */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px); align-items: center; justify-content: center; }
.modal-content { background: #0d0d0d; border: 1px solid #222; border-radius: 20px; width: 90%; max-width: 750px; padding: 40px; position: relative; animation: modalSlide 0.4s ease; }
.modal-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 25px; border-top: 1px solid #222; padding-top: 25px; }
.info-label { color: var(--accent); font-size: 0.7rem; text-transform: uppercase; font-family: var(--font-heading); display: block; margin-bottom: 5px; }

/* --- CHAT UI --- */
#ai-agent { position: fixed; bottom: 30px; right: 30px; z-index: 2000; }

.chat-trigger { 
    width: 65px; 
    height: 65px; 
    /* This line looks for your photo */
    background: url('christian-ai.png') center/cover; 
    border-radius: 50%; 
    border: 2px solid var(--accent);
    cursor: pointer; 
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}
/* Add this to handle enter key support */
#chatInput:focus { border-color: var(--accent) !important; }

/* Remove the icon inside if you want just your face */
.chat-trigger i { display: none; } 

/* Ensure the bot messages don't look cramped */
.bot-msg { 
    background: #161616; 
    color: #e2e8f0;
    align-self: flex-start; 
    border-radius: 4px 12px 12px 12px; 
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    border: 1px solid #222;
}

.user-msg { 
    background: var(--accent); 
    color: white;
    align-self: flex-end; 
    border-radius: 12px 12px 4px 12px; 
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.chat-window {
    display: none;
    width: 320px; /* Slimmer width */
    background: #080808;
    border: 1px solid #222;
    border-radius: 12px;
    position: absolute;
    bottom: 85px;
    right: 0;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.chat-header { background: var(--gradient); padding: 15px; font-weight: bold; }

#chatBody {
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* --- TYPING INDICATOR --- */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px !important;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-8px); }
}

/* --- FOOTER --- */
footer { border-top: 1px solid #1a1a1a; padding: 80px 0 40px; text-align: center; }

@media (max-width: 992px) {
    .about-grid, .project-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.1);
}

.service-card.featured {
    border: 2px solid var(--accent);
    background: rgba(255, 0, 0, 0.03);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.service-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 20px;
}

.service-header h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--accent);
    font-size: 0.8rem;
}

.service-ideal {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 20px 0;
    font-style: italic;
}

.service-cta {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.service-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.service-btn.secondary {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-muted);
}

.service-btn.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 0, 0, 0.05);
}

/* Responsive Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-cta {
        flex-direction: column;
    }
}