/* Modern Theme - Design System
   Academic Future UI
*/

:root {
    /* Color Palette - Premium & Deep */
    --color-primary: #4f46e5;
    /* Indigo 600 */
    --color-primary-dark: #3730a3;
    /* Indigo 800 */
    --color-primary-light: #818cf8;
    /* Indigo 400 */

    --color-secondary: #0ea5e9;
    /* Sky 500 */
    --color-accent: #f43f5e;
    /* Rose 500 */

    --color-dark: #0f172a;
    /* Slate 900 */
    --color-text-main: #1e293b;
    /* Slate 800 */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-text-light: #94a3b8;
    /* Slate 400 */

    --color-bg-body: #f8fafc;
    /* Slate 50 */
    --color-bg-card: #ffffff;
    --color-bg-dark: #111827;
    /* Gray 900 */

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);

    /* Spacing & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* Base Reset & Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.shadow-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Button Overrides */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.875rem 2rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* HEADER & NAVIGATION REDESIGN */
.main-header {
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    padding: 1rem 2rem;
    justify-content: space-between;
    /* Space out items better */
}

.nav-logo a {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.05);
    /* Subtle hover bg */
}

/* Dropdowns */
.dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-top: 1rem;
    animation: slideUp 0.2s ease-out;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Action Buttons in Header */
.enquiry-btn {
    background: var(--color-accent) !important;
    /* Rose color for urgency */
    box-shadow: 0 4px 14px 0 rgba(244, 63, 94, 0.39) !important;
}

.enquiry-btn:hover {
    background: #e11d48 !important;
    transform: translateY(-2px);
}

.login-btn {
    background: var(--color-dark) !important;
    border: 1px solid transparent;
}

/* FOOTER REDESIGN */
.main-footer {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    border-top: none;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.footer-section ul li a {
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
    /* Slide effect */
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Section Styles */
.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

/* HOMEPAGE REDESIGN */

/* Hero Section */
.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Floating Stats in Hero */
.hero-stat-card {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: float 6s ease-in-out infinite;
}

.hero-stat-card i {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.hero-stat-card.stat-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-stat-card.stat-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Course Cards Modern */
.course-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-thumb-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card-modern:hover .course-thumb-wrapper img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Features/Stats Section */
.features-premium {
    padding: 6rem 0;
    background: white;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: var(--color-bg-body);
}

.feature-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    transition: transform 0.5s ease;
}

.feature-box:hover .feature-icon-circle {
    transform: rotateY(180deg);
}

/* CAROUSEL STYLES (Added for Campus Life Section) */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
}

.carousel-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}