/* css/styles.css */
:root {
    /* Color Palette - Modern Corporate & Tech Theme */
    --clr-bg-main: #ffffff;
    --clr-bg-alt: #f8fafc;
    --clr-bg-card: #ffffff;
    --clr-bg-card-hover: #f1f5f9;

    --clr-primary: #0a2540;
    /* Deep Blue (Trust, Professional) */
    --clr-primary-glow: rgba(10, 37, 64, 0.2);
    --clr-secondary: #00d2ff;
    /* Cyan (Future, Tech) */
    --clr-accent: #00b4d8;

    --clr-text-main: #0f172a;
    --clr-text-muted: #475569;
    --clr-text-dark: #1e293b;

    --clr-border: #e2e8f0;
    --clr-border-light: #f8fafc;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --nav-height-mobile: 60px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text-main);
    letter-spacing: -0.02em;
}

p {
    color: var(--clr-text-muted);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--clr-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.section {
    padding: 6rem 0;
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 0 15px var(--clr-primary-glow);
}

.btn-primary:hover {
    background-color: var(--clr-secondary);
    box-shadow: 0 0 25px var(--clr-primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-border-light);
    color: var(--clr-text-main);
}

.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

/* --- Layout Components --- */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text-main);
    letter-spacing: -0.03em;
}

.logo i {
    color: var(--clr-primary);
    font-size: 1.8rem;
}

.logo span span {
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-text-main);
}

.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-primary);
    transition: width var(--transition-normal);
}

.nav-link:not(.btn-primary):hover::after,
.nav-link.active:not(.btn-primary)::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    /* Fill navbar height for easier hovering */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    min-width: 800px;
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-category h4 {
    font-size: 1rem;
    color: var(--clr-primary);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--clr-border-light);
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.dropdown-category a {
    display: block;
    padding: 0.4rem 0;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.dropdown-category a:hover {
    color: var(--clr-accent);
    padding-left: 0.2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 0.25rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.footer-contact i {
    color: var(--clr-primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.support-badge {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid var(--clr-primary-glow);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    color: var(--clr-accent) !important;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
}

.social-links a:hover {
    color: var(--clr-primary);
}

/* Background Effects */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    opacity: 0.08;
    mix-blend-mode: luminosity;
    /* Blends well with the light theme while keeping texture */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--clr-primary);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--clr-secondary);
    bottom: -100px;
    left: -200px;
}

/* Card Style (reusable) */
.glass-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#app-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

/* Responsive Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    :root {
        --nav-height: var(--nav-height-mobile);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--clr-bg-card);
        padding: 1.5rem;
        border-bottom: 1px solid var(--clr-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 0.5rem;
        align-items: flex-start !important;
    }

    .nav-item-dropdown {
        width: 100% !important;
        display: block !important;
        text-align: left !important;
    }

    .nav-link {
        display: block !important;
        width: 100% !important;
        padding: 1rem !important;
        border-radius: 8px;
        text-align: left !important;
    }

    .nav-link:hover {
        background: var(--clr-bg-alt);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}