* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}
/* Ensure this is in your CSS */
html {
  scroll-behavior: smooth;
}

/* Make sure your navbar has proper fixed positioning */
.navbar {
  position: fixed;
  top: 0;
  /* ... rest of your navbar styles ... */
}

/* Add this to compensate for fixed navbar */
section {
  scroll-margin-top: 80px; /* Should match navbar height */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(213, 213, 213, 0.1);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #3f51b5, #2196f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 520;
  font-size: 1.3rem;
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 1px;
}

.nav-link i {
  font-size: 1.3rem;
}
/* Hamburger menu styles */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

/* Mobile menu styles */
@media (max-width: 1000px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    margin: 0;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 450px) {
  .logo {
    font-size: 1.2rem;
}
}

/* Cool underline effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3f51b5, #2196f3);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 80%; /* Underlines 80% of the word (appears as ~75% with 10% left offset) */
  left: 10%;
}

/* Active state */
.nav-link.active::after {
  width: 80%;
  left: 10%;
}


.section {
  padding: 100px 20px;
  padding-top: 120px; /* extra space to compensate for fixed navbar */
}

/* Add to your CSS file */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  max-width: max-content;
  margin: auto;
}

.hero-content {
  padding-right: 2rem;
  margin-right: 50px;
  margin-left: 20px;
  padding-left: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  color: #333;
}

.word-matrix {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.giant-center {
  font-size: 7rem;
  font-weight: 900;
  color: #3f51b5;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: -3px;
  margin: 0 auto;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-row, .bottom-row {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  left: 0;
  z-index: 2;
}

.top-row {
  top: 0;
  align-items: flex-end;
  height: 50%;
}

.bottom-row {
  bottom: 0;
  align-items: flex-start;
  height: 50%;
}

.corner-word {
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-block;
  width: 45%;
  text-align: center;
}

.top-row .corner-word:first-child {
  text-align: left;
    margin: 11px -44px 31px -16px;
    font-size: 74px;
    font-weight: 900;
}

.top-row .corner-word:last-child {
  text-align: right;
   margin: 16px 10px -140px -16px;
    font-size: 74px;
    font-weight: 900;
}


@media (max-width: 768px) {
  .giant-center {
    font-size: 4.5rem;
    height: 4.5rem;
  }
  .corner-word {
    font-size: 1.3rem;
  }
}

.hero-content p {
  font-size: 1.2rem;
      margin-top: 86px;
    margin-bottom: 2rem;
  letter-spacing: 1px;
  color: #555;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: auto;
  height: 65vh;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Remove existing .btn styles and replace with: */

.hero-buttons {
  display: flex;
  gap: 2rem; /* Space between buttons */
  justify-content: flex-start; /* Left alignment */
  margin-top: 2rem;
}

.btn-text {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: #000000; /* Match your navbar text color */
  font-size: 20px;
  position: relative;
  margin-right: 1rem;
  padding-bottom: 3px;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

/* Underline effect matching navbar */
.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3f51b5, #2196f3);
  transition: width 0.3s ease, left 0.3s ease;
}

.btn-text:hover::after {
  width: 80%;
  left: 10%;
}

/* Optional: Different colors for each button */
.btn-text:nth-child(1)::after {
  background: linear-gradient(90deg, #3f51b5, #2196f3);
}

.btn-text:nth-child(2)::after {
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

/* Active state */
.btn-text.active::after {
  width: 80%;
  left: 10%;
}
@media (max-width: 1400px) {
.hero-content{
  margin-right: 0;
  margin-left: 0;
}
.giant-center {
    font-size: 5rem;
}
.top-row .corner-word:first-child {
    font-size: 49px;
}
.top-row .corner-word:last-child {
    font-size: 49px;
    margin: 16px 10px -99px -16px;
}
}
@media (max-width: 768px) {
  .hero {
    position: relative;
    flex-direction: column;
    text-align: center;
    min-height: 80vh;
    padding: 2rem;
  }

  /* Background image with opacity */
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/HeroIMG.png'); /* Add your image path */
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Adjust opacity (0.1 to 0.3 works well) */
    z-index: -1;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 12px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
  }

  .hero-image {
    display: none; /* Hide the regular image on mobile */
  }
  
  .btn-text {
    width: 250px;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.9); /* Button background for contrast */
    padding: 0.8rem 1.5rem !important;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
}

@media (max-width: 450px) {
    .giant-center {
        font-size: 3rem;
    }
        .top-row .corner-word:first-child {
        font-size: 38px;
        margin: 3px -44px 13px -16px;
    }
        .top-row .corner-word:last-child {
        font-size: 38px;
        margin: 16px 10px -68px -16px;
    }
    .hero-content p {
    font-size: 1.2rem;
    margin-top: 47px;
  }
  }

/* Section about us styles */
/* Add to your CSS file */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  max-width: max-content;
  margin: auto;
}

.about-image {
  padding-right: 3rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

  .about-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border-left: 5px solid #3f51b5; /* Your brand color */
  }
  
  .about-content h2 {
    color: #3f51b5;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
  }
  
  .about-description p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
  }
@media (max-width: 1400px) {
  .about-image img {
    width: auto;
    height: 70vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.about-image {
  flex: 1;
  padding-right: 3rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content {
  flex: 1;
}

/* Responsive styles */
@media (max-width: 1000px) {
  .about-container {
    flex-direction: column;
    position: relative;
    min-height: 60vh;
    padding: 4rem 2rem;
    border-radius: 12px;
    overflow: hidden;
    justify-content: center;
  }
  
  .about-image {
    display: none;
  }
  
  .about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    opacity: 0.8;
  }
  
  .about-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    border-left: 5px solid #3f51b5; /* Your brand color */
  }
  
  .about-content h2 {
    color: #3f51b5;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
  }
  
  .about-description p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
  }
}

/* For very small screens */
@media (max-width: 600px) {
  .about-content {
    padding: 2rem 1.5rem;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
}
  
}
@media (max-width: 768px) {
      .about-container {
        flex-direction: column;
        padding: 0;
    }
}


/* Responsive styles */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    padding-right: 0;
    margin-bottom: 2rem;
    width: 100%;
  }
  
  .about-content {
    text-align: center;
  }
  
  .feature {
    text-align: left;
  }
}
/* Courses Section */

#courses{
  padding-top: 50px;
  height: fit-content;
}

/* Courses Section */
#courses {
  padding: 4rem 0;
}

.section-heading {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.section-heading span {
  color: #3f51b5;
  font-weight: 700;
  position: relative;
}

.section-heading span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3f51b5, #2196f3);
  border-radius: 3px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.course-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 280px;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: white;
}

.course-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.course-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.course-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63,81,181,0.9) 0%, rgba(33,150,243,0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.course-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.course-card:hover .card-hover {
  opacity: .8;
}
.course-card:hover .card-content {
  z-index: 8;
}

/* Individual Card Backgrounds */
.web-dev { background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover; }
.ai-ml { background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover; }
.cyber-security { background: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover; }
.coding { background: url('https://images.unsplash.com/photo-1547658719-da2b51169166?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover; }
.design { 
  background: url('https://images.unsplash.com/photo-1541462608143-67571c6738dd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
  
  .course-card {
    height: 240px;
  }
  
  .design {
    max-width: 100%;
  }
}
/* Register Section */
#register {
  padding: 5rem 0;
}

.register-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.register-form {
  flex: 1;
  padding: 3rem;
  background: white;
}

.register-form h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.register-form h2 span {
  color: #3f51b5;
  font-weight: 700;
}

.form-subtitle {
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3f51b5;
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}



.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(90deg, #3f51b5, #2196f3);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3);
}

.arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover .arrow {
  transform: translateX(3px);
}

.register-image {
  flex: 1;
  position: relative;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive */
@media (max-width: 1000px) {
  .register-container {
    flex-direction: column;
  }
  
  .register-image {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .register-form {
    padding: 2rem;
  }
  
  .register-form h2 {
    font-size: 2rem;
  }
}

/* Updated Footer CSS */
.footer {
  background-color: #222;
  color: #fff;
  padding: 3rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-tagline {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #3f51b5;
}

.footer-links-container {
  flex: 2;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.links-column {
  min-width: 150px;
}

.links-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.5rem;
}

.links-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #3f51b5;
}

.links-column ul {
  list-style: none;
  padding: 0;
}

.links-column li {
  margin-bottom: 0.8rem;
}

.links-column a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.links-column a:hover {
  color: #3f51b5;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid #444;
  color: #aaa;
  font-size: 0.9rem;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
  
  .footer-links-container {
    justify-content: flex-start;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .footer-links-container {
    flex-direction: column;
    gap: 2rem;
  }
}