/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #1a365d;
    --secondary-color: #2d4a63;
    --accent-color: #d4af37;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-dark: #2d3748;
    --background-dark: #0f1419;
    --background-overlay: rgba(15, 20, 25, 0.9);
    --holographic-primary: #00d4ff;
    --holographic-secondary: #ff6b35;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-arabic: 'Amiri', serif;
    
    /* Breakpoints */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* RTL Support */
[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .stats-grid {
    direction: rtl;
}

[dir="rtl"] .timeline::before {
    right: 20px;
    left: auto;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 50px;
}

[dir="rtl"] .timeline-year {
    right: -35px;
    left: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.navbar.scrolled {
    background: rgba(15, 20, 25, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: var(--space-sm) 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.lang-toggle {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-slow);
}

.lang-toggle:hover::before {
    left: 100%;
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.lang-ar {
    display: none;
}

[dir="rtl"] .lang-en {
    display: none;
}

[dir="rtl"] .lang-ar {
    display: inline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(15, 20, 25, 0.85) 0%, rgba(26, 54, 93, 0.75) 50%, rgba(15, 20, 25, 0.85) 100%),
        linear-gradient(45deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%, rgba(0, 212, 255, 0.1) 100%),
        url('https://sheikhsaoud.com/wp-content/uploads/2023/05/WhatsApp-Image-2023-05-26-at-12.10.53.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 1100px;
}

/* Enhanced overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 20%, rgba(15, 20, 25, 0.4) 70%),
        linear-gradient(to bottom, rgba(15, 20, 25, 0.3) 0%, transparent 30%, transparent 70%, rgba(15, 20, 25, 0.5) 100%);
    z-index: 1;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(15, 20, 25, 0.2) 0%, transparent 50%, rgba(26, 54, 93, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    /* max-width: 800px; */
    padding: 270px 20px 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.holographic-text {
    background: linear-gradient(45deg, #ffffff, var(--accent-color), var(--holographic-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic-glow 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes holographic-glow {
    0% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
        filter: hue-rotate(0deg);
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
        filter: hue-rotate(90deg);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: var(--transition-normal);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary), #ffffff);
    border: none;
    padding: var(--space-md) var(--space-2xl);
    border-radius: 50px;
    color: var(--background-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(212, 175, 55, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(212, 175, 55, 0.6);
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.portrait {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    filter: grayscale(20%);
    transition: var(--transition-slow);
}

.portrait:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.holographic-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(45deg, var(--holographic-primary), var(--holographic-secondary), var(--accent-color));
    z-index: -1;
    animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.biography p {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    line-height: 1.7;
}

.timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--holographic-primary));
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: var(--space-xl);
}

.timeline-year {
    position: absolute;
    left: -35px;
    top: 0;
    background: var(--accent-color);
    color: var(--background-dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-content h4 {
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

/* Roles Section */
.roles {
    background: var(--background-dark);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: var(--space-xl);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

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

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

.role-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.role-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    font-size: 1.3rem;
}

.role-card p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform var(--transition-slow);
}

.gallery-item {
    flex: 0 0 400px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--background-overlay));
    padding: var(--space-xl);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h4 {
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: var(--background-dark);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.carousel-prev {
    left: var(--space-lg);
}

.carousel-next {
    right: var(--space-lg);
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

/* News Section */
.news {
    background: var(--background-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.1);
}

.news-content {
    padding: var(--space-xl);
}

.news-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--holographic-primary);
}

.newsletter-signup {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-3xl);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.newsletter-signup h3 {
    margin-bottom: var(--space-xl);
    font-size: 1.5rem;
    color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

.newsletter-form button {
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    border: none;
    color: var(--background-dark);
    padding: var(--space-md) var(--space-xl);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group label {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-md);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    pointer-events: none;
    background: var(--background-dark);
    padding: 0 var(--space-sm);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.submit-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    border: none;
    color: var(--background-dark);
    padding: var(--space-lg) var(--space-xl);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-normal);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    border-radius: 50%;
    color: var(--background-dark);
}

.contact-item h4 {
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}

/* Chatbot */
.chat-fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    transition: var(--transition-normal);
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.chat-fab span {
    font-size: 1.5rem;
}

.chatbot-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 400px;
    height: 600px;
    background: var(--background-dark);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chatbot-header {
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    color: var(--background-dark);
    padding: var(--space-lg);
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--background-dark);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chatbot-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message {
    max-width: 80%;
    padding: var(--space-md) var(--space-lg);
    border-radius: 20px;
    word-wrap: break-word;
    animation: messageSlide 0.3s ease;
}

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

.bot-message {
    background: rgba(212, 175, 55, 0.2);
    align-self: flex-start;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.user-message {
    background: linear-gradient(45deg, var(--holographic-primary), var(--accent-color));
    color: var(--background-dark);
    align-self: flex-end;
    font-weight: 500;
}

.chatbot-input-container {
    display: flex;
    padding: var(--space-lg);
    gap: var(--space-sm);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.chatbot-input-container input {
    flex: 1;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.voice-btn,
.send-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--holographic-primary));
    border: none;
    color: var(--background-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.voice-btn:hover,
.send-btn:hover {
    transform: scale(1.1);
}

.voice-btn.recording {
    background: var(--error-color);
    animation: pulse 1s infinite;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0 var(--space-lg) var(--space-lg);
}

.suggestion-btn {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.suggestion-btn:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: var(--background-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: -25px;
    right: -25px;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}
.dot-typing {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
}

.dot-typing span {
    animation: blink 1.4s infinite both;
    display: inline-block;
    margin-right: 2px;
    color: var(--accent-color, #4CAF50); /* or whatever theme color */
}

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

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

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo-image {
        height: 40px;
        max-width: 150px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: var(--space-3xl);
        transition: var(--transition-normal);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 0 var(--space-md);
        background-attachment: scroll;
        background-position: center 20%;
        min-height: unset;
    }
    
    .hero::before {
        background: var(--background-overlay);
    }
    
    .hero-content {
        padding-top: 140px;
        text-align: center;

    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
        padding: 0 var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }
    
    .stat-card {
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: var(--space-xl);
    }
    
    .portrait {
        max-width: 300px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-year {
        left: -25px;
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .role-card {
        padding: var(--space-lg);
    }
    
    .role-icon {
        font-size: 2.5rem;
        margin-bottom: var(--space-md);
    }
    
    .gallery-item {
        flex: 0 0 280px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .news-card {
        margin-bottom: var(--space-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .newsletter-form input {
        margin-bottom: var(--space-sm);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-form {
        margin-bottom: var(--space-xl);
    }
    
    .contact-item {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .contact-icon {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .chatbot-container {
        width: 90vw;
        height: 70vh;
        bottom: var(--space-md);
        right: 5vw;
        left: 5vw;
    }
    
    .chat-fab {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 50px;
        height: 50px;
    }
    
    .chat-fab span {
        font-size: 1.2rem;
    }
    
    .chatbot-container {
        width: 90%;
        height: 70vh;
        bottom: var(--space-md);
        right: 5%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-xs);
    }
    
    .nav-container {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .hero-content {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stat-card {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .cta-button {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    .role-card {
        padding: var(--space-md);
    }
    
    .role-icon {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }
    
    .gallery-item {
        flex: 0 0 250px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .news-card {
        padding: var(--space-md);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .contact-icon {
        margin-bottom: var(--space-sm);
    }
    
    .chatbot-container {
        width: 95vw;
        height: 80vh;
        bottom: var(--space-sm);
        right: 2.5vw;
        left: 2.5vw;
    }
    
    .chat-fab {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 45px;
        height: 45px;
    }
    
    .chat-fab span {
        font-size: 1.1rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding-top: 140px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item {
        flex: 0 0 350px;
    }
}

/* Large mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    .stat-card {
        padding: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link.active::after {
        width: 100%;
    }
    
    .role-card:hover {
        transform: none;
    }
    
    .news-card:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-canvas {
        display: none;
    }
    
    .holographic-text {
        animation: none;
    }
    
    .holographic-border {
        animation: none;
    }
    
    .chat-fab {
        animation: none;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e2e8f0;
        --background-dark: #0a0f14;
    }
}

/* Print styles */
@media print {
    .navbar,
    .chat-fab,
    .chatbot-container,
    .lightbox,
    .hero-canvas,
    .hero-overlay {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        color: black !important;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .role-card,
    .news-card {
        padding: var(--space-lg);
    }
    
    .gallery-item {
        flex: 0 0 250px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}