/* style.css - ASDC Kanpur Global Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-primary: #1e1b4b; /* Deep Indigo */
  --color-primary-light: #3730a3;
  --color-accent: #e11d48; /* Vibrant Red */
  --color-accent-hover: #be123c;
  --color-surface: #ffffff;
  --color-background: #f8fafc;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-heading: #0f172a;
  
  /* Shadow & Radii */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Layout */
  --container-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Button Premium FX */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: 0 4px 6px rgba(225, 29, 72, 0.2);
}
.btn-primary:after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 15px rgba(225, 29, 72, 0.3);
}
.btn-primary:hover:after { left: 100%; }

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(30, 27, 75, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Typography Utility */
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Padding Utilities */
.py-20 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-32 { padding-top: 8rem; } /* For below sticky header */

/* -- Global Animations -- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* -- Header -- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.4s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid #e2e8f0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-heading);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* -- Hero Section -- */
.hero {
  position: relative;
  background-color: var(--color-primary);
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::after {
    content: ""; /* Gradient Overlay */
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to right, rgba(30,27,75,0.9), rgba(30,27,75,0.4));
    z-index: 0;
}

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

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
}

/* -- Cards Grid -- */
.grid {
  display: grid;
  gap: 32px;
  transition: opacity 0.3s ease;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
  opacity: 0;
  transform: translateY(20px);
}
.card.appear {
    opacity: 1;
    transform: translateY(0);
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: #e2e8f0;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img {
    transform: scale(1.05); /* Image slight zoom on hover */
}

/* to fix overflow bug from scale img */
.card > div:first-child, .student-img-wrapper {
   overflow: hidden;
   border-top-left-radius: var(--radius-lg);
   border-top-right-radius: var(--radius-lg);
}

.card-content {
  padding: 24px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Badge */
.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--color-primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.badge-popular {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Categories Filter */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
/* Filter Buttons */
.filter-btn {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 99px; /* full rounded */
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Placement Student Card Specific */
.student-card {
    border-radius: var(--radius-lg);
}
.student-img-wrapper {
  position: relative;
  height: 320px; /* larger card for premium feel */
  border-radius: var(--radius-lg);
}
.student-card .card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.student-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(15,23,42,1) 0%, rgba(15,23,42,0.6) 80%, transparent 100%);
    padding: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%; /* Cover whole image on hover */
    text-align: center;
}
.student-card:hover .student-overlay {
    opacity: 1;
    transform: translateY(0);
}
.student-card .card-content { display: none; } /* Using overlay instead */

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: #cbd5e1;
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 4rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 2rem;
  position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute; bottom: -8px; left: 0; width: 40px; height: 2px;
    background: var(--color-accent);
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-col ul li:last-child { border-bottom: none; }
.footer-col ul li a { display: inline-block; transition: transform 0.2s, color 0.2s; }
.footer-col ul li a:hover { color: white; transform: translateX(5px); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .menu-toggle {
    display: block;
  }
  .hero h1 { font-size: 2.5rem; }
}
