/* Base Styles & Variables */
:root {
  /* Light Theme Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #f97316;
  --background-color: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.7);
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

.dark-theme {
  /* Dark Theme Colors */
  --primary-color: #60a5fa;
  --primary-dark: #3b82f6;
  --secondary-color: #fbbf24;
  --background-color: #334155;
  --card-bg: rgba(51, 65, 85, 0.9);
  --text-color: #f8fafc;
  --text-light: #e2e8f0;
  --border-color: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* New Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
  padding: 15px 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  width: auto;
}

.navbar-logo-img {
  height: 50px;
  width: 50px;
  object-fit: contain;
}

/* Removed styles for logo text as it's no longer used */

.navbar-nav {
  display: flex;
  list-style: none;
}

.navbar-nav li {
  margin: 0 15px;
  display: flex;
  align-items: center;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav a:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

.navbar-nav a.active {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

/* Navbar controls (theme toggle and mobile menu) */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Mobile menu button */
.navbar-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  display: none;
}

/* Theme Toggle */
.navbar-theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  align-self: center;
}

.navbar-theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: rotate(15deg);
}

.dark-theme .navbar-theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(249, 115, 22, 0.8)), url('https://mctinavimumbai.com/img/mcti_about.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 80px;
  animation: fadeIn 1s ease-out;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeIn 1s ease-out 0.6s both;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  animation: float 3s ease-in-out infinite;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  animation: slideInLeft 0.5s ease-out;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 50px;
  animation: slideInRight 0.5s ease-out;
}

/* Courses Section */
.courses {
  padding: 100px 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  min-height: auto;
  align-items: stretch;
}

.course-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: visible;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease-out;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.course-image {
  height: 200px;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.dark-theme .course-image {
  background-color: rgba(255, 255, 255, 0.05);
}

.course-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-position: center;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.course-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 1;
  min-height: 80px;
  overflow: visible;
  line-height: 1.5;
}

.course-features {
  margin-bottom: 15px;
  flex-grow: 1;
  overflow: visible;
  min-height: auto;
  padding-right: 10px;
}

.course-features h4 {
  margin-bottom: 8px;
  color: var(--text-color);
  font-size: 1.1rem;
}

.course-features ul {
  list-style-type: none;
  padding-left: 0;
  max-height: none; /* Removed scroll by setting max-height to none */
  overflow-y: visible; /* Changed from auto to visible */
  padding-right: 10px;
}

/* Removed scrollbar styling as scroll functionality is removed */

.course-features li {
  padding: 4px 0;
  padding-left: 25px;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.4;
}

.course-features li::before {
    content: '-';
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.duration {
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.enroll-btn {
  background-color: var(--secondary-color);
  color: white;
  padding: 6px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

.enroll-btn:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: rgba(37, 99, 235, 0.03);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  animation: slideInLeft 0.8s ease-out;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.about-text {
  animation: slideInRight 0.8s ease-out;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-text ul {
  list-style: none;
  margin-top: 30px;
}

.about-text ul li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  color: var(--text-light);
}

.about-text ul li i {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Team Section */
.team {
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member {
  text-align: center;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  transition: var(--transition);
  margin: 0;
}

.team-member:hover img {
  transform: scale(1.05);
}

/* Removed team member text styles since we're only showing images */

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(249, 115, 22, 0.05));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  position: relative;
  animation: fadeIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial-card img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  align-self: flex-end;
  margin-bottom: 15px;
}

.testimonial-content {
  margin-top: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-content h4 {
  color: var(--primary-color);
  margin-bottom: 0;
  text-align: right;
  font-size: 1.1rem;
}

/* Removed .role styling since we're removing job titles */

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.location {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.location h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.location p {
  margin-bottom: 5px;
  color: var(--text-light);
}

.direction-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.direction-link:hover {
  text-decoration: underline;
}

.contact-details {
  margin-top: 30px;
}

.contact-details p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 50px 0 20px;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}

.footer-logo-img {
  height: 60px;
  width: 60px;
  object-fit: contain;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.whatsapp-btn,
.call-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  animation: float 3s ease-in-out infinite;
  text-decoration: none !important;
}

.whatsapp-btn {
  background-color: #25D366 !important; /* WhatsApp brand color */
}

.call-btn {
  background-color: #25D366 !important; /* WhatsApp brand color for phone as well */
}

.whatsapp-btn:hover,
.call-btn:hover {
  transform: scale(1.1);
  text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    background-attachment: fixed;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .footer-logo-img {
    height: 50px;
    width: 50px;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .course-image {
    height: 180px;
    min-height: 180px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition);
  }
  
  .navbar-nav.active {
    left: 0;
  }
  
  .navbar-nav li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .navbar-menu {
    display: flex;
    align-items: center;
  }
  
  .hero {
    margin-top: 80px;
    background-attachment: scroll;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-member {
    padding: 15px;
  }
  
  .team-member img {
    width: 130px;
    height: 130px;
  }
  
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .course-image {
    height: 170px;
    min-height: 170px;
  }
  
  .course-features ul {
    padding-right: 5px;
  }
  
  .course-features li {
    padding: 3px 0;
    padding-left: 22px;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .course-features li::before {
    top: 3px;
    font-size: 0.85rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo-img {
    height: 40px;
    width: 40px;
    margin: 0 auto;
  }
  
  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links ul li {
    margin: 0 10px 10px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member {
    padding: 15px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .course-card {
    min-height: auto;
  }
  
  .course-image {
    height: 160px;
    min-height: 160px;
    padding: 8px;
  }
  
  .course-features li {
    padding: 2px 0;
    padding-left: 20px;
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .course-features li::before {
    top: 2px;
    font-size: 0.8rem;
  }
  
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-btn,
  .call-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* Gallery Page Styles */
main.gallery-page {
  margin-top: 120px;
}

.gallery-hero {
  padding: 140px 0 90px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(249, 115, 22, 0.1));
  border-bottom: 1px solid var(--border-color);
}

.gallery-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.gallery-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-light);
}

.gallery-section {
  padding: 80px 0;
}

.gallery-section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.5);
}

.dark-theme .gallery-section:nth-of-type(even) {
  background: rgba(51, 65, 85, 0.5);
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.gallery-subtitle {
  color: var(--text-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  display: none; /* Hide visible filenames under gallery images */
}

.gallery-actions {
  margin-top: 50px;
  text-align: center;
}

.gallery-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  main.gallery-page {
    margin-top: 100px;
  }

  .gallery-hero {
    padding: 120px 0 70px;
  }

  .gallery-hero h1 {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .gallery-item img {
    height: 200px;
  }
}
