/* General Styles */
:root {
    --primary-color: #14285f; /* Dark blue from logo */
    --secondary-color: #8bc34a; /* Green from logo */
    --accent-color: #ffd54f; /* Yellow from logo */
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    padding-top: 76px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Hero Section with Animated Background */
.hero-section {
    position: relative;
    background: none;
    height: 60vh;
    min-height: 400px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    animation: slideshow 24s linear infinite;
    transition: opacity 1s ease-in-out;
}

.hero-background .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20, 40, 95, 0.85), rgba(20, 40, 95, 0.85));
}

.hero-background .slide:nth-child(1) {
    background-image: url('../images/hero-bg-1.jpg');
    animation-delay: 0s;
}

.hero-background .slide:nth-child(2) {
    background-image: url('../images/hero-bg-2.jpg');
    animation-delay: 6s;
}

.hero-background .slide:nth-child(3) {
    background-image: url('../images/hero-bg-3.jpg');
    animation-delay: 12s;
}

.hero-background .slide:nth-child(4) {
    background-image: url('../images/hero-bg-4.jpg');
    animation-delay: 18s;
}

@keyframes slideshow {
    0%, 22% {
        opacity: 1;
        transform: scale(1.1);
    }
    25%, 97% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 15px;
}

.hero-section h1 {
    font-size: 3rem; /* Slightly reduced from 3.5rem */
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.3rem; /* Slightly reduced from 1.5rem */
    margin-bottom: 2rem;
    color: var(--accent-color);
    max-width: 800px; /* Limit text width */
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: bold;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand span {
    color: var(--accent-color);
    margin-left: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link:focus {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Navbar Brand Image */
.navbar-brand img.logo {
  max-height: 60px;
  width: auto;
  margin-right: 10px;
  border-radius: 50%;
}

/* Teacher image placeholder */
.teacher-img.placeholder {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #343a40;
  font-weight: bold;
}

.teacher-img.placeholder::before {
  content: 'Teacher';
}

/* Image error handling */
img.error {
  display: none;
}

img.error::after {
  content: attr(alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  color: #6c757d;
  border: 1px dashed #adb5bd;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  padding: 0.25rem;
}

img::before {
  content: "";
  display: block;
  background-color: var(--secondary-color-light);
  height: 200px;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-body {
    padding: 2rem;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1.25rem;
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: 700;
    position: relative;
    margin-bottom: 50px;
    padding-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Services Section */
.services-section .card {
    height: 100%;
}

.services-section .card i {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.services-section .card h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Teachers Section */
.teacher-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.rating {
    color: var(--accent-color);
    margin: 1rem 0;
}

.teacher-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.teacher-card .text-muted {
    color: var(--secondary-color) !important;
    font-weight: 500;
}

/* Development Plans */
.plan-card {
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.plan-card .card-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.plan-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.plan-card .price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1.5rem 0;
}

.plan-card ul {
    padding-left: 1.5rem;
}

.plan-card ul li {
    padding: 0.5rem 0;
}

.plan-card .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.plan-card .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

/* Tutorials Section */
.tutorial-card iframe {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tutorial-card h3 {
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Statistics Section */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.stats-section .display-4 {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stats-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats-section .col-md-3 {
    padding: 30px 15px;
}

/* Contact Section */
.contact-info i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-section {
    background-color: #f8f9fa;
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 195, 74, 0.25);
    border-color: var(--secondary-color);
}

.contact-form .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Demo Booking Section */
.demo-section {
    background-color: #f8f9fa;
}

.demo-form {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Footer */
footer {
    background-color: var(--primary-color-dark);
    color: white;
    padding: 40px 0;
}

footer .footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
}

footer .footer-logo span {
    color: var(--accent-color);
}

footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--accent-color);
}

footer .social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
}

.copyright {
    background-color: var(--primary-color-darker);
    padding: 15px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .stats-section .display-4 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .service-card, .teacher-card, .plan-card {
        margin-bottom: 30px;
    }
}

/* CSS-only logo */
.css-logo {
  width: 40px;
  height: 40px;
  background-color: #0056b3;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffc107;
  margin-right: 10px;
}

.css-logo::after {
  content: '';
  width: 34px;
  height: 34px;
  position: absolute;
  background-color: #4caf50;
  border-radius: 50%;
  z-index: 1;
}

.css-logo span {
  z-index: 2;
  position: relative;
  color: #ffc107 !important;
  font-size: 14px;
  font-weight: bold;
}

/* Teacher Carousel */
#teacherCarousel {
  margin-bottom: 50px;
}

#teacherCarousel .carousel-control-prev,
#teacherCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

#teacherCarousel .carousel-control-prev {
  left: -20px;
}

#teacherCarousel .carousel-control-next {
  right: -20px;
}

.teacher-indicators {
  position: relative;
  margin-top: 20px;
  bottom: 0;
}

.teacher-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.5;
}

.teacher-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

/* Teacher Banner */
.teacher-img-container {
  height: 200px;
  background-color: #20B2AA; /* Teal color as fallback */
  border-radius: 8px 8px 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Teacher profile images */
.teacher-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.5s ease;
}

/* Add hover effect on teacher image */
.teacher-card:hover .teacher-profile-img {
  transform: scale(1.05);
}

/* Add overlay for better contrast with text */
.teacher-img-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

/* Add onerror handling in CSS for teacher images */
.teacher-profile-img[src=""], 
.teacher-profile-img:not([src]),
.teacher-profile-img[src="undefined"] {
  opacity: 0;
}

.teacher-profile-img[onerror] {
  display: none;
}

/* Fallback for missing teacher images */
.teacher-img-container:empty::before {
  content: "Teacher";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
}

/* Fix for image error handling */
img.teacher-profile-img:not([src]), 
img.teacher-profile-img[src=""],
img.teacher-profile-img[src="undefined"] {
  visibility: hidden;
}

img.teacher-profile-img:not([src])::after, 
img.teacher-profile-img[src=""]::after,
img.teacher-profile-img[src="undefined"]::after {
  content: attr(alt);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #20B2AA;
  visibility: visible;
  color: white;
  font-weight: bold;
}

/* Social Links in Teacher Cards */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-icon.youtube {
  background-color: #FF0000;
}

.social-icon.telegram {
  background-color: #0088cc;
}

.social-icon.whatsapp {
  background-color: #25D366;
}

.social-icon.linkedin {
  background-color: #0077B5;
}

/* Why Choose Us Section */
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
}

.why-choose-section h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.why-choose-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 2px;
}

.why-choose-section .lead {
    margin-bottom: 2rem;
}

.comparison-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comparison-header h3 {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem !important;
}

.comparison-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    height: 100%;
    border: 2px solid transparent;
}

.comparison-card.other-app {
    border-color: #ffc107;
}

.comparison-card.our-app {
    border-color: #28a745;
}

.app-badge {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
}

.app-badge i {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
}

.comparison-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.comparison-content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comparison-content i {
    margin-top: 8px;
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
    .why-choose-section {
        padding: 30px 0;
    }

    .comparison-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .comparison-card {
        padding: 12px;
        margin-bottom: 15px;
    }

    .comparison-content h4 {
        font-size: 1.1rem;
    }

    .app-badge {
        padding: 6px;
    }
}

/* App Features Carousel Section */
.app-features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
}

.app-features-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.app-features-section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 10px;
    height: 400px;
    display: flex;
    align-items: center;
}

.feature-content {
    padding: 20px;
}

.feature-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-content .lead {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.comparison-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.comparison-box .other-app,
.comparison-box .our-app {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
}

.comparison-box .other-app {
    border-left: 4px solid #ffc107;
}

.comparison-box .our-app {
    border-left: 4px solid #28a745;
}

.comparison-box i {
    font-size: 1.5rem;
}

.comparison-box span {
    font-weight: 500;
    color: #333;
}

.feature-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Carousel Controls */
#appFeaturesCarousel .carousel-control-prev,
#appFeaturesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#appFeaturesCarousel .carousel-control-prev {
    left: -20px;
}

#appFeaturesCarousel .carousel-control-next {
    right: -20px;
}

#appFeaturesCarousel .carousel-indicators {
    bottom: -50px;
}

#appFeaturesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 5px;
}

#appFeaturesCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        height: auto;
        padding: 20px;
    }

    .feature-content {
        padding: 15px;
        text-align: center;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-image {
        height: 200px;
        margin-top: 20px;
    }

    .comparison-box {
        padding: 15px;
    }

    #appFeaturesCarousel .carousel-control-prev,
    #appFeaturesCarousel .carousel-control-next {
        display: none;
    }
} 