:root {
    --primary-color: #003366;
    /* Navy Blue */
    --secondary-color: #00A8E8;
    /* Academic Blue */
    --accent-color: #00A8E8;
    --bg-light: #ffffff;
    --bg-soft: #f4f7f6;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.text-warning {
    color: var(--secondary-color) !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-main) !important;
    transition: 0.3s;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.3);
    border-color: var(--primary-color);
}

.btn-warning {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-family: var(--font-heading);
}

.btn-warning:hover {
    background: #0086b3;
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.3);
    color: white;
}

/* Cards */
.card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    color: var(--text-main);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.3);
}

.card-title {
    color: #1a1a2e;
    font-weight: 700;
}

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

/* Hero Carousel */
.carousel-item {
    height: 650px;
    background-color: var(--primary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Animations */
.slide-in-top {
    animation: slideInTop 1s ease-out forwards;
}

.slide-in-bottom {
    animation: slideInBottom 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes slideInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

@keyframes slideInBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

/* Hero Section (Deprecated/Legacy support) */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../images/hero-bg.jpg');
    background-position: center;
    padding: 150px 0;
    position: relative;
    border-bottom: 5px solid var(--primary-color);
    color: var(--text-main);
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: none;
    font-weight: 800;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
    color: white !important;
}

footer a {
    color: white;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Inputs */
.form-control {
    background: white;
    border: 1px solid #dee2e6;
    color: var(--text-main);
}

.form-control:focus {
    background: white;
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Badge/Tags */
.badge {
    font-weight: normal;
    font-family: var(--font-body);
}

/* Animated Background Circles */
.circles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.05;
    animation: float 20s infinite linear;
}

.circle:nth-child(1) {
    width: 200px;
    height: 200px;
    left: 10%;
    top: 20%;
    animation-duration: 25s;
    filter: blur(50px);
}

.circle:nth-child(2) {
    width: 300px;
    height: 300px;
    right: 15%;
    top: 10%;
    animation-duration: 30s;
    filter: blur(60px);
}

.circle:nth-child(3) {
    width: 150px;
    height: 150px;
    left: 30%;
    bottom: 20%;
    animation-duration: 20s;
    filter: blur(40px);
}

.circle:nth-child(4) {
    width: 400px;
    height: 400px;
    right: 10%;
    bottom: 10%;
    animation-duration: 35s;
    filter: blur(80px);
}

.circle:nth-child(5) {
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    animation-duration: 15s;
    filter: blur(30px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }

    50% {
        transform: translate(0, 100px) rotate(180deg);
    }

    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.3s;
}

.card:hover .card-img-top {
    opacity: 1;
}