/*tanmays css* */
:root {
  --primary-color: #1A1A2E; /* Coral */
  --secondary-color: #16213E; /* Slate Blue */
  --accent-color: #0F3460; /* Gold */                                               /*colours*/
  --text-color: #EAEAEA; /* White */
  --bg-color: #0f0f0f; /* Light Coral */
  --card-bg: #FFFFFF; /* White for cards */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.navbar {                                                                              /* navbar */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(252, 252, 252, 0.034);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content:space-between;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;                                                             /* ogo */
}

#logoimg1 {
  height: 3rem;
  width: 3rem;
}

#logoimg2 {
  height: 3rem;
  width: auto;
}

.nav-links {                                                              /*nav link*/
  display: flex;
  gap: 2rem;
}

.nav-links ul {
  display: flex; 
  list-style: none; /* Remove bullet points */
  justify-content: flex-end;
}

.nav-links li {
  margin-right: 20px; /* Space between links */
}

.nav-links a {
  text-decoration: none;
  color: rgb(213, 243, 252);
  font-weight: 501;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: rgb(6, 237, 253);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;                                                            /* hamburgir */
  cursor: pointer;
  align-self: start;
  width: 50px;
  height: 50px;
}
 
@media (max-width: 768px) {                                               /* Show hamburger icon on smaller screens */
    .nav-links {
        display: none; /* Hide nav links by default */
    }
    .nav-links.active {
      display:list-item;
      justify-content: right; /* Show nav links when active */
      background-color: rgba(0, 0, 0, 0.753);
      position: absolute; /* Position it below the navbar */
      top: 90px;
      right: 0;
      z-index: 999; 
  }
  #logoimg2{
    height: 2rem;
  }
  .nav-links ul {
    display: list-item; 
    list-style-type: style none;; /* Remove bullet points */
    justify-content:space-around;
  }
  .nav-links li {
    margin-bottom: 10px; /* Space between links */
  }
    .hamburger{
      display: inline;
    }
}

.section {
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;                                                                                /* section */
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}


#home {
  background: linear-gradient(180deg, var(--primary-color), var(--bg-color));
  color: var(--text-color);
  position: relative;
}

.home-content {
  display: flex;
  align-items: center;
}

.tagline {
  flex: 1;
  padding-left: 50px;
  width: 80%;
}

.tagline h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 90px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
}

.tagline p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  border: rgba(0, 5, 8, 0.4) 0.1px solid;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 5, 8, 0.4);
}

.cta-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  color: var(--text-color);
  border: rgba(6, 237, 253, 0.582) 0.1px solid;
  box-shadow: 0 2px 10px rgba(6, 237, 253, 0.582);
}

.image-placeholder {
  flex: 1;
  padding-right: 50px;
  padding-top: 20px;
  height: 530px;
  width: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder img {
  max-width: 100%;
  height: 110%;
  object-fit: contain;
  filter: drop-shadow(3px -3px 10px rgba(6, 237, 253, 0.452));
}

.social-icons {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
}

.social-icons a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
  background-color: rgba(66, 165, 245, 0.2);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-icons a:hover {
  background-color: rgb(58, 242, 255);
  color: black;
  transform: translateY(-3px);
}

#courses {
  background: linear-gradient(180deg, var(--bg-color), var(--primary-color));
}

.courses-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  z-index: 300;
  position: sticky;
}

.section2 {
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.section2 img {
  position: absolute;
  object-fit: inherit;
  pointer-events: none;
  height: 100vh;
  width: 1345px;
  transition: transform 0.5s ease;
}

.left,
.right {
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.course-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-top: 5px solid var(--accent-color);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.course-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  position: relative;
}

.course-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.course-card p {
  color: #455a64;
}

.course-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

#about-contact {
  background: linear-gradient(180deg, var(--primary-color), black);
}

.about-contact-container {
  display: flex;
}

.about,
.contact {
  padding-left: 20px;
  flex: 1;
  z-index: 300;
}

.about h2,
.contact h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about h2::after,
.contact h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.1);
}

button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 0.8rem 2rem;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  border: var(--accent-color) 0.1px solid;
  transition: all 0.3 s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  color: var(--text-color);
  border: rgba(6, 237, 253, 0.582) 0.1px solid;
  box-shadow: 0 2px 10px rgba(6, 237, 253, 0.582);
}

.highlight {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  color: var(--text-color);
}

.highlight::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
}

h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .home-content,
  .about-contact-container {
    flex-direction: column;
  }

  .social-icons {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
  }

  .tagline{
    padding-left: 0;
  }

  .tagline h1 {
    padding-top: 50px;
    font-size: 2.3rem;
    font-weight:bolder;
    line-height: 60px;
    text-align: center;
  }
  .tagline p{
    font-size: 1rem;
    text-align:center;
  }

  .image-placeholder {
    height: 300px;
  }

  .navbar-container {
    flex-direction:row;
    align-items: flex-start;
  }

  .cta-button {
    text-align: center;
    display: block;
    font-size: 15.5px;
    font-weight: 400;
    margin: 0 10%;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 10px rgba(6, 237, 253, 0.582);
  }
  .container h2{
    margin-bottom: 1rem;
  }
  .course-card {
    width: 100%; /* Full width on mobile */
    margin: 0.5rem 0; /* Add margin */
    padding:2rem 1rem;

  }
  .courses-grid {
    flex-direction: column; /* Stack courses vertically */
    gap: 1rem;
  }

  .image-placeholder{
    padding-right:20px;
  }
  .contact{
    padding-top: 30px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tagline {
    padding-left: 0px;
    max-width: 10px;
  }

  .image-placeholder {
    height: 400px; /* Adjust height for medium screens */
  }

  .course-card {
    width: 48%; /* Two cards per row */
    margin: 1%; /* Add margin */
  }

  .courses-grid {
    flex-wrap: wrap; /* Allow wrapping of course cards */
  }
}

@media (min-width: 1025px) {
  .course-card {
    width: 30%; /* Three cards per row */
    margin: 1%; 
    align-items: center;/* Add margin */
  }
}
