:root {
    --primary-color: #00ADB5;
    /* Brighter Teal for Dark Mode */
    --secondary-color: #008080;
    /* Darker Teal */
    --accent-color: #9B59B6;
    /* Soft Purple */
    --accent-secondary: #FF6F61;
    /* Coral for extra pop */
    --text-color: #eeeeee;
    /* Light Grey Text */
    --bg-color: #0B242C;
    /* Medium dark teal background */
    --card-bg: rgba(18, 56, 68, 0.75);
    /* Transparent glass card with noticeable teal tint */
    --white: #ffffff;
    --dark-bg: #113642;
    /* Slightly lighter deep teal */
    --light-grey: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: var(--dark-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-center-title {
    display: none;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo a img,
.footer-section img[src="/images/logo.png"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo a img:hover,
.footer-section img[src="/images/logo.png"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 173, 181, 0.4);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    box-shadow: var(--shadow);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 5px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(155, 89, 182, 0.3);
}

/* Hero Section */
.hero {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 128, 128, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(155, 89, 182, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 80%, rgba(0, 173, 181, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(255, 111, 97, 0.12) 0%, transparent 40%),
        linear-gradient(160deg, #05161A 0%, #0B242C 35%, #113642 70%, #0B242C 100%);
    background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: heroGradientShift 20s ease-in-out infinite;
    color: var(--text-color);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

@keyframes heroGradientShift {
    0%   { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 100%, 0% 0%; }
    25%  { background-position: 50% 0%, 50% 50%, 100% 50%, 100% 50%, 0% 0%; }
    50%  { background-position: 100% 50%, 0% 100%, 50% 0%, 50% 0%, 0% 0%; }
    75%  { background-position: 50% 100%, 50% 50%, 0% 50%, 0% 50%, 0% 0%; }
    100% { background-position: 0% 50%, 100% 0%, 50% 100%, 0% 100%, 0% 0%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 173, 181, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(155, 89, 182, 0.06) 0%, transparent 50%);
    z-index: 0;
}

/* Full viewport vertical slide hero */
.hero-slide {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: heroSlideIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }
    60% {
        opacity: 1;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Brand name above tagline */
.hero-brand {
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: brandFadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes brandFadeIn {
    0% {
        opacity: 0;
        letter-spacing: 20px;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        letter-spacing: 6px;
        transform: translateY(0);
    }
}

/* ====================================
   Dynamic AI Decor Layer
   ==================================== */
.ai-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Sits below text, above gradient */
    pointer-events: none;
}

/* --- Shooting Stars --- */
.ai-shooting-star {
    position: absolute;
    height: 2px;
    width: 120px;
    background: linear-gradient(-45deg, rgba(255, 255, 255, 1), rgba(0, 173, 181, 0.8), transparent 80%);
    border-radius: 999px;
    filter: drop-shadow(0 0 8px rgba(0, 173, 181, 1));
    animation: shootingStar linear infinite;
    opacity: 0;
    transform: rotate(35deg);
}

.ai-shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
    box-shadow: 0 0 15px 3px rgba(0, 173, 181, 0.9);
    border-radius: 50%;
}

@keyframes shootingStar {
    0% {
        transform: translate(-100px, -100px) rotate(35deg) scaleX(0.5);
        opacity: 0;
    }
    10% { opacity: 1; }
    30% {
        transform: translate(1200px, 800px) rotate(35deg) scaleX(1);
        opacity: 0;
    }
    100% { opacity: 0; }
}

/* Stagger start times and positions */
.ai-shooting-star-1 { top: 10%; left: 0%; animation-duration: 6s; animation-delay: 1s; }
.ai-shooting-star-2 { top: -20%; left: 40%; animation-duration: 8s; animation-delay: 3s; width: 160px; }
.ai-shooting-star-3 { top: 40%; left: -10%; animation-duration: 7s; animation-delay: 0s; }
.ai-shooting-star-4 { top: 0%; left: 70%; animation-duration: 9s; animation-delay: 5s; width: 90px; }
.ai-shooting-star-5 { top: 60%; left: -20%; animation-duration: 5s; animation-delay: 2.5s; width: 140px; }

/* --- Flowing Waves --- */
.ai-wave {
    position: absolute;
    bottom: -5px; /* Sit right at bottom of hero */
    left: 0;
    width: 200%; /* Double width to allow endless scrolling */
    height: 130px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C300,120 900,-20 1200,60 L1200,120 L0,120 Z" fill="rgba(0,173,181,0.15)"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: waveDrift 15s linear infinite;
    transform-origin: bottom;
}

.ai-wave-2 {
    bottom: -15px;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C300,-20 900,120 1200,60 L1200,120 L0,120 Z" fill="rgba(155,89,182,0.12)"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: waveDrift 20s linear infinite reverse;
}

@keyframes waveDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Shift exactly 1 segment */
}

/* --- Breathing Energy Orbs --- */
.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    animation: pulseOrb 8s ease-in-out infinite alternate;
}

.ai-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 173, 181, 0.4);
    top: 15%;
    left: 10%;
}

.ai-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(155, 89, 182, 0.3);
    bottom: 20%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 11s;
}

@keyframes pulseOrb {
    0% { transform: scale(0.8) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.1) translate(40px, -40px); opacity: 0.5; }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 500;
}

/* Scroll down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
    100% { transform: translateY(0px); }
}

/* Scroll reveal animations */
@keyframes scrollRevealUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scrollRevealLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollRevealRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-hidden {
    opacity: 0;
}

.scroll-reveal {
    animation: scrollRevealUp 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal-left {
    animation: scrollRevealLeft 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal-right {
    animation: scrollRevealRight 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-delay-1 { animation-delay: 0.2s; }
.scroll-delay-2 { animation-delay: 0.5s; }
.scroll-delay-3 { animation-delay: 0.8s; }
.scroll-delay-4 { animation-delay: 1.1s; }
.scroll-delay-5 { animation-delay: 1.4s; }
.scroll-delay-6 { animation-delay: 1.7s; }

.section-title.scroll-hidden {
    opacity: 0;
}

.section-title.scroll-reveal {
    animation: scrollRevealUp 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(10, 38, 46, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 173, 181, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    background: -webkit-linear-gradient(135deg, var(--primary-color), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    color: var(--text-color);
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
}

.service-link:hover {
    text-decoration: underline;
}

/* Updates Section (News/Blogs) */
.updates-section {
    padding: 80px 0;
    background-color: transparent;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.update-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-grey);
}

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

.update-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
    background-size: cover;
    background-position: center;
}

.update-content {
    padding: 25px;
}

.update-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(0, 173, 181, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.update-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.update-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
}

/* Admin Styles */
.admin-body {
    background-color: #f0f2f5;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select,
.contact-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-family: inherit;
}
.contact-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-container {
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        position: relative;
        justify-content: center; /* Center the text */
        min-height: 50px; /* Give some breathing room */
        padding: 15px 20px;
    }

    .logo {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 45px; /* Only show the icon part of the logo */
        height: 45px;
        overflow: hidden;
        z-index: 10;
        display: flex;
        align-items: center;
    }

    .brand-logo {
        height: 45px !important;
        width: auto !important;
        max-width: none !important; /* Disable max-width to allow overflow */
        margin-top: 0 !important;
    }

    .mobile-center-title {
        display: block;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--white);
        line-height: 1.2;
        letter-spacing: 0.5px;
        z-index: 5;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--secondary-color);
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        gap: 15px;
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        color: var(--text-color);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        /* Hidden by default */
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 0;
        background-color: var(--bg-color);
        margin-top: 10px;
    }

    .dropdown-menu li a {
        color: var(--text-color) !important;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .cta-button {
        display: none;
        /* Hide CTA on mobile or move it into menu if preferred */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}