/* ============================================================
   VICTORIA EDUCATIONAL TRUST - MODERN DESIGN SYSTEM
   =========================================================== */

/* Import Modern Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700;800;900&display=swap');

/* ============================================================
   CSS Variables - Color System
   =========================================================== */
:root {
    /* Primary Color System */
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    
    /* Blue Brand Colors */
    --blue-900: #0c2340;
    --blue-800: #1a4f7a;
    --blue-700: #2869af;
    --blue-600: #3b82f6;
    --blue-500: #60a5fa;
    --blue-400: #93c5fd;
    --blue-300: #bfdbfe;
    
    /* Accent Colors */
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    
    /* Neutral Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0c2340 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-warm: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    --gradient-subtle: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);
    --shadow-glow-teal: 0 0 30px rgba(13, 148, 136, 0.2);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slowest: 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ============================================================
   Base Styles
   =========================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--gray-50);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Plus Jakarta Sans', serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem;
    }
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--blue-600);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

/* ============================================================
   Modern Buttons
   =========================================================== */
.btn, button, [role="button"],
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: white;
    color: var(--blue-600);
    border: 2px solid var(--blue-600);
}

.btn-secondary:hover {
    background: var(--blue-50);
    border-color: var(--blue-700);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Large Button */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-xl);
}

/* Small Button */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--blue-600);
    border: 1px solid var(--blue-300);
}

.btn-ghost:hover {
    background: var(--blue-50);
    border-color: var(--blue-500);
}

/* ============================================================
   Modern Cards
   =========================================================== */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-300);
}

.card-elevated {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: none;
    transition: all var(--transition-slow);
}

.card-elevated:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.card-gradient {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: none;
}

.card-accent {
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: none;
}

/* ============================================================
   Modern Forms
   =========================================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    color: var(--text-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

/* ============================================================
   Navigation Styles
   =========================================================== */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(12, 35, 64, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    color: var(--blue-400);
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blue-400);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--blue-300) !important;
}

.nav-link:hover::after {
    width: 60%;
}

/* ============================================================
   Section Backgrounds
   =========================================================== */
.section {
    padding: 4rem 1rem;
}

@media (max-width: 768px) {
    .section {
        padding: 2.5rem 1rem;
    }
}

.section-light {
    background: var(--gray-50);
}

.section-white {
    background: white;
}

.section-primary {
    background: var(--gradient-primary);
    color: white;
}

.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5,
.section-primary h6 {
    color: white;
}

.section-accent {
    background: var(--gradient-accent);
    color: white;
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4,
.section-accent h5,
.section-accent h6 {
    color: white;
}

/* ============================================================
   Modern Hover Card Effect
   =========================================================== */
.hover-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.hover-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--blue-400), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-300);
}

.hover-card:hover::before {
    opacity: 1;
}

/* ============================================================
   Badge Styles
   =========================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-700);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ============================================================
   Text Utilities
   =========================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-accent {
    color: var(--teal-600);
}

.text-muted {
    color: var(--text-tertiary);
}

/* ============================================================
   Modern List Styles
   =========================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 0.875rem;
}

/* ============================================================
   Modern Animations
   =========================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out both;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out both;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Delay classes for staggered animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================================
   Modern Image Styles
   =========================================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.img-rounded {
    border-radius: var(--radius-2xl);
}

.img-cover {
    object-fit: cover;
}

.img-contain {
    object-fit: contain;
}

/* Image with border */
.img-bordered {
    border: 2px solid var(--blue-300);
}

/* ============================================================
   Modern Grid & Spacing
   =========================================================== */
.gap-responsive {
    display: grid;
    gap: 2rem;
}

@media (max-width: 768px) {
    .gap-responsive {
        gap: 1.5rem;
    }
}

.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-max {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Utility Classes
   =========================================================== */
.transition-smooth {
    transition: all var(--transition-slow);
}

.transition-fast {
    transition: all var(--transition-fast);
}

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

.opacity-hover {
    opacity: 1;
    transition: opacity var(--transition-base);
}

.opacity-hover:hover {
    opacity: 0.8;
}

.scale-hover {
    transform: scale(1);
    transition: transform var(--transition-base);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ============================================================
   Responsive Typography
   =========================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 1.75rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    h4, h5, h6 {
        font-size: 1rem;
    }
}

/* ============================================================
   Scrollbar Styling
   =========================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-500);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-600);
}

/* ============================================================
   Print Styles
   =========================================================== */
@media print {
    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
