/* Custom Styles for Omkara Computer Institute */

:root {
  --primary-color: #0d47a1;     /* Deep Blue */
  --primary-light: #5472d3;
  --primary-dark: #002171;
  
  --secondary-color: #d32f2f;   /* Red */
  --secondary-light: #ff6659;
  --secondary-dark: #9a0007;

  --accent-color: #ffb300;      /* Gold/Yellow */
  --accent-light: #ffe54c;
  --accent-dark: #c68400;

  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  
  --shadow-sm: 0 2px 4px 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.1);
  --shadow-hover: 0 15px 30px rgba(13, 71, 161, 0.15);
  
  --transition: all 0.3s ease-in-out;
  --border-radius: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border-color: var(--accent-color);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  color: var(--primary-dark);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin: 0 10px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Cards */
.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--secondary-color);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

/* Course Card */
.course-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.course-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-img-wrapper {
  overflow: hidden;
}

.course-body {
  padding: 25px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer a {
  color: rgba(255,255,255,0.7);
}

.footer a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 80px 0 40px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
  color: var(--accent-color);
}

/* Contact Info Box */
.contact-info-box {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-info-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
}

/* Login/Form Containers */
.auth-container {
  max-width: 500px;
  margin: 50px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25);
}

/* Gallery */
.gallery-item {
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 71, 161, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: var(--white);
  font-size: 3rem;
}
