/* 
   EduSuite Redesign - Blue/Rose/Cyan Glassmorphism 
   Based on ArxCode Web New 
*/

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --secondary-gradient: linear-gradient(135deg, #e11d48 0%, #3b82f6 100%);
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-red: #e11d48;
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.1);
    --selection-bg: rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--selection-bg);
    color: white;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

/* Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
}

.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: none;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1.25rem 3rem; font-size: 1.125rem; }

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.navbar .btn-primary {
    box-shadow: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: white;
}

.btn-primary:not(.navbar .btn-primary) {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.6);
}

.navbar .btn-primary:hover {
    box-shadow: none;
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(2, 6, 23, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    font-size: 2.1rem;
    color: white;
}

.logo-text { font-family: 'Outfit', sans-serif; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover { color: white; }

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle {
    color: white;
}

.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 230px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-top: 0.5rem;
    border-radius: 1.25rem !important;
}

/* Hover bridge to prevent losing hover state */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.5rem;
    z-index: 5;
}

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

.nav-submenu a {
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.nav-submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.nav-submenu i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background Glows */
.main-glow {
    position: fixed;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.secondary-glow {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.08) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-buttons { display: flex; gap: 1.5rem; }

/* Code/Visual Window (EduSuite Mockup) */
.hero-visual {
    position: relative;
    width: 100%;
    perspective: 1200px;
}

.code-window {
    position: relative;
    padding: 0;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.window-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots { display: flex; gap: 0.5rem; margin-right: 1.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.window-body {
    padding: 2.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
}

.scroll-down {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.scroll-down a {
    color: inherit;
    text-decoration: none;
}

.scroll-down:hover {
    color: var(--accent-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Sections */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 3rem; font-weight: 800; font-family: 'Outfit', sans-serif; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card { padding: 3.5rem 2.5rem; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.35); }

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--accent-blue);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
}

.service-card h3 { font-size: 1.8rem; margin-bottom: 1.25rem; font-family: 'Outfit', sans-serif; font-weight: 700; }
.service-card p { color: var(--text-secondary); font-size: 1rem; }

/* Footer */
.footer { padding: 5rem 0 2rem; border-top: 1px solid var(--border-color); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer p { color: var(--text-secondary); font-size: 0.9rem; }

/* Responsive & Mobile Navigation */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { max-width: 650px; margin: 0 auto; transform: none; }
    .code-window { transform: none; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-description { margin: 0 auto 3rem; }
    .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-toggle { 
        display: block !important; 
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        padding: 2.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .logo a { font-size: 1.5rem; }
    .logo i { font-size: 1.8rem; }
    
    .hero-title { font-size: 2.75rem; }
    .section-title { font-size: 2.25rem; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
    
    /* Mobile Dropdown adjustment */
    .nav-dropdown .nav-submenu {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0;
        margin-top: 1rem;
        border: none;
        box-shadow: none;
    }
    
    .nav-dropdown-toggle i { display: none; }
    .nav-dropdown::after { display: none; }
}