@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
  --primary-color: #f5f5f5; /* whitesmoke */
  --accent-color: #007bff; /* A softer blue */
  --transition-speed: 0.3s;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body{
  width: 100%;
  height: 100%;
}

body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("https://i.postimg.cc/VLQxvjC4/tech-Img-One.webp");
  background-size:cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-family: 'Audiowide', sans-serif;
  font-size: 2rem;
  color: var(--primary-color);
  text-decoration: none;
}

.navContainer {
  display: flex;
  gap: 20px;
}

button {
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background-color: transparent;
  transition: var(--transition-speed) all ease-in-out;
  cursor: pointer;
}

button:hover{
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Hero Section */

#heroContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100vh - 80px); /* Adjust based on header height */
  padding: 0 20px;
}

.heroContent {
  max-width: 800px;
}

.heroContent h1 {
  font-family: 'Audiowide', sans-serif;
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.heroContent p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1.2rem;
  border-radius: 50px;
  background-color: var(--accent-color);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
  background-color: #008cff; /* A slightly darker blue for hover */
}

/* ========================================= */
/* General Section Styles */
/* ========================================= */
.page-section {
    padding: 80px 40px;
    text-align: center;
}

.page-section h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

.page-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c5d8e7; /* A slightly lighter shade for better readability */
}

/* ========================================= */
/* Subjects Section - Card Grid */
/* ========================================= */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background-color: rgba(255, 255, 255, 0.05); /* Softer transparent background */
    border: 2px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease;
    backdrop-filter: blur(8px); /* More blur for a frosted-glass effect */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3), 0 0 20px rgba(0, 123, 255, 0.5); /* Added glow effect */
    border-color: var(--accent-color);
}

.subject-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.subject-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.subject-card p {
    font-size: 0.9rem;
    padding: 0 20px;
    margin-bottom: 20px;
    color: #a9b9d3;
    flex-grow: 1;
}

.card-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: auto;
    padding-bottom: 20px;
    transition: color 0.3s ease-in-out;
}

.card-link:hover {
    color: #008cff;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* ========================================= */
/* Background Image Section Styling */
/* ========================================= */
.bg-image-section {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bg-image-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://i.postimg.cc/zGPpbrQ5/tech-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.4);
  z-index: -1;
}

.bg-image-section h2,
.bg-image-section p,
.subject-card {
  position: relative;
  z-index: 2;
}

/* ========================================= */
/* Responsive Header: Hamburger Menu */
/* ========================================= */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.5rem; /* Set size of Font Awesome icon */
    color: var(--primary-color);
    z-index: 1001;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .navContainer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100vh);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease;
        z-index: 1000;
    }

    .navContainer.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .heroContent h1 {
      font-size: 2.5rem;
    }

    .heroContent p {
      font-size: 1rem;
    }

    #features > h2 {
      font-size: 2rem;
    }
}

/* Additional media query for very small screens if needed */
@media (max-width: 480px) {
  .heroContent h1 {
    font-size: 2rem;
  }
  .heroContent p {
    font-size: 0.9rem;
  }
}

/* ========================================= */
/* Features Section */
/* ========================================= */
#features {
  /* Removed background-color to use the common background style */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 50px 30px; /* Increased top/bottom padding for height */
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: #a9b9d3;
    line-height: 1.6;
}

/* ========================================= */
/* Call to Action Section */
/* ========================================= */
#cta-section {
  /* Removed background color to use the common background style */
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c5d8e7;
    margin-bottom: 30px;
}
