/* Base Styles */
:root {
    --primary-color: #0a0f2c;
    --secondary-color: #080d24;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
    --border-color: #1f2937;
    --card-bg: #111827;
    --body-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-gray);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.logo span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-light);
}

.nav-links ul {
    display: flex;
}

.nav-links ul li {
    margin-left: 2rem;
}

.nav-links ul li a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.nav-links ul li a:hover, 
.nav-links ul li a.active {
    color: var(--text-light);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Updated Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar .container {
        height: 70px;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--primary-color);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .nav-links.active {
        max-height: 800px;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links ul {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-links ul li {
        margin: 0;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .auth-btn {
        display: block;
      }
    
      .auth-buttons { /* Remove this if you kept the old div */
        display: none !important;
      }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://acromatic-technologies.github.io/assets/sir.JPG');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('https://acromatic-technologies.github.io/assets/hcr.jpg');
        background-size: cover;
        background-position: center;
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Courses Section */
.courses {
    padding: 5rem 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin: 0 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-gray);
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

.video-wrapper {
    padding: 4rem 1rem;
    background-color: var(--body-bg);
    display: flex;
    justify-content: center;
  }
  
  .video-frame {
    position: relative;
    max-width: 960px;
    width: 100%;
    aspect-ratio: 16/9;
  }
  
  .video-container {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    height: 100%;
  }
  
  .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
  }
  
  .video-bg-frame {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 16px;
    z-index: 1;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease;
  }
  
  .custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
  }
  
  .custom-play-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

/* Mobile-only auth buttons */
.mobile-auth {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-auth {
        display: flex;
    }

    .auth-buttons:not(.mobile-auth) {
        display: none !important;
    }
}
