:root {
    --primary: #0A1628;
    --secondary: #1E3A5F;
    --accent: #00D9FF;
    --accent-alt: #7B2FF7;
    --text: #E8EDF2;
    --text-muted: #94A3B8;
    --bg-dark: #020817;
    --gradient: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
    --glow: rgba(0, 217, 255, 0.3);
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation with slide-in animation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    cursor: pointer;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(123, 47, 247, 0.5));
    }
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.ai-chat-toggle {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Hero Section with Video Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

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

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(30, 58, 95, 0.85) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Glitch effect for main heading */
.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
}

/* Typewriter effect */
.typewriter {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.4s both, blink 0.7s infinite;
    overflow: hidden;
    border-right: 0.15em solid var(--accent);
    white-space: nowrap;
    margin: 0 auto 2.5rem;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite, fadeInUp 1s ease 0.4s both;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent); }
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 10s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

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

/* Pulse animation for CTA */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 10px 50px rgba(0, 217, 255, 0.6);
    }
}

.cta-button-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Quick Overview */
.quick-overview {
    background: rgba(10, 22, 40, 0.5);
}

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

.overview-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.overview-card:hover::before {
    opacity: 1;
}

.overview-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

/* SVG Icon Styles */
.service-icon,
.service-icon-large,
.mv-icon-svg,
.feature-icon-svg,
.contact-icon-svg {
    display: block;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.overview-card:hover .service-icon,
.service-detail-card:hover .service-icon-large,
.mv-card:hover .mv-icon-svg,
.feature-box:hover .feature-icon-svg {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 80px;
    height: 80px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    margin-bottom: 2rem;
}

.mv-icon-svg {
    width: 70px;
    height: 70px;
}

.feature-icon-svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.contact-icon-svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.overview-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.overview-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.learn-more:hover {
    color: var(--accent-alt);
    transform: translateX(5px);
}

/* Services Detail Page */
.services-detail {
    background: rgba(10, 22, 40, 0.3);
}

.service-detail-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all 0.4s ease;
}

.service-detail-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.service-detail-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-detail-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 2rem 0 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-features li:hover {
    color: var(--text);
    transform: translateX(5px);
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.service-features strong {
    color: var(--text);
}

/* About Page */
.about-section {
    background: rgba(10, 22, 40, 0.3);
}

.about-content {
    margin-bottom: 4rem;
}

.about-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mv-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.mv-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.stats-section {
    text-align: center;
    margin-top: 4rem;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    animation: countUp 1s ease;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Why Us Page */
.why-us-section {
    background: rgba(10, 22, 40, 0.3);
}

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

.feature-box {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-box h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Contact Page */
.contact-section {
    background: rgba(10, 22, 40, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.contact-details h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent);
}

.contact-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.ai-quick-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ai-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

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

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.3) 0%, rgba(10, 22, 40, 0.3) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    margin-top: 3rem;
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-height: 600px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-chat-widget.active {
    display: flex;
}

.ai-chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(123, 47, 247, 0.1) 100%);
    border-radius: 20px 20px 0 0;
}

.ai-chat-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    font-size: 1.2rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-chat:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message,
.user-message {
    padding: 1rem;
    border-radius: 15px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

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

.ai-message {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    align-self: flex-start;
}

.user-message {
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid rgba(123, 47, 247, 0.2);
    align-self: flex-end;
}

.message-content {
    color: var(--text);
    line-height: 1.6;
}

.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 1rem;
}

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

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

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

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.ai-chat-input {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    gap: 1rem;
}

.ai-chat-input input {
    flex: 1;
    padding: 0.8rem;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 25px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

.ai-chat-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.ai-chat-input button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.ai-chat-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .glitch-text,
    .page-header h1 {
        font-size: 2.5rem;
    }

    .typewriter {
        font-size: 1.1rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease 0.4s both;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid,
    .overview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }

    .ai-chat-widget {
        width: 90%;
        right: 5%;
        bottom: 10px;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .glitch-text,
    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-button,
    .cta-button-outline {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-alt);
}

/* Featured Projects Section */
.featured-projects-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 50%, #0A1628 100%);
    position: relative;
    overflow: hidden;
}

.featured-projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(123, 47, 247, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    border-color: var(--accent);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.6);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translate(5px, -5px);
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Responsive Design for Featured Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image {
        height: 250px;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .featured-projects-section {
        padding: 4rem 0;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
}
