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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFFFFF;
    z-index: 1001;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #EEEEEE;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FFFFFF;
}

/* Nav chatbot link – subtle highlight */
.chatbot-nav-link {
    position: relative;
    color: #EEEEEE !important;
    font-weight: 600 !important;
}

.chatbot-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.chatbot-nav-link:hover::after {
    transform: scaleX(1);
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #000000;
    color: #FFFFFF;
    box-shadow: 0 0 0 2px #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 5rem;
    position: relative;
    background: #111111;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #CCCCCC;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Hero button row */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    background: #FFFFFF;
    color: #000000;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Outline variant for the chatbot CTA */
.btn-hero--outline {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-hero--outline:hover {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════ */
.services {
    padding: 6rem 5%;
    background: #000000;
}

.article-page {
    padding-top: 10rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    padding: 0 1rem;
    word-wrap: break-word;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    padding: 2.5rem 2rem;
    background: #111111;
    border: 1px solid #222222;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    word-wrap: break-word;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    word-wrap: break-word;
}

.service-card p {
    color: #AAAAAA;
    line-height: 1.6;
    font-weight: 300;
    word-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE CONTENT (AI NEWS PAGE)
   ═══════════════════════════════════════════════════════════════ */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    color: #CCCCCC;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content p {
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.article-content h3 {
    color: #FFFFFF;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    word-wrap: break-word;
}

.article-content ul {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

.article-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

.contact-info {
    margin-top: 2rem;
    padding: 2rem;
    background: #111111;
    border-left: 4px solid #FFFFFF;
    border-radius: 4px;
}

.contact-info strong {
    font-weight: 600;
    color: #FFFFFF;
}

/* Responsive Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    background: #111111;
}

.program-table thead {
    background: #1a1a1a;
}

.program-table th,
.program-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #222;
}

.program-table th {
    font-weight: 600;
    color: #FFFFFF;
}

.program-table td {
    color: #CCCCCC;
}

.program-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════════════════════════════ */
.process {
    padding: 6rem 5%;
    background: #0a0a0a;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    word-wrap: break-word;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 2rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    word-wrap: break-word;
}

.process-step p {
    color: #AAAAAA;
    line-height: 1.6;
    font-weight: 300;
    word-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIAL SECTION
   ═══════════════════════════════════════════════════════════════ */
.testimonial {
    padding: 6rem 5%;
    background: #1a1a1a;
    text-align: center;
}

.testimonial-quote {
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 4rem;
    line-height: 1.5;
    font-style: italic;
    word-wrap: break-word;
    padding: 0 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    word-wrap: break-word;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #AAAAAA;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
    padding: 4rem 5% 2rem;
    background: #000000;
    border-top: 1px solid #222222;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #AAAAAA;
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #555555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: #000000;
}

.copyright {
    text-align: center;
    color: #555555;
    padding-top: 2rem;
    border-top: 1px solid #222222;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    border: 1px solid #333333;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #FFFFFF;
    cursor: pointer;
    border: none;
    background: none;
}

.modal h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #EEEEEE;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #333333;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING CHAT BUTTON (FAB)
   ═══════════════════════════════════════════════════════════════ */
.chatbot-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #FFFFFF;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(255, 255, 255, 0.25);
}

/* chat-bubble icon (default visible) */
.chatbot-fab__icon--chat {
    width: 28px;
    height: 28px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* close icon (hidden by default) */
.chatbot-fab__icon--close {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* swap icons when tooltip is visible */
.chatbot-fab.tooltip-open .chatbot-fab__icon--chat {
    opacity: 0;
    transform: rotate(90deg);
}

.chatbot-fab.tooltip-open .chatbot-fab__icon--close {
    opacity: 1;
    transform: rotate(0deg);
}

/* subtle green "online" pulse */
.chatbot-fab__pulse {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #22c55e;
    border: 3px solid #000000;
    border-radius: 50%;
}

.chatbot-fab__pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2);   opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CHATBOT TOOLTIP
   ═══════════════════════════════════════════════════════════════ */
.chatbot-tooltip {
    position: fixed;
    bottom: 5.2rem;
    right: 2rem;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 0.85rem 2.2rem 0.85rem 1.1rem;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1499;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* little arrow pointing down to the FAB */
.chatbot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 30px;
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    transform: rotate(45deg);
}

.chatbot-tooltip__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #AAAAAA;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.chatbot-tooltip__close:hover {
    color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Tablet & Below (1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.8rem;
    }
    
    .services-grid,
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Mobile Navigation (768px and below) */
@media (max-width: 768px) {
    nav {
        padding: 1rem 3%;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 320px;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid #222;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #222;
    }
    
    .nav-links a,
    .nav-links .btn-primary {
        display: block;
        width: 100%;
        padding: 1.2rem 2rem;
        text-align: left;
        font-size: 1rem;
    }
    
    .nav-links .btn-primary {
        background: transparent;
        color: #FFFFFF;
        border-radius: 0;
        margin: 0;
    }
    
    .nav-links .btn-primary:hover {
        background: #111111;
        box-shadow: none;
    }
    
    .chatbot-nav-link::after {
        display: none;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 5rem 3% 3rem;
        min-height: 100vh;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Services adjustments */
    .services {
        padding: 3rem 3%;
    }
    
    .article-page {
        padding-top: 7rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    /* Article content */
    .article-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .article-content h3 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
    
    .article-content ul {
        margin-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Table responsive */
    .table-wrapper {
        margin: 2rem -1rem;
        padding: 0 1rem;
    }
    
    .program-table thead {
        display: none;
    }
    
    .program-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #222;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .program-table td {
        display: block;
        text-align: right;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #222;
    }
    
    .program-table td:last-child {
        border-bottom: none;
    }
    
    .program-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #FFFFFF;
    }
    
    /* Process adjustments */
    .process {
        padding: 3rem 3%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Testimonial adjustments */
    .testimonial {
        padding: 3rem 3%;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 3rem 3% 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Modal adjustments */
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal h2 {
        font-size: 1.5rem;
    }
    
    /* FAB adjustments */
    .chatbot-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .chatbot-fab__icon--chat {
        width: 24px;
        height: 24px;
    }
    
    .chatbot-fab__icon--close {
        width: 20px;
        height: 20px;
    }
    
    .chatbot-tooltip {
        bottom: 4.5rem;
        right: 1.5rem;
        max-width: calc(100vw - 3rem);
        white-space: normal;
        font-size: 0.85rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    nav {
        padding: 1rem 2%;
    }
    
    .nav-links {
        width: 90%;
    }
    
    .hero {
        padding: 5rem 2% 2rem;
    }
    
    .services,
    .process,
    .testimonial {
        padding: 2.5rem 2%;
    }
    
    .article-page {
        padding-top: 6rem;
    }
    
    .article-content {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .service-card,
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .chatbot-fab {
        width: 52px;
        height: 52px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .chatbot-tooltip {
        bottom: 4rem;
        right: 1rem;
        padding: 0.7rem 1.8rem 0.7rem 0.9rem;
    }
}

/* Extra Small (375px and below) */
@media (max-width: 375px) {
    nav {
        padding: 0.8rem 2%;
    }
    
    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .btn-hero {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }
    
    .hero {
        padding: 4.5rem 2% 2rem;
    }
    
    .services,
    .process,
    .testimonial {
        padding: 2rem 2%;
    }
}
