/* =========================================
   CSS Variables & Theme Setup
========================================= */
:root {
    /* Colors */
    --primary: #183878;       /* Deep DYU Blue */
    --primary-light: #4174d9; /* Vivid DYU Blue */
    --accent: #00d2ff;        /* Vibrant Cyan */
    
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Transitions & Shadows */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   Reset & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--text-light); }
.bg-light { background-color: var(--bg-light); }

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =========================================
   Buttons
========================================= */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(24, 56, 120, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 56, 120, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white-gradient {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: var(--primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-white-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: var(--primary-light);
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}
.text-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    border-bottom: var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
    /* REMOVED: filter: brightness(0) invert(1); to keep original colors */
}

.navbar.scrolled .logo img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Added text shadow for visibility on bright image */
}

.navbar.scrolled .nav-links a:not(.btn-primary) {
    color: var(--text-main);
    text-shadow: none;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.7), rgba(24, 56, 120, 0.5));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* =========================================
   Images & Cards Base
========================================= */
.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.glass-card {
    position: absolute;
    bottom: -30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: var(--glass-border);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.right-card { right: -30px; }
.left-card { left: -30px; }

.stat-number {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   President Section
========================================= */
.president-image-wrapper { position: relative; }
.president-greeting {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 600;
}
.president-sign { margin-top: 2rem; border-left: 4px solid var(--primary); padding-left: 1rem;}

/* =========================================
   Campus Guide
========================================= */
.campus-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.campus-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.campus-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}
.campus-content {
    padding: 2rem;
}
.campus-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.campus-content .subtitle {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* =========================================
   Vision Section
========================================= */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.vision-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.vision-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.icon-box-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* =========================================
   Academics (Tabs UI)
========================================= */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 56, 120, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

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

.college-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.college-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.college-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.college-box h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.college-box ul li {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.college-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* =========================================
   Admissions Section
========================================= */
.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(65, 116, 217, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* =========================================
   Accordion
========================================= */
.campus-acc-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.accordion-header.active {
    color: var(--primary);
    border-bottom: 1px solid #eee;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-light);
}

.accordion-inner {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-link {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.dept-link:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white;
}
.social-links a:hover { background: var(--accent); }

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
}

/* =========================================
   Animations & Responsive
========================================= */
.reveal, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up { transform: translateY(50px); transition-delay: var(--delay, 0s); }

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1; transform: translate(0, 0);
}

@media (max-width: 992px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 3rem; }
    .vision-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 3rem; }
    .vision-grid, .footer-grid { grid-template-columns: 1fr; }
    .tab-buttons { flex-direction: column; border-radius: 15px; }
    .tab-btn { border-radius: 10px; }
}

/* =========================================
   Tables
========================================= */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    background: white;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.styled-table thead tr {
    background-color: var(--primary);
    color: #ffffff;
    text-align: left;
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.styled-table tbody tr:hover {
    background-color: #f1f5f9;
}
