/* Core Variables */
:root {
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.7);
    --cyan-glow: #22d3ee;
    --blue-glow: #3b82f6;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #020617 100%);
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 8%;
    box-sizing: border-box;
    z-index: 1000;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover { color: var(--cyan-glow); }

/* The "Glow" Cards */
.container { 
    max-width: 1200px; 
    margin: 100px auto; 
    padding: 2rem; 
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* HOVER EFFECT */
.card:hover {
    transform: translateY(-12px);
    border-color: var(--cyan-glow);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.15);
}

.card h2 {
    color: var(--cyan-glow);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.course-tag {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--cyan-glow);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 10px;
    margin-right: 5px;
}

/* Button */
.btn {
    background: linear-gradient(90deg, var(--cyan-glow), var(--blue-glow));
    color: #000;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: scale(1.05);
}

/* Hero Layout - Full Screen */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--cyan-glow);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive huge text */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Button Variations */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
}

/* Background Visual Effects */
.glow-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(80px);
}

.contact-nav {
    background: var(--cyan-glow);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 5px;
}

/* About Page Specific Styles */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-main {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-main h2 {
    color: var(--cyan-glow);
    margin-bottom: 20px;
    font-size: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 4rem;
}

/* Quick Links Styling */
.footer-simple {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.quick-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0;
}

.quick-links li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-links li a:hover {
    color: var(--cyan-glow);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .quick-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsive Navigation Fix */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack Logo and Links vertically */
        padding: 1rem;
        height: auto;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px; /* Space between logo and links */
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap; /* Allow links to move to a second line if needed */
        justify-content: center;
        gap: 10px;
        margin: 0;
    }

    nav a {
        margin: 5px; /* Smaller margins for phone screens */
        font-size: 0.75rem; /* Slightly smaller text for fit */
    }

    .contact-nav {
        display: inline-block;
        margin-top: 10px !important;
    }

    /* Adjust Hero section for mobile */
    .hero h1 {
        font-size: 2.5rem; /* Smaller heading so it doesn't wrap weirdly */
        margin-top: 40px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column; /* Stack buttons on top of each other */
        width: 100%;
        padding: 0 20px;
    }
}