:root {
    --primary-color: #0a2540;
    --secondary-color: #00d4ff;
    --accent-color: #00c9a7;
    --text-color: #adbdcc;
    --text-dark: #0a2540;
    --text-light: #ffffff;
    --bg-light: #f6f9fc;
    --bg-dark: #0a2540;
    --footer-bg: #0a2540;
    --navbar-height: 80px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0a2540 0%, #00d4ff 100%);
    --gradient-accent: linear-gradient(135deg, #00c9a7 0%, #00d4ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Ensure smooth scrolling for in-page links and reserve space for sticky header */
html {
    scroll-behavior: smooth;
}

/* Reserve top padding so content doesn't hide under the sticky header */
main {
    padding-top: var(--navbar-height);
}

/* When navigating to anchors, offset by the header height */
section {
    scroll-margin-top: calc(var(--navbar-height) + 12px);
}

a {
    text-decoration: none;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: block;
}

/* --- Navbar --- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background: #ffffff;
    /* Fully opaque background */
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 2000;
    /* Increased z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background var(--transition-speed), height var(--transition-speed);
}

.header.scrolled {
    height: 70px;
    background: #ffffff;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-logo img {
    height: 50px;
    transition: var(--transition-speed);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ffffff;
    min-width: 220px;
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 15px;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 30px;
}

/* Play Store Icon */
.play-store-btn {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    gap: 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-store-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

.play-store-btn i {
    font-size: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-speed);
}

/* --- Footer --- */
.footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1000;
    /* Added z-index to stay on top of body content */
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-info-logo {
    height: 60px;
    margin-bottom: 25px;
}

.footer-desc {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition-speed);
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-link {
    color: var(--text-color);
    font-size: 15px;
}

.footer-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 15px;
}

.footer-contact-item i {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.newsletter-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-speed);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
}

/* --- Smooth Hover Animations --- */
.nav-link,
.social-icon,
.footer-link,
.newsletter-btn,
.dropdown-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}