/* 1. Variables & Reset (Upgraded) */
:root {
    --bg-color: #F8FAFC;       /* Slate 50 */
    --text-dark: #0f172a;      /* Darker, sharper text */
    --text-light: #64748B;     /* Slate 500 */
    --primary: #2563EB;        /* Fallback */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%); /* The Royal Gradient */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85); /* See-through white */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
    --radius: 16px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased; /* Sharper text */
}

body {
    background-color: var(--bg-color);
    /* Subtle Dot Pattern Background */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-dark);
    min-height: 100vh;       /* Forces page to fill screen */
    display: flex;           /* Helps footer positioning */
    flex-direction: column;  /* Stacks content vertically */
}

a { text-decoration: none; color: inherit; }

/* 2. Navbar (Glassmorphism) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--glass);
    backdrop-filter: blur(12px); /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky; /* Sticks to top */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;        /* Chrome/Safari */
    background-clip: text;                /* Standard */
    -webkit-text-fill-color: transparent;
}

.dot { color: var(--primary); }

.nav-links {
    display: flex; /* Default for Desktop */
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-light);
    transition: 0.2s;
}

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

/* Hamburger (Hidden by default on Desktop) */
.hamburger {
    display: none; 
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* 3. Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.highlight { 
    background: var(--primary-gradient);
    -webkit-background-clip: text;          /* Chrome/Safari */
    background-clip: text;                  /* Standard */
    -webkit-text-fill-color: transparent;   
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
}

/* 4. Search Bar UI */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-ui {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    z-index: 20;
    position: relative;
}

.search-icon { color: var(--text-light); margin-right: 10px; }

#searchBar {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    padding: 5px;
}

.search-btn {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.search-btn:hover { transform: translateY(-1px); opacity: 0.9; }

/* Dropdown Results */
.search-results {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    padding-top: 30px;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: none;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-top: none;
}

.result-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-top: 1px solid #f1f5f9;
}

.result-item:hover { background: #eff6ff; }

.result-icon {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1rem;
    background: #dbeafe;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.result-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* 5. The Grid & Cards (Levitating) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(37, 99, 235, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
}

/* Icon Colors */
.color-blue { color: #2563EB; background: #eff6ff; }
.color-green { color: #16a34a; background: #f0fdf4; }
.color-purple { color: #9333ea; background: #faf5ff; }
.color-orange { color: #ea580c; background: #fff7ed; }
.color-red { color: #dc2626; background: #fef2f2; }
.color-cyan { color: #0891b2; background: #ecfeff; }

.card h3 { margin-bottom: 5px; font-size: 1.1rem; }
.card p { color: var(--text-light); font-size: 0.9rem; }

/* Page Headers & Content */
.page-header {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 40px;
}
.page-header h1 { color: var(--text-dark); font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
    color: var(--text-dark);
}
.content-container h2 { margin-top: 30px; margin-bottom: 15px; color: var(--primary); }
.content-container p { margin-bottom: 20px; color: var(--text-light); }

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* --- RESPONSIVE LOGIC --- */

/* 1. Standard Mobile (Tablets/Phones) */
@media (max-width: 768px) {
    .search-wrapper { width: 95%; }
    .hero h1 { font-size: 2rem; }
    .grid-container { grid-template-columns: 1fr; } 
    
    /* Show Hamburger on Mobile */
    .hamburger { display: block; }
    
    /* Hide Links by default */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 1000;
        border-top: 1px solid #f1f5f9;
    }
    .nav-links.active { display: flex !important; }
    .nav-links a { margin: 15px 0; display: block; width: 100%; margin-left: 0; }
    
    /* Footer Logic */
    .footer-content, .footer-links { flex-direction: column; gap: 30px; }
}

/* 2. Extra Small Screens (Fixes "Go" button) */
@media (max-width: 380px) {
    .search-ui { padding: 3px 5px; height: 42px; }
    .search-btn { padding: 6px 12px; font-size: 0.8rem; }
    #searchBar { min-width: 0; font-size: 0.85rem; }
}

/* --- PRO DARK FOOTER --- */
footer {
    background-color: #0f172a; 
    color: #cbd5e1;
    padding: 60px 20px 20px;
    margin-top: 80px; 
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand { max-width: 350px; }
.footer-brand h2 { color: #ffffff; font-size: 1.5rem; margin-bottom: 15px; font-weight: 800; }
.footer-brand p { line-height: 1.6; color: #94a3b8; }

.footer-links { display: flex; gap: 40px; }
.link-group h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.link-group a {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: transform 0.2s ease, color 0.2s ease; /* Fixed transition */
}

/* FIX: Moves text without shifting layout */
.link-group a:hover { 
    color: #38bdf8; 
    transform: translateX(5px); 
}

.copyright {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}