/* ========================================
   AIIMS DAA 2026 - Custom CSS
   Theme Colors: Purple, Magenta, Blue, Orange, Yellow
   ======================================== */

:root {
    --primary-purple: #8B3A8B;
    --primary-magenta: #E91E63;
    --primary-blue: #0066CC;
    --primary-orange: #FF9800;
    --primary-yellow: #FFD700;
    --light-bg: #F8F9FA;
    --dark-bg: #1a1a1a;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border-color: #E0E0E0;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 50%, var(--primary-blue) 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-yellow) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    background: linear-gradient(135deg, rgba(139, 58, 139, 0.95), rgba(0, 102, 204, 0.95)) !important;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 152, 0, 0.3) !important;
    padding-left: 2rem;
    color: var(--primary-yellow) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    height: 710px;
    background-image: url('../images/delhi_img.jpeg') !important;
    /*background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 25%, var(--primary-blue) 50%, var(--primary-orange) 75%, var(--primary-yellow) 100%);*/
    background-size: 100%;
    /*animation: gradientShift 15s ease infinite;*/
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background-repeat: no-repeat;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 58%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-content p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

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

/* ========================================
   ANIMATION CLASSES
   ======================================== */

.animate-fade-in {
    animation: fadeIn 0.8s ease;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 58, 139, 0.4);
    background: linear-gradient(135deg, var(--primary-magenta), var(--primary-blue));
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid #fff;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 58, 139, 0.3);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* ========================================
   COUNTDOWN SECTION
   ======================================== */

.countdown-section {
    background: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
    border-top: 4px solid var(--primary-purple);
    border-bottom: 4px solid var(--primary-blue);
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, auto));
    gap: 1rem;
    padding: 2rem;
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.countdown-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 58, 139, 0.1), rgba(0, 102, 204, 0.1));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.countdown-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(139, 58, 139, 0.2);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: var(--light-bg);
    padding: 5rem 0;
}

.features-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-purple);
}

.feature-card:nth-child(2) {
    border-top-color: var(--primary-magenta);
}

.feature-card:nth-child(3) {
    border-top-color: var(--primary-blue);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: 0 10px 25px rgba(139, 58, 139, 0.3);
}

.feature-card h5 {
    color: var(--primary-purple);
    margin-top: 1.5rem;
}

.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    border-radius: 0;
}

.cta-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    border-top: 4px solid var(--primary-purple);
}

.footer h6 {
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.footer p {
    opacity: 0.8;
}

/* ========================================
   CONTENT PAGES STYLES
   ======================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 50%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-purple);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.content-section h3 {
    color: var(--primary-magenta);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(5px);
}

.faculty-card {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-purple);
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.faculty-card h5 {
    color: var(--primary-purple);
    margin-top: 1rem;
    font-weight: 700;
}

.faculty-card p {
    color: var(--primary-magenta);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(139, 58, 139, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ========================================
   TABLE STYLES
   ======================================== */

.table {
    border-collapse: collapse;
    margin-top: 2rem;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-magenta));
    color: var(--text-light);
}

.table th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem;
    border-color: var(--border-color);
}

.table tbody tr:hover {
    background: rgba(139, 58, 139, 0.05);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 1.5rem;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .col-md-6:last-child {
        margin-top: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .countdown-container {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-outline-light {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   SCROLLING ANIMATIONS
   ======================================== */

.scroll-animate {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.bg-gradient {
    background: #fff !important;
}

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

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

.border-top-accent {
    border-top: 4px solid var(--primary-purple) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}
