@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Core Variables */
:root {
    /* Light Theme */
    --bg-base: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.6);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --primary-color: #2563eb;
    --accent-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    
    --border-light: rgba(0, 0, 0, 0.05);
    --border-hover: rgba(37, 99, 235, 0.2);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(37, 99, 235, 0.1);
    
    --shape-1: rgba(59, 130, 246, 0.15);
    --shape-2: rgba(147, 51, 234, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-base: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.6);
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --primary-color: #3b82f6;
    --accent-color: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(96, 165, 250, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
    
    --shape-1: rgba(59, 130, 246, 0.08);
    --shape-2: rgba(147, 51, 234, 0.08);
}

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

body.landing-body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: drift 20s infinite alternate ease-in-out;
}

.shape-1 { width: 50vw; height: 50vw; background: var(--shape-1); top: -20%; left: -10%; }
.shape-2 { width: 40vw; height: 40vw; background: var(--shape-2); bottom: -10%; right: -10%; animation-delay: -5s; }

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* Navbar */
.navbar-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar-landing.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    height: 75px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.nav-brand img {
    height: 45px;
    border-radius: 12px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 25px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 10px;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--border-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Submenu styles */
.submenu {
    position: absolute;
    top: -5px;
    left: 100%;
    min-width: 250px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}

.submenu-title {
    padding: 5px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-light);
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.theme-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.btn-login {
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 6%;
}

.hero-text h1 {
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
    border-radius: 30px;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s;
}

.hero-image:hover .image-wrapper img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
}

.fc-1 { top: -20px; right: -30px; }
.fc-2 { bottom: -30px; left: -30px; animation-delay: -3s; }

.floating-card .icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
}

.floating-card .info h4 { margin: 0; font-size: 18px; color: var(--text-primary); font-weight: 700; }
.floating-card .info p { margin: 0; font-size: 13px; color: var(--text-secondary); }

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

/* Sections */
.section {
    padding: 120px 6%;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto 70px auto;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.resource-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 35px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.resource-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 30px auto;
    font-size: 36px;
    transition: all 0.4s;
}

.resource-card:hover .card-icon {
    background: var(--primary-gradient);
    color: #fff;
    transform: rotateY(180deg);
}

.resource-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* About Section */
.about-section {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.logo-glow {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.logo-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    filter: blur(20px);
}

.logo-glow img {
    width: 100%;
    border-radius: 50%;
    display: block;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.8;
}

/* Footer */
.landing-footer {
    padding: 80px 6% 30px;
    background: var(--bg-base);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Reveal Animations */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu { display: none; } /* Better to implement a hamburger menu later if needed */
    .hero-content, .about-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 40px; }
    .hero-buttons { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .section-title[style] { text-align: center !important; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-col ul li { justify-content: center; }
}

/* Navbar Search Form */
.nav-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 6px 15px;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.nav-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 140px;
    font-size: 14px;
    transition: width 0.3s ease;
    padding-left: 8px;
    font-family: 'Outfit', sans-serif;
}

.nav-search-form:focus-within .nav-search-input {
    width: 220px;
}

.search-icon {
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}
