/* ==========================================
   SVKM Institute of Computer Studies
   Modern Academic Website Styles
   ========================================== */

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1f2937;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar-expand-lg .navbar-collapse {
  display: flex !important;
  flex-basis: auto;
}

.navbar-expand-lg .navbar-toggler {
  display: none;
}

@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-toggler {
    display: block;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: none;
    flex-basis: 100%;
  }
  
  .navbar-expand-lg .navbar-collapse.show {
    display: block;
  }
}

.top-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.top-bar strong {
  font-weight: 600;
}

.navbar {
  padding: 1rem 0;
  background: var(--white) !important;
}

.navbar > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.navbar-top {
  margin-bottom: 0;
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  margin-right: 0;
  flex-shrink: 0;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand img {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  max-width: 100%;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.navbar-nav {
  align-items: center;
  justify-content: center;
  width: 100%;
}

.navbar-collapse {
  flex-grow: 1;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  color: var(--dark);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: 0.75rem;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  animation: dropdownFade 0.3s ease;
  min-width: 220px;
  position: absolute;
  z-index: 1050;
}

.navbar-collapse {
  background: var(--white);
  z-index: 1000;
}

.dropdown {
  position: relative;
}

.dropdown-menu.show {
  display: block;
}

.navbar-toggler {
  border: 2px solid var(--primary);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

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

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--dark);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--light-gray);
  color: var(--primary);
  padding-left: 2rem;
}

/* ==========================================
   HERO BANNER
   ========================================== */

.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect fill="url(%23grid)" width="100%" height="100%"/></svg>');
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 138, 0.2);
}

.hero-banner .container {
  position: relative;
  z-index: 2;
}

.min-vh-70 {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-banner h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.hero-banner p {
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s ease;
}

.hero-banner .btn {
  animation: fadeInUp 1.2s ease;
  box-shadow: var(--shadow-lg);
}

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

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

.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.btn-light:hover {
  background: var(--light-gray);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

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

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

/* ==========================================
   STATS SECTION
   ========================================== */

.stats-section {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
}

.counter {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.counter:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15);
}

.counter i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.counter strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter label {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
}

/* ==========================================
   WELCOME SECTION
   ========================================== */

.welcome-section {
  padding: 5rem 0;
}

.welcome-section ul li {
  font-size: 1.1rem;
  padding-left: 2rem;
  position: relative;
}

.welcome-section ul li i {
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
}

.welcome-image-grid img {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.welcome-image-grid img:hover {
  transform: scale(1.02) rotate(1deg);
}

/* ==========================================
   HIGHLIGHTS SECTION
   ========================================== */

.highlights-section {
  padding: 5rem 0;
}

.highlight-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.highlight-icon {
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: rotate(5deg) scale(1.1);
}

.highlight-card h4 {
  font-size: 1.4rem;
  color: var(--dark);
}

.highlight-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.highlight-link:hover {
  gap: 1rem;
  color: var(--primary-dark);
}

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

.cta-section {
  padding: 4rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box > * {
  position: relative;
  z-index: 2;
}

/* ==========================================
   PAGE HEADER
   ========================================== */

.page-header {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 2rem 0;
  margin-bottom: 2.5rem;
  border-bottom: 3px solid var(--primary);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0;
  font-weight: 700;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-size: 1.2rem;
  color: var(--gray);
}

.breadcrumb-item.active {
  color: var(--dark);
  font-weight: 500;
}

/* Main content area standardization */
.main {
  min-height: calc(100vh - 400px);
}

.main .container {
  padding: 2rem 15px;
}

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

.site-footer {
  background: linear-gradient(135deg, var(--dark) 0%, #111827 100%);
  color: var(--white);
  padding: 4rem 0 0;
  margin-top: 5rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-light);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.5rem;
}

.footer-links a:hover::before {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.7);
}

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.text-muted {
  color: var(--gray) !important;
}

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

@media (max-width: 991px) {
  .hero-banner {
    padding: 4rem 0;
  }
  
  .min-vh-70 {
    min-height: auto;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
  }
  
  .navbar > .container {
    flex-wrap: wrap;
  }
  
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-subtitle {
    font-size: 0.75rem;
  }
  
  .navbar-collapse {
    flex-basis: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-nav {
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--light-gray);
    margin-top: 0.5rem;
    position: static !important;
    transform: none !important;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
  }
  
  .navbar-nav .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
  
  .stats-section {
    margin-top: 0;
  }
  
  .welcome-section,
  .highlights-section {
    padding: 3rem 0;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .hero-banner h1 {
    font-size: 2rem;
  }
  
  .navbar-brand img {
    width: 56px;
    height: 56px;
  }
  
  .brand-title {
    font-size: 0.9rem;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
  }
  
  .counter strong {
    font-size: 2.5rem;
  }
  
  .highlight-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-box {
    padding: 3rem 2rem !important;
  }
}

@media (max-width: 575px) {
  .hero-banner {
    padding: 3rem 0;
  }
  
  .hero-banner h1 {
    font-size: 1.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.75rem !important;
  }
}
