
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

/* Navigation */
.navbar {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #93c5fd;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-icon:hover {
    color: #93c5fd;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    background: #1e40af;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #93c5fd;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.6);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeIn 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    color: #93c5fd;
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    min-width: 200px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1e3a8a;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
}

.scroll-dot {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid white;
    border-radius: 1.25rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.scroll-dot::after {
    content: '';
    width: 0.25rem;
    height: 0.75rem;
    background: white;
    border-radius: 0.125rem;
    margin-top: 0.5rem;
    animation: pulse 1s infinite;
}

/* Quick Access */
.quick-access {
    background: #1e40af;
    padding: 2rem 0;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-link {
    padding: 1rem;
    border-radius: 0.5rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.quick-link:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.quick-link i {
    width: 1.5rem;
    height: 1.5rem;
}

.quick-link span {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
}

.bg-blue { background: #2563eb; }
.bg-gray { background: #6b7280; }
.bg-red { background: #dc2626; }

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-description {
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
}

.stats-updated {
    text-align: center;
    margin-top: 2rem;
}

.stats-updated p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Studying Section */
.studying-section {
    padding: 4rem 0;
    background: white;
}

.studying-header {
    margin-bottom: 3rem;
}

.studying-header .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.studying-header .section-description {
    text-align: left;
    max-width: none;
    margin: 0;
}

.categories-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    group: true;
}

.category-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-image {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.category-content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-content p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.feature-image {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.feature-content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
}

.feature-content h4 {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Rankings Section */
.rankings-section {
    padding: 4rem 0;
    background: #111827;
    color: white;
}

.rankings-section .section-description {
    color: #d1d5db;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.ranking-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s;
}

.ranking-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.ranking-card i {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 1rem;
    display: block;
}

.rank-number {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.rank-year {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rank-title {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.2;
}

.bg-purple { background: #7c3aed; }
.bg-yellow { background: #ca8a04; }
.bg-orange { background: #ea580c; }
.bg-green { background: #16a34a; }

/* Faculties Section */
.faculties-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.faculty-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.faculty-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.faculty-image {
    height: 8rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.faculty-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.faculty-code {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.faculty-content {
    padding: 1rem;
}

.faculty-content h3 {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.2;
    transition: color 0.3s;
}

.faculty-card:hover .faculty-content h3 {
    color: #2563eb;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
}

.footer-quick-links {
    background: #2563eb;
    padding: 1rem 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.footer-quick-btn {
    background: #1d4ed8;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-quick-btn:hover {
    background: #1e40af;
}

.footer-main {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-column {
    margin-bottom: 1rem;
}

.footer-title {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    grid-column: span 2;
}

.newsletter {
    margin-bottom: 1.5rem;
}

.newsletter h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    background: #374151;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem 0 0 0.375rem;
    flex: 1;
    outline: none;
}

.newsletter-form input:focus {
    ring: 2px;
    ring-color: #2563eb;
}

.newsletter-form button {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0 0.375rem 0.375rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #1d4ed8;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.contact-item i {
    width: 1rem;
    height: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-link:hover {
    background: #2563eb;
}

.social-link i {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-copyright {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
}

.copyright-content {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.copyright-content p {
    margin-bottom: 0.25rem;
}

.copyright-content a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.copyright-content a:hover {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40%, 43% {
        transform: translateX(-50%) translateY(-20px);
    }
    70% {
        transform: translateX(-50%) translateY(-10px);
    }
    90% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .quick-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .rankings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .faculties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .quick-links {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .rankings-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .faculties-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}
