/* ============================================
   UNIVERSITY WEBSITE - CSS STYLESHEET
   Design: Academic Elegance with Modern Minimalism
   ============================================ */

/* ---- ROOT & VARIABLES ---- */
:root {
    --primary-blue: #1e3a8a;
    --secondary-slate: #475569;
    --accent-amber: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-amber);
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
.nav-left{
    display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
}
.nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
}

.nav-brand p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    position: relative;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-amber);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero .overlay{
        position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* qoraroq */
  z-index: 1;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:url(https://static.tuit.uz/uploads/1/720__sOp0wDkiU7kg_QUwBlsnJyzt7sqzpZpP.jpg) ;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    animation: slideDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: slideUp 0.8s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-amber);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    animation: slideUp 0.8s ease-out 0.6s both;
}

.cta-button:hover {
    background: #f97316;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.about-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-amber);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.about-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.statistics {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a96 100%);
    color: white;
}

.statistics h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs {
    padding: 6rem 0;
    background: white;
}

.programs h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.program-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-top: 4px solid var(--accent-amber);
    transition: var(--transition);
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.program-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.program-card p {
    font-weight: 600;
    color: var(--secondary-slate);
    margin-bottom: 1.5rem;
}

.program-card ul {
    list-style: none;
    padding: 0;
}

.program-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.program-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-amber);
    font-weight: bold;
}

/* ============================================
   INFRASTRUCTURE SECTION
   ============================================ */
.infrastructure {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
}

.infrastructure h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.infrastructure-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.infra-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.infra-text h4 {
    color: var(--secondary-slate);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.infra-list {
    list-style: none;
    padding: 0;
}

.infra-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.infra-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-amber);
    font-weight: bold;
    font-size: 1.2rem;
}

.infra-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.infra-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.infra-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.infra-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.infra-item p {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 6rem 0;
    background: white;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-left-color: var(--accent-amber);
}

.project-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.project-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-amber);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   CLUBS SECTION
   ============================================ */
.clubs {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a96 100%);
    color: white;
}

.clubs h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

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

.club-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.club-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.club-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.club-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.club-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-top: 4px solid var(--accent-amber);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: var(--text-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

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

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

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

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
            position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d47a1;

    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    display: none;
    color: #f59e0b;
  }

  .nav-menu.active {
    display: flex;
  }
 .nav-menu li a{
                color: white;

    }

    
.menu-toggle {
    display: flex;
  }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .infrastructure-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .programs-grid,
    .projects-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        
    }

    .navbar .container {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-menu li a{
                color: white;

    }

    .hero-title {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .stat-number {
        font-size: 2rem;
    }
}
