/* --- 1. GOOGLE FONTS IMPORT (Professional Look) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- 2. ROOT VARIABLES (Easy Theme Management) --- */
:root {
    --primary-color: #4f46e5;      /* Modern Indigo */
    --secondary-color: #ec4899;    /* Viral Pink for accents */
    --bg-color: #f8fafc;           /* Light Grey (Eye friendly) */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- DARK MODE VARIABLES --- */
body.dark-mode {
    --bg-color: #0f172a;           /* Deep Blue/Black */
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- 3. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 4. NAVBAR (Glassmorphism) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img { height: 40px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 15px; }

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: transform 0.3s;
}
#theme-toggle:hover { transform: rotate(20deg); }

.btn-contact {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-contact:hover { transform: scale(1.05); }

/* --- 5. HERO SECTION (Viral Hook - UPDATED 🔥) --- */
.hero {
    text-align: center;
    padding: 8rem 1rem; /* Thoda bada banaya taaki image dikhe */
    position: relative;
    color: white; /* Text ab white rahega kyunki background dark hai */

    /* MAGIC BACKGROUND (Image + Dark Overlay) */
    /* Note: Jab tumhare paas apni image ho, toh URL replace kar dena: '../assets/images/hero-student.jpg' */
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.7)),
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?q=80&w=1920&auto=format&fit=crop');

    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax Effect (Viral Feel) */
    border-radius: 0 0 50px 50px; /* Bottom Curve for Modern Look */
    margin-bottom: 3rem;
}

.badge {
    background: rgba(255, 255, 255, 0.15); /* Glass effect badge */
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Text pop karega */
}

.highlight {
    color: transparent;
    background: linear-gradient(90deg, #6366f1, #ec4899); /* Bright Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
}

.hero p {
    color: #cbd5e1; /* Light grey for readability on dark bg */
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar (Updated for Hero) */
.search-box {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    backdrop-filter: blur(10px);
    border: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 8px 10px 8px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Strong shadow */
    transition: transform 0.3s;
}

.search-box:hover {
    transform: translateY(-2px);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1rem;
    background: transparent;
    color: #1e293b; /* Input text dark rahega */
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.quick-tags span { color: #cbd5e1; font-size: 0.9rem; margin-right: 10px; }
.quick-tags a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}
.quick-tags a:hover { background: var(--primary-color); border-color: var(--primary-color); }

/* --- 6. CARDS GRID (The Main Content) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.view-all { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Hover Effect - Makes users want to click */
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Color Coding for Categories */
.icon-box.ai { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.icon-box.study { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.icon-box.util { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-box.career { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-box.daily { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.tool-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.tool-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- 7. FOOTER --- */
footer {
    background: #0f172a; /* Always dark for professionalism */
    color: #cbd5e1;
    padding: 4rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 { color: white; margin-bottom: 1rem; }
.footer-section h4 { color: white; margin-bottom: 1rem; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a:hover { color: white; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid #334155;
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* --- 8. MOBILE RESPONSIVENESS (Very Important) --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    .hero { padding: 5rem 1rem; }
    .hero h1 { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}
/* --- SEARCH DROPDOWN STYLING --- */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

/* Dark Mode Support */
body.dark-mode .search-results-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}

body.dark-mode .search-item {
    border-bottom-color: #334155;
}

.search-item:hover {
    background: #f8fafc;
    padding-left: 25px; /* Slight movement effect */
}

body.dark-mode .search-item:hover {
    background: #0f172a;
}

.s-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

body.dark-mode .s-title {
    color: #f1f5f9;
}

.s-cat {
    font-size: 0.7rem;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

body.dark-mode .s-cat {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}
/* --- VIRAL SHARE BUTTONS CSS --- */
.share-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.share-title {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.share-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.s-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.s-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

/* BRAND COLORS */
.whatsapp { background: linear-gradient(45deg, #25D366, #128C7E); }
.linkedin { background: linear-gradient(45deg, #0077b5, #005582); }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } 
.twitter   { background: linear-gradient(45deg, #000000, #333333); }
.facebook  { background: linear-gradient(45deg, #1877F2, #165EAB); }
.copy      { background: linear-gradient(45deg, #636e72, #2d3436); }

/* TOAST MESSAGE (Hidden by default) */
#toast-msg {
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}