/* Modern Variables & Reset */
:root {
    --primary: #0056b3;     /* Trustworthy Blue */
    --secondary: #ff8c00;   /* Energetic Orange */
    --dark: #2c3e50;        /* Dark Text */
    --light: #f8f9fa;       /* Light Background */
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 { margin-bottom: 1rem; font-weight: 700; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn:hover { background: #004494; transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: #e07b00; }

/* Header & Navbar */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); flex: 1; text-align: left; }
.nav-links { display: flex; gap: 20px; flex: 2; justify-content: center; }
.nav-links a { font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--secondary); }
.nav-btn { flex: 1; display: flex; justify-content: flex-end; }

/* Slider / Hero Area */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden;
    background-color: #000;
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}
.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

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

/* Programs (Tables) */
.table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.data-table th, .data-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}
.data-table tr:hover { background: #f1f5f9; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: block; /* for lightbox links */
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.fab:hover {
    transform: scale(1.1);
}
.fab-whatsapp { background: #25D366; }
.fab-phone { background: var(--primary); }
.fab-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(118, 75, 162, 0); }
    100% { box-shadow: 0 0 0 0 rgba(118, 75, 162, 0); }
}

/* AI Chat Popup */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.close-chat { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg { padding: 10px 15px; border-radius: 15px; max-width: 80%; font-size: 0.95rem; }
.msg-ai { background: white; align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg-user { background: #667eea; color: white; align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: var(--shadow-sm); }
.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border);
    background: white;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
}
.chat-input button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .logo { flex: unset; }
    .nav-btn { display: none; }
    .nav-links { display: none; /* Add hamburger menu logic later */ }
    .hero-buttons { flex-direction: column; }
    .chat-popup { width: 90%; right: 5%; bottom: 100px; height: 450px; }
}
