:root {
    --bg-color: #050510;
    --text-color: #e0e0e0;
    --accent-primary: #00f2ff;
    /* Cyan */
    --accent-secondary: #bd00ff;
    /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(10, 10, 30, 0.6);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Canvas Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #fff;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo .accent {
    color: var(--accent-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #aaa;
}

.highlight-box {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(5px);
    max-width: 800px;
    margin: 0 auto 3rem;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.mission-statement {
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-primary);
    margin-left: 1rem;
}

.secondary-btn:hover {
    background: rgba(0, 242, 255, 0.1);
}

/* Sections */
.section {
    padding: 80px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
}

/* Timeline (About) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: 5px;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.year {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.highlight-badge {
    display: inline-block;
    background: rgba(189, 0, 255, 0.2);
    color: var(--accent-secondary);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--accent-secondary);
}

/* Architectural Pillars (Expertise) */
.glass-bg-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.expertise-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.1);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.expertise-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.expertise-item p {
    font-size: 0.95rem;
    color: #aaa;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-primary);
}

.card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--accent-primary);
}

.placeholder-gradient {
    position: relative;
    overflow: hidden;
}

.placeholder-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-content p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.tags span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 5px;
    color: var(--accent-primary);
}

/* Contact */
.contact-wrapper {
    text-align: center;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-wrapper p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-wrapper .btn {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for MVP */
    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        padding-left: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-right: 0;
        padding-left: 20px;
    }

    .timeline-item::after {
        left: -7px;
    }

    .timeline-item:nth-child(odd)::after {
        left: -7px;
        right: auto;
    }
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.insight-content .date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.insight-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.insight-content p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.strategic-takeaway {
    background: rgba(0, 242, 255, 0.05);
    border-left: 3px solid var(--accent-primary);
    padding: 1rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #fff;
}

.strategic-takeaway strong {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: margin-left 0.3s ease;
}

.read-more:hover {
    margin-left: 5px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    align-items: flex-end;
    pointer-events: none;
    /* Allow interaction with underlying elements */
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    /* Re-enable for the toggle button */
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.chat-window {
    width: 350px;
    height: 450px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    /* Re-enable for the chat window */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.chat-header {
    padding: 15px;
    background: linear-gradient(to right, rgba(0, 242, 255, 0.1), rgba(189, 0, 255, 0.1));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

#chat-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

#chat-close:hover {
    color: #fff;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    font-weight: 500;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 10px 15px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: var(--accent-primary);
}

#chat-send {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

#chat-send:hover {
    transform: translateX(3px);
}

/* Chat Tooltip */
.chat-toggle-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(15, 15, 30, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chat-toggle-btn:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Split Hero Layout */
.hero-content {
    display: flex;
    /* Changed from default block/flex-column to flex */
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    /* Reset text align */
    flex-wrap: wrap;
    /* Ensure mobile compatibility */
}

/* Specific overrides for the split layout */
.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.hero-img-container {
    width: 350px;
    height: 350px;
    border-radius: 30px;
    /* Modern soft square or 50% for circle */
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(3deg);
    /* Slight arterial tilt */
    transition: transform 0.3s ease;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.hero-img-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Adjustments for split hero */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        /* Image on top on mobile? Or text on top? Let's keep text on top for now, or ensure image isn't huge. Actually standard is image then text or text then image. Let's do Text top. */
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-img-container {
        width: 250px;
        height: 250px;
        transform: rotate(0deg);
    }

    .highlight-box {
        margin: 0 auto 2rem;
        /* Center align box on mobile */
    }
}

/* Mobile Mission Statement Toggle */
.mission-mobile {
    display: none;
}

@media (max-width: 768px) {
    .mission-full {
        display: none;
    }

    .mission-mobile {
        display: block;
    }
}

/* Outcome Metrics */
.outcome-metric {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
    background: rgba(0, 242, 255, 0.05);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 5px;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.linkedin-btn {
    background: #0077b5;
    color: #fff;
    border: 1px solid #0077b5;
}

.linkedin-btn:hover {
    background: #005582;
    border-color: #005582;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

/* Fix Chat Icon on Very Small Screens */
@media (max-width: 375px) {
    .chat-widget {
        bottom: 20px;
        right: 15px;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .chat-window {
        width: calc(100vw - 30px);
        right: 15px;
    }
}