/* Global Styles & Variables */
:root {
    --primary-color: #1a237e;
    /* Deep Royal Blue */
    --accent-color: #ffd700;
    /* Gold */
    --secondary-color: #311b92;
    /* Deep Indigo */
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f4f7fa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.cta-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(49, 27, 146, 0.75)), url('assets/college_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

/* Abstract Bubbles for visual flair */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0.1;
    z-index: 0;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    z-index: 1;
    color: var(--text-light);
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.course-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: background var(--transition-speed);
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

/* Info Section (Cards) */
.info-section {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    top: -50px;
    /* Overlap hero */
    z-index: 10;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed);
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #e8eaf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.info-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Contact Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-address {
    margin-bottom: 2.5rem;
}

.footer-address p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-highlight {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {

    /* Navbar improvements */
    .navbar {
        padding: 1rem 5%;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Keep hidden for simplicity as per current design, or could be a bottom bar */
    }

    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 6rem 5% 2rem;
        /* Add top padding to account for navbar */
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
        /* Fixed bg can be jittery on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-tag {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .course-badges {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Info Section adjustments */
    .info-section {
        top: 0;
        padding: 3rem 5%;
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 2rem;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    /* Footer adjustments */
    .footer {
        padding: 3rem 5% 2rem;
    }

    .footer-content h2 {
        font-size: 1.8rem;
    }

    .contact-highlight {
        font-size: 1.3rem;
        word-break: break-all;
        /* Ensure long numbers don't break layout */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .primary-btn {
        width: 100%;
        /* Full width button on small screens */
        padding: 1rem;
    }
}

/* Ripple Effect */
.primary-btn {
    position: relative;
    overflow: hidden;
}

span.ripple {
    position: absolute;
    background: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: animateRipple 1s linear infinite;
}

@keyframes animateRipple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }

    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.dev-credit {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.dev-credit a {
    color: var(--accent-color);
    font-weight: 600;
    transition: color var(--transition-speed);
}

.dev-credit a:hover {
    color: white;
    text-decoration: underline;
}