/*
   UK ENROLL - Premium Custom Styles
   Colors based on Modern UK Education Theme (Deep Blue, Red, Gold)
*/

:root {
    /* Brand Colors */
    --primary-color: #0f2b5c;
    /* Deep Royal Blue */
    --primary-dark: #071633;
    --primary-light: #2c4f8f;
    --secondary-color: #c8102e;
    /* UK Red */
    --accent-color: #d4af37;
    /* Premium Gold */

    /* System Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--accent-color) !important;
}

/* Navbar Customization */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    position: relative;
    padding: 8px 18px !important;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 20px;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(15, 43, 92, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 43, 92, 0.4);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Full viewport height or close to it */
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 43, 92, 0.85) 0%, rgba(15, 43, 92, 0.7) 100%),
        url('https://images.unsplash.com/photo-1592280771190-3e2e4d571952?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 1;
}

/* Glass Cards (Stats) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 2px;
    /* Inner border feeling */
}

.glass-card-inner {
    border-radius: calc(var(--radius-md) - 2px);
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.glass-card:hover .glass-card-inner {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(15, 43, 92, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

/* Footer Premium */
.footer-premium {
    background-color: #0b1120;
    color: #e2e8f0;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-premium .text-muted {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}

.footer-logo {
    filter: brightness(0) invert(1);
    width: 140px;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    margin-right: 10px;
    text-decoration: none;
}


.social-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

.footer-newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-icon {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.btn-subscribe {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    width: 100%;
}

.btn-subscribe:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 60px;
    font-size: 0.9rem;
}


/* Utility / Misc */
.section-padding {
    padding: 100px 0;
}

.bg-pattern {
    background-color: var(--bg-light);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Animation Classes */
.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
