@import url('https://fonts.googleapis.com/css2?family=Allan:wght@400;700&family=Bebas+Neue&family=Caveat:wght@400..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Text:ital@0;1&family=Edu+AU+VIC+WA+NT+Pre:wght@400..700&family=Geist+Mono:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --primary-color: #ff0f2b;
    --primary-dark: #d60e26;
    --black: #000;
    --white: #fff;
    --gray-light: #f0f0f0;
    --gray-medium: #b3b3b3;
    --gray-dark: #333;
    --gray-text: #666;
    --red-accent: #ff0000;
    --red-light: #ff6b6b;
    --dark-bg: #000;
    --dark-surface: #111;
    --dark-text: #fff;
    --glass-color: #0000004D;
    --shape-color: #FFFFFF0D;
    --overlay-dark: #000000a0;
}

.background{
    background-color: #eaf1f4;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth; /* 👈 Add this */
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
}



    .nav-link{
        font-size: 11px;
    }

    .hero-section {
        background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/aic_images/hero_bg.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 100vh;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
    }
    
    .logo-img {
        height: 40px;
        width: auto;
    }
    
    .ai-text {
        color: var(--primary-color);
    }
    
    .hero-title {
        font-size: 48px;
        font-weight: 650;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 16px;
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto 2.5rem;
    }
    
    .btn-custom-primary {
        background: linear-gradient(to right, var(--primary-color), var(--black));
        border-color: var(--primary-color);
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 25px;
        font-size: 10px;
    }
    
    .btn-custom-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }
    
    .btn-custom-outline {
        border: 2px solid var(--white);
        color: var(--white);
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 25px;
    }
    
    .btn-custom-outline:hover {
        background-color: var(--white);
        color: var(--gray-dark);
    }
    
    .solutions-section {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        color: var(--white);
        width: 100%;
    }
    
    .solution-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        transition: opacity 0.3s ease;
        padding: 5px 8px;
        text-decoration: none;
        color: var(--white);
        border-radius: 5px;
    }
    
    .solution-item:hover {
        opacity: 0.8;
        color: var(--white);
    }
    
    .solution-icon {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }
    
    .solutions-label {
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px;
        opacity: 0.8;
    }
    
    /* Desktop and Tablet Styles */
    @media (min-width: 769px) {
        .hero-content {
            max-width: 800px;
        }
        
        .btn-wrapper {
            display: flex;
            gap: 20px;
            justify-content: center;
        }
    }
    
    /* Mobile Styles */
    @media (max-width: 768px) {
        .hero-section {
            padding: 60px 20px 20px;
        }
        
        .hero-title {
            font-size: 2.5rem;
        }
        
        .hero-subtitle {
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }
        
        .btn-wrapper {
            display: flex;
            gap: 15px;
            margin: 0 auto;
        }
        
        .btn {
            width: 100%;
            font-size: 12px;
        }
        
        .solutions-section {
            position: static;
            margin-top: 60px;
            transform: none;
            left: auto;
            bottom: auto;
        }
        
        .solution-item {
            font-size: 0.8rem;
            gap: 5px;
            padding: 3px 6px;
        }
        
        .solution-icon {
            width: 16px;
            height: 16px;
        }

        .open-day-text{
            font-size: 12px !important;
        }

        .event-card{
        margin-top: 100px;
        margin-bottom: 50px;
        }

        
        .aic-one .card-content {
            padding: 30px 20px;
        }
        
        .aic-one .cta-title {
            font-size: 2rem;
        }
        
        .aic-one .cta-description {
            font-size: 1rem;
        }
        
        .aic-one .col-lg-4 {
            text-align: center !important;
            margin-top: 20px;
        }
    }
    
    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
            line-height: 1.2;
        }
        
        .hero-subtitle {
            font-size: 1rem;
        }
        
        .solution-item {
            font-size: 0.75rem;
            gap: 4px;
            padding: 2px 4px;
        }
        
        .solution-icon {
            width: 14px;
            height: 14px;
        }
        
        .solutions-label {
            font-size: 0.7rem;
        }
    }
    
    /* Very small devices */
    @media (max-width: 420px) {
        .hero-title {
            font-size: 1.8rem;
        }
        
        .hero-subtitle {
            font-size: 0.95rem;
        }
        
        .btn {
            font-size: 0.9rem;
            padding: 10px 20px;
        }
        
        .solutions-section {
            margin-top: 40px;
        }
        
        .solution-item {
            font-size: 0.7rem;
            gap: 3px;
        }
        
        .solution-icon {
            width: 12px;
            height: 12px;
        }
    }
    
    /* Navbar improvements */
    .navbar-toggler {
        border: none;
        padding: 4px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    @media (max-width: 768px) {
        .navbar-nav {
            text-align: center;
            padding-top: 15px;
        }
    }

    /*FOURTH SECTION*/
    .solutions-container {
        max-width: 1385px;
        margin: 50px auto;
        margin-bottom: 100px;
        background-color: var(--gray-light);
        border-radius: 35px;
        padding: 70px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .solutions-title {
        font-size: 52px;
        text-align: center;
        margin-bottom: 40px;
        font-weight: 500;
    }
    
    .dropdown-toggle {
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        background-color: transparent;
        border: none;
        width: 100%;
        text-align: left;
        font-weight: 600;
        position: relative;
    }
    
    .dropdown-toggle::after {
        content: "";
        width: 10px;
        height: 10px;
        display: inline-block;
        transition: transform 0.3s ease;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .dropdown-toggle.active::after {
        transform: rotate(180deg);
    }
    
    .custom-dropdown {
        border-bottom: 1px solid #ddd;
        padding: 5px 0;
    }
    
    .custom-dropdown:last-child {
        border-bottom: none;
    }
    
    .dropdown-content {
        display: none;
        padding: 5px 0 15px;
        font-size: 0.85rem;
        color: var(--gray-text);
    }

    .first-dropdown{
        display: block;
    }
    
    .grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
        height: 180px;
    }
    
    .grid-item {
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 15px;
        background-color: var(--gray-light);
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .learn-more-btn {
        margin-top: 20px;
        background: linear-gradient(to right, var(--primary-color), var(--black));
        color: var(--white);
        border: none;
        padding: 8px 16px;
        border-radius: 12px;
        font-weight: 500;
        display: inline-block;
        font-size: 0.75rem;
        float: right;
        text-decoration: none;
        text-align: center;
    }
    
    .learn-more-btn:hover {
        background: linear-gradient(to left, var(--primary-color), var(--black));
        color: var(--white);
        text-decoration: none;
    }
    
    .product-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0;
        padding-right: 10px;
    }
    
    @media (max-width: 768px) {
        .row {
            flex-direction: column;
        }
    }

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

    .fade-in {
        animation: fadeIn 0.5s ease-out;
    }

    .solution-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .solution-title {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .solution-description {
        color: var(--gray-text);
        line-height: 1.6;
    }

    .solution-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }

    .feature-item {
        background-color: #f4f4f4;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-size: 0.8rem;
    }

    /*FIFTH SECTION*/
    .main-banner {
        min-height: 77vh;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1rem;
    }
    
    .stars {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        animation: sparkle 2s infinite alternate;
    }
    
    .star {
        color: var(--red-accent);
        font-size: 20px;
        margin: 0 3px;
        display: inline-block;
        animation: twinkle 1.5s infinite;
    }
    
    .star:nth-child(1) { animation-delay: 0s; }
    .star:nth-child(2) { animation-delay: 0.5s; }
    .star:nth-child(3) { animation-delay: 1s; }
    .star:nth-child(4) { animation-delay: 1.5s; }
    
    .logo-text {
        font-size: 16px;
        color: var(--white);
        margin-top: 20px;
        text-align: center;
    }
    
    .logo-text .highlight {
        color: var(--red-accent);
    }
    
    .main-heading {
        font-size: 42px;
        font-weight: 700;
        text-align: center;
        margin: 60px 0 80px 0;
        line-height: 1.1;
        padding: 0 1rem;
    }
    
    .main-heading .ai-highlight {
        color: var(--red-accent);
    }
    
    .features-container {
        max-width: 1200px;
        width: 100%;
        padding: 0 1rem;
    }
    
    .feature-card {
        background-color: #1a1a1a;
        border-radius: 16px;
        padding: 2rem 1.5rem;
        border: 1px solid var(--gray-dark);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-height: 300px;
    }
    
    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(255, 0, 51, 0.15);
        border-color: var(--red-accent);
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: #1a1a1a;
        border: 3px solid var(--gray-dark);
        margin-bottom: 1.5rem;
        position: relative;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--red-accent);
    }
    
    .feature-icon i {
        color: var(--white);
        font-size: 24px;
        z-index: 2;
        position: relative;
    }
    
    .feature-card:hover .feature-icon {
        animation: pulse 0.6s ease-in-out;
    }
    
    .feature-title {
        font-size: 1.375rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--white);
        text-align: center;
    }
    
    .feature-description {
        color: #aaa;
        line-height: 1.6;
        font-size: 0.9rem;
        text-align: center;
        flex-grow: 1;
    }
    
    @keyframes sparkle {
        0% { transform: translateX(-50%) scale(1); }
        100% { transform: translateX(-50%) scale(1.1); }
    }
    
    @keyframes twinkle {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(0.8); }
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .fade-in-up {
        animation: fadeInUp 0.8s ease-out;
    }
    
    /* Staggered animation delays */
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .feature-card:nth-child(4) { animation-delay: 0.4s; }
    
    /* Background dots pattern */
    .dots-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.05;
        background-image: radial-gradient(circle, var(--white) 1px, transparent 1px);
        background-size: 50px 50px;
        z-index: -1;
    }
    
    /* Responsive adjustments */
    @media (max-width: 1200px) {
        .main-banner {
            padding: 1.5rem 1rem;
        }
        
        .features-container {
            padding: 0 0.5rem;
        }
    }
    
    @media (max-width: 768px) {
        .main-banner {
            min-height: auto;
            padding: 2rem 0.5rem;
        }
        
        .stars {
            top: 30px;
        }
        
        .star {
            font-size: 16px;
            margin: 0 2px;
        }
        
        .logo-text {
            font-size: 14px;
        }
        
        .main-heading {
            margin: 40px 0 60px 0;
            padding: 0 0.5rem;
        }
        
        .feature-card {
            padding: 1.5rem 1rem;
            margin-bottom: 1rem;
            min-height: 280px;
        }
        
        .feature-icon {
            width: 70px;
            height: 70px;
            margin-bottom: 1rem;
        }
        
        .feature-icon::before {
            width: 45px;
            height: 45px;
        }
        
        .feature-icon i {
            font-size: 20px;
        }
        
        .feature-title {
            font-size: 1.25rem;
        }
        
        .feature-description {
            font-size: 0.85rem;
        }
    }
    
    @media (max-width: 576px) {
        .main-banner {
            padding: 1.5rem 0.5rem;
        }
        
        .feature-card {
            padding: 1.25rem 0.75rem;
        }
        
        .main-heading {
            margin: 30px 0 50px 0;
        }
    }
    
    @media (max-width: 480px) {
        .stars {
            top: 20px;
        }
        
        .logo-text {
            font-size: 13px;
        }
        
        .feature-card {
            min-height: 260px;
        }
    }
    
    /* Hover effects for touch devices */
    @media (hover: none) and (pointer: coarse) {
        .feature-card:hover {
            transform: none;
            box-shadow: none;
            border-color: var(--gray-dark);
        }
    }

    /*FOOTER SECTION*/
    .content {
        flex: 1;
        background-color: #f8f9fa;
        padding: 20px;
    }
    
    .footer {
        background: linear-gradient(to bottom, var(--black), var(--red-accent));
        color: var(--white);
        padding: 40px 0 20px;
    }
    
    .footer-logo {
        max-width: 150px;
        margin-bottom: 15px;
    }
    
    .footer h5 {
        font-weight: 600;
        margin-bottom: 20px;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        color: var(--white);
        text-decoration: none;
        transition: opacity 0.3s;
    }
    
    .footer-links a:hover {
        opacity: 0.8;
    }
    
    .social-icons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }
    
    .footer-text{
        font-size: 12px;
        width: 200px;
    }

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.2);
        color: var(--white);
        transition: all 0.3s;
        text-decoration: none;
    }
    
    .social-icons a:hover {
        background-color: var(--white);
        color: var(--red-accent);
        transform: translateY(-3px);
    }
    
    .copyright {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    @media (max-width: 767px) {
        .footer-column {
            margin-bottom: 30px;
        }
    }

    /*back to home button*/
    .button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--black));
        border: none;
        cursor: pointer;
        transition-duration: 0.3s;
        bottom: 30px;
        left: 5px;
        color: var(--white);
    }

    .button:hover {
        width: 140px;
        border-radius: 50px;
        transition-duration: 0.3s;
        background: linear-gradient(135deg, var(--primary-dark), var(--black));
        align-items: center;
    }

    .button i {
        color: var(--white);
        transition-duration: 0.3s;
    }

    .button:hover i {
        transform: translateY(-240%);
        transition-duration: 0.3s;
    }

    .button::before {
        position: absolute;
        content: "Back to Top";
        color: var(--white);
        font-size: 0px;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .button:hover::before {
        font-size: 13px;
        opacity: 1;
        transition: all 0.3s ease;
    }


    /*SECOND PAGE*/

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

        body {
            background-color: var(--black);
            color: var(--white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Animated Background Elements */
        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .floating-circle {
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(45deg, rgba(255, 15, 43, 0.1), rgba(0, 0, 0, 0.05));
            animation: float 20s infinite linear;
        }

        @keyframes float {
            from { transform: translateY(100vh) rotate(0deg); }
            to { transform: translateY(-100vh) rotate(360deg); }
        }

        /* Header Section */
        .header {
            position: relative;
            text-align: center;
            padding: 160px 0;
            overflow: hidden;
        }

        .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(var(--overlay-dark), var(--overlay-dark)), /* overlay color */
        url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/archive/aicampus_image.webp'); /* background image */
    background-size: cover;
    background-position: center;
    z-index: 1;
}


        .header-content {
            position: relative;
            z-index: 2;
        }

        .header h1 {
            font-size: 52px;
            font-weight: 650;
            margin-bottom: 30px;
            color: var(--white);
            text-shadow: 0 4px 15px rgba(255, 15, 43, 0.3);
            animation: fadeInUp 1s ease-out;
        }

        .header p {
            font-size: 16px;
            color: var(--gray-light);
            max-width: 900px;
            margin: 0 auto;
            animation: fadeInUp 1s ease-out 0.2s both;
        }

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

        /* Story Section */
        .story-section {
            position: relative;
            padding: 120px 0;
            background-color: var(--black);
        }

        .story-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23333" stroke-width="1" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .section-title {
            font-size: 45px;
            font-weight: 650;
            margin-bottom: 60px;
            text-align: center;
            color: white;
            position: relative;
            animation: slideInLeft 1s ease-out;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--black));
            border-radius: 2px;
        }

        .story-content {
            font-size: 16px;
            line-height: 2;
            color: var(--gray-light);
            text-align: center;
            max-width: 1000px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* Locations Section */
        .locations-section {
            padding: 5px 0;
            background: var(--black);
            position: relative;
        }

        .locations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 10px;
            margin-top: 60px;
        }

        .location-card {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--black) 70%);
            border-radius: 20px;
            text-align: center;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            height: 400px;
        }

        .location-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.7s;
        }

        .location-card:hover::before {
            left: 100%;
        }

        .location-card:hover {
            transform: translateY(-15px) rotateX(5deg);
            box-shadow: 0 30px 50px rgba(255, 15, 43, 0.5);
        }

        .location-image {
            width: 100%;
            height: 70%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            overflow: hidden;
        }

        .location-content {
            padding: 10px;
            height: 30%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: linear-gradient(180deg, rgba(255, 15, 43, 0.9) 0%, var(--black) 100%);
        }

        .location-name {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--white);
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }

        .location-desc {
            color: var(--gray-light);
            font-size: 11px;
        }

        /* CTA Section */
        .cta-section {
            padding: 120px 0;
            background: 
                var(--black),
                radial-gradient(circle at center, rgba(255, 15, 43, 0.1) 0%, transparent 70%);
            text-align: center;
            position: relative;
        }

        .cta-content {
            max-width: 900px;
            margin: 0 auto;
        }

        .cta-title {
            font-size: 45px;
            font-weight: 650;
            margin-bottom: 30px;
            color: var(--white);
            text-shadow: 0 4px 15px rgba(255, 15, 43, 0.2);
        }

        .cta-text {
            font-size: 16px;
            color: var(--gray-light);
            margin-bottom: 50px;
            line-height: 1.8;
        }

        .cta-button {
            background: linear-gradient(45deg, var(--primary-color), var(--black) 70%, var(--black));
            color: var(--white);
            padding: 20px 50px;
            border: none;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(255, 15, 43, 0.3);
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--red-light), var(--black));
            transition: left 0.5s ease;
            z-index: -1;
        }

        .cta-button:hover::before {
            left: 0;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 15, 43, 0.5);
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth !important;
        }

.solution-image {
    max-width: 45%;
    height: auto;
    margin: 1rem auto 0;
    border-radius: 8px;
    display: block;
}


/*Newsroom*/

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.hero {
    padding: 7rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 50%, var(--black) 100%);
    margin-bottom: 2rem;
}



.hero h1 {
    font-size: 52px;
    font-weight: 650;
    margin-bottom: 1rem;
    font-weight: 650;
    text-shadow: 0 4px 15px rgba(255, 15, 43, 0.3);
    animation: fadeInUp 1s ease-out;
}

.filters {
    margin-bottom: 5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background-color: var(--black);
    color: var(--dark-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 17px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn.active {
    background-color: var(--primary-color);
}

.filter-btn:hover {
    background-color: var(--primary-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 9rem;
}

.news-card {
    background-color: var(--dark-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-tag.press {
    background-color: var(--primary-dark);
}

.card-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.card-date {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.card-excerpt {
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 15, 43, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--dark-surface);
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalopen 0.3s;
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: white;
}

.modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
}

.modal-title {
    font-size: 1.8rem;
    margin: 0;
}

.modal-meta {
    display: flex;
    margin-top: 0.75rem;
    color: #aaa;
    font-size: 0.9rem;
}

.modal-type {
    margin-right: 1.5rem;
}

.modal-body {
    line-height: 1.8;
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Hide elements based on filter */
.news-card[data-type] {
    display: block;
}

.news-card.filtered {
    display: none;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
}

.sandton-image{
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/sandton_building.png');
}

.waterfront-image{
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/waterfront_building.png');
}

.bellville-image{
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/Bellville_building.png');
}

.harare-image{
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/Harare_building.png');
}

@media screen and (max-width: 600px) {
    /* Styles for small devices */
    .btn-custom-primary{
        margin-bottom: 60px;;
        width: 140px;
        margin-left: auto;
        margin-right: auto;
        font-size: 9px;
    }

    .hero-title{
        margin-top: 150px;
    }

    .hero-subtitle{
        margin-top: 40px;
        margin-bottom: 40px;;
        font-size: 12px;
    }

    .hero-section{
        height: 100vh;
    }
    
    .back-to-hero{
        left: 15px;
        top: 600px;
    }

    .roadmap-header{
        width: 270px;
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;

    }

    .tab-content p{
        font-size: 12px;
        text-align: center;;
    }

    .tab-list{
        text-align: center;

        font-size: 11px;
        font-weight: 300 !important;
    }

    .tab-pane-image{
        display: none;
    }

    .frame-container{
        display: none;
    }

    .journey-title{
        font-size: 25px;
        text-align: center;
    }

    .journey-description{
        font-size: 8px;
        text-align: center;
    }

    .solutions-title{
        font-size: 23px;
    }

    .main-heading{
        font-size: 23px;
        width: 98%;
    }

    .feature-description{
        width: 80%;
    }

    .feature-card{
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .journey-section{
        margin-bottom:0px !important;
        margin-top:0px !important;
    }


    .tab-title{
        text-align: center;
    }

    .tab-pane-content{
        text-align: center;
    }

    .header-content h1{
        font-size: 30px;
    }

    .header-content p{
        font-size: 13px;
    }

    .story-content{
        font-size: 12px;
    }

    .section-title{
        font-size: 30px;
    }

    .cta-title{
        font-size: 30px;
    }

    .cta-text{
        font-size: 12px;
    }

    .cta-button{
        font-size : 12px;
    }

    .filter-btn{
        font-size: 12px;
    }

    .read-more{
        font-size: 12px;
    }
    

}

.modal.active {
  display: flex;
}

/*Mobile view*/
    .sol-mobile-container {
      max-width: 90%;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 100px;
    }
    
    .sol-mobile-accordion {
      margin-bottom: 10px;
      border: 1px solid #ddd;
      border-radius: 16px;
      overflow: hidden;
    }
    
    .sol-mobile-header {
      background-color: #f8f9fa;
      padding: 15px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
    }
    
    .sol-mobile-header.sol-active {
      background-color: #e9ecef;
    }
    
    .sol-mobile-header::after {
      content: '+';
      font-size: 18px;
    }
    
    .sol-mobile-header.sol-active::after {
      content: '-';
    }
    
    .sol-mobile-content {
      display: none;
      padding: 15px;
      background-color: white;
      text-align: center;
    }
    
    .sol-mobile-content.sol-show {
      display: block;
    }
    
    .sol-product-desc {
      margin-top: 0;
      margin-bottom: 15px;
      color: #555;
      font-size: 12px;
    }
    
    .sol-details {
      margin-top: 15px;
    }
    
    .sol-image {
      width: 80%;
      max-height: 200px;
      object-fit: cover;
      margin: 10px 0;
      border-radius: 4px;
    }
    
    .sol-cta-btn {
      display: block;
      background: linear-gradient(to right, #d80202 0%, black 100%);
      color: white;
      text-align: center;
      padding: 10px;
      border-radius: 10px;
      text-decoration: none;
      margin-top: 10px;
      font-weight: bold;
    }



/*Ipad Potrait*/

@media only screen 
and (min-width: 600px) 
and (max-width: 1024px) 
and (orientation: portrait){
    /* iPad Pro 11" Portrait Styles */
    .tab-btn{
        font-size: 13px !important;
    }

    .tab-pane-image{
        display: none;
    }

    .frame-container{
        display: none;
    }

    .journey-section{
        margin-bottom:0px !important;
        margin-top:0px !important;
    }
    
    .social-icons a {
        background-color: transparent;
    }

    .social-icons a:hover {
        background-color: transparent
    }

    .footer-text{
        font-size : 9px;
        width: 170px;
    }

    .feature-card{
        min-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .d-ipad-mini-block{
        display: none !important;
    }

    .person-image{
        height: 521px !important;
        width: 300px !important;
    }

    
}

/*Small Tablets*/

@media only screen 
and (min-width: 600px) 
and (max-width: 800px) 
and (orientation: portrait) {
    /* Styles for small tablets */

    .btn-custom-primary{
        width: 200px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 80px;
        margin-top: 30px;;
    }

    .hero-title{
        margin-top: 150px;
    }

    .hero-section{
        height: 100vh;
    }

    .feature-card{
        width: 100%;
    }

    .solution-description{
        font-size: 8px;
        width: 50%;
    }

    .solutions-container{
        display: none !important;
    }

    .d-ipad-mini-block {
      display: block !important;
    }

    .navbar-nav{
        margin-left: auto !important;
        margin-right: auto !important;
    }

    

}

.d-ipad-mini-block{
    display: none;
}

/*Meet the team section*/

        .team-carousel-container {
            overflow: hidden;
            padding: 60px 0;
            background-color: var(--darker-bg);
        }

        .team-carousel {
            display: flex;
            gap: 2rem;
            width: fit-content;
        }

        .team-member {
            flex: 0 0 250px;
            text-align: center;
            background: var(--dark-bg);
            border-radius: 15px;
            padding: 2rem 1.5rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #333;
        }

        .team-member:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(220, 53, 69, 0.1);
            border-color: var(--red-accent);
        }

        .team-member img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1.5rem;
            border: 3px solid var(--red-accent);
        }

        .team-member h5 {
            color: var(--text-light);
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .team-member p {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        /* Desktop styles */
        @media (min-width: 1025px) {
            .team-carousel {
                display: flex;
                gap: 2rem;
                width: fit-content;
                animation: slideLoop 35s linear infinite;
            }

            .team-carousel:hover {
                animation-play-state: paused;
            }
        }

        @keyframes slideLoop {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-250px * 3 - 6rem)); /* Adjust based on number of cards */
            }
        }

        .team-carousel-container {
            overflow: hidden;
            padding: 60px 0;
            background-color: var(--darker-bg);
            width: 100%;
        }

        /* Mobile styles */
    @media (max-width: 1024px) {
    .team-carousel-container {
        padding: 30px 15px;
        overflow: hidden;
    }

    .team-carousel {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 15px 20px;
        margin: 0 -15px;
        width: 100%;
        scroll-behavior: smooth;
        animation: none;
    }

    .team-member {
        flex: 0 0 250px;
        scroll-snap-align: start;
        margin-right: 10px;
    }

    .team-member:last-child {
        margin-right: 15px; 
    }
    .team-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .team-carousel {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mission-card , .vision-card{
        height: 200px !important;
    }

    .card-content{
        top : 10px !important;
    }

    .card-content, .card-title{
        font-size: 14px !important;
    }

    .vision-mission-section{
        height: 100vh !important;
    }

    .aic-one{
        width: 100% !important;
    }
}
@media (max-width: 767px) {
    .team-carousel {
        animation: none;
    }
}

.video-frame{
    border-radius: 25px;
}

/*Open day css*/

        /* Custom Styles */
    .event-section {
      background: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/open_day_background.png') no-repeat center center fixed;
      background-size: cover;
      min-height: 90vh;
    }

    .event-card {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .ai-avatar {
      right: -20%;
      bottom: -20%;
      width: 120% !important;
      height: 120% !important;
    }

    .person-image {
      background: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/aic_images/ai_woman.webp') center center / cover no-repeat;
    }

    .countdown-box {
      min-width: 100px;
      background: linear-gradient(180deg, #000000 0%, #b91c1c 60%);
    }

    .main-title {
      background: linear-gradient(135deg, #ffffff 0%, #dc2626 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .glow-text {
      text-shadow: 0 0 20px rgba(255, 0, 64, 0.8);
    }

    .rsvp-btn {
      background: linear-gradient(135deg, #000000 0%, #b91c1c 100%);
      font-size: 10px;
    }

.diagram{
    max-width: 90%;
    height: auto;
}

/*podcast section*/


    .aicampus-video-container {
      height: 400px;
    }

    .aicampus-video-thumbnail {
      background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                  url('/assets/podcast_thumbnail.webp') center/cover no-repeat;
    }

    .aicampus-play-button {
      width: 80px;
      height: 80px;
      transition: transform 0.3s ease;
    }

    .aicampus-play-button:hover {
      transform: scale(1.1);
    }

    .aicampus-video-embed {
      display: none;
    }

    .aicampus-gradient-dark-red {
      background: linear-gradient(180deg, #000000 0%, red 100%);
    }

/*Mission Vision*/

.card-description{
    width: 80px; 
    height: 80px
}

/* ...existing code... */
.vision-mission-bg {
    z-index: 1;
    
}
.vision-svg-bg {
    top: 80%;
    left: -10%;
    width: 500px;
    max-width: 120vw;
    min-width: 400px;
    transform: translate(-50%, -50%);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.rounded-circle{
    width:64px;
    height:64px;
}

.aicone_logo{
    height: 70px; 
    vertical-align: middle;
    margin-bottom: 15px;
}


.aic-one {
    min-height: 200px;
}
        
.aic-one::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cc0000 50%, var(--black) 100%);
    opacity: 1;
    z-index: 1;
}
        
        
        
.aic-one .card-content {
    z-index: 3;
    padding: 40px;
}
        
.aic-one .cta-logo {
    margin-bottom: 20px;
}
        
        
.aic-one .cta-logo span {
    font-size: 2rem;
    letter-spacing: 1px;
}
        
.aic-one .cta-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
        
        
.aic-one .cta-btn {
    background-color: var(--glass-color);
    border: 2px solid grey;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
        
.aic-one .geometric-shapes {
    z-index: 2;
    pointer-events: none;
}
        
.aic-one .shape {
    background: var(--shape-color);
    border-radius: 20px;
}
        
.aic-one .shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    transform: rotate(45deg);
}
        
.aic-one .shape-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    transform: rotate(30deg);
    border-radius: 50%;
}
        
.aic-one .shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    transform: rotate(60deg);
}
        
@keyframes ripple {
    
    to {
        transform: scale(4);
        opacity: 0;
    }
}
        
@keyframes float {

    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.aic-one .shape {
    animation: float 6s ease-in-out infinite;
}

.aic-one .shape-2 {
    animation-delay: -2s;
}

.aic-one .shape-3 {
    animation-delay: -4s;
}

 .mission-card {
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/archive/aicampus_image.webp');
}
        
.vision-card {
    background-image: url('https://empirewebvideos.s3.us-east-1.amazonaws.com/websites/AIC/archive/aicampus_image_two.webp');
}

.vision-mission-section {
background: linear-gradient(to bottom, var(--gray-light) 0%, var(--black) 100%);
height: 80vh;
}
        
.mission-card, .vision-card {
    background-size: cover;
    background-position: center;
    height: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card-content {
top: 140px;
}
        
.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--gray-dark);
}

.mission-card::before, .vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: 1;
}

.journey-section {
    background: var(--black);
}
        
        
.ai-highlight {
    color: var(--primary-color);
}
        
.journey-card {
    background: var(--shape-color);
    min-height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
        
.journey-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 8px var(--red-accent);
}
        
        
.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(var(--primary-color) , var(--glass-color));
    margin-bottom: 25px;
}

.full-black-bg {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    margin: 0;
}

 /* Chatbot interface styles */
 

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--black));
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1); 
}

.chat-window {
  width: 350px;
  height: 500px;
  background: var(--dark-surface);
  box-shadow: 0 20px 60px var(--red-light); /* custom, since Bootstrap shadows don’t match */
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}

.chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), var(--black)); /* custom gradient */
}

.chat-header h3 { 
  margin: 0; 
  font-size: 18px; 
}

.chat-header p {
  margin: 5px 0 0; 
  font-size: 12px; 
  opacity: 0.9; 
}

.close-chat {
  width: 30px;
  height: 30px;
  font-size: 20px;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}

.close-chat:hover { 
  background: var(--gray-dark); 
}

.chat-messages {
  background: #0d1117;       /* custom dark background */
  color: #e6edf3;            /* custom text color */
  scroll-behavior: smooth;   /* smooth scroll */
}

.message { 
  margin-bottom: 15px; 
  animation: fadeIn 0.3s ease-in; 
}

@keyframes fadeIn {
     
    from { 
      opacity: 0; 
      transform: translateY(10px);
    } 

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

}

.message.user { 
  text-align: right; 
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px; line-height: 1.4;
    word-break: break-word;
}
        
.message.user .message-content { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
    color: var(--white); 
}

.message.bot .message-content { 
    background: var(--gray-dark); 
    color: var(--dark-text); 
}

.chat-input-area {
    padding: 20px;
    background: var(--dark-surface);
    border-top: 1px solid var(--gray-dark);
}

.input-group {  
    gap: 10px; 
}

.chat-input {
    flex: 1; 
    padding: 12px 16px;
    border: 2px solid var(--gray-dark); 
    background: var(--black); 
    color: var(--gray-text);
    border-radius: 25px; 
    outline: none; 
    font-size: 14px; 
    transition: border-color 0.2s;
}

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

.chat-input::placeholder { 
  color: var(--gray-medium); 
}

.send-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); /* custom gradient */
  cursor: pointer;
  transition: transform 0.2s;
}

.send-btn:hover { 
  transform: scale(1.05); 
}

.send-btn:disabled {
  opacity: 0.6; 
  cursor: not-allowed; 
  transform: none; 
}

.typing-indicator {
  background: var(--dark-surface);       /* custom background */
  border: 1px solid var(--gray-text); /* custom border color */
  border-radius: 18px;       /* rounded bubble */
  max-width: 80%;             /* limit width like messages */
}

.typing-dots { 
  gap: 4px; 
}

.typing-dots span {
  width: 8px; 
  height: 8px; 
  border-radius: 50%;
  background: var(--primary-color); 
  animation: typing 1.4s infinite;
}
        
.typing-dots span:nth-child(2) { 
    animation-delay: 0.2s; 
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s; 
}
        
@keyframes typing {
     
  0%,60%,100% { 
  opacity: .3; 

} 

30% {
  opacity: 1; 
} 

}

.welcome-message { 
  text-align: center; 
  color: var(--gray-medium); 
  font-style: italic; 
  margin: 20px 0; 
}

@media (width < 400px) {

  .chat-window { 
  width: calc(100vw - 40px); 
  left: -10px; 
}

}

.chat-messages::-webkit-scrollbar { 
    width: 8px; 
}
        
.chat-messages::-webkit-scrollbar-track { 
   background: var(--black); 
   border-radius: 4px; 
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color); 
    border-radius: 4px; 
    border: 1px solid var(--dark-bg);
}

.chat-messages::-webkit-scrollbar-thumb:hover { 
    background: var(--primary-color); 
}

.chat-messages::-webkit-scrollbar-corner { 
    background: var(--dark-surface) 
}
