html{

    scroll-behavior: smooth;
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 2%;
    background: white;
    box-shadow:0px 4px 10px rgba(0, 0, 0, 0.1) ;
    position: relative;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.logo img {
    height:65px;
    width: 65px;
    border-radius: 50%;
}

.search-box {
    display: flex;
    align-items: center;
    width: 500px;
    max-width: 100%;/*for all screen sizes*/
    height:70px;
}

.logo{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}

.search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.search-box {
    flex-grow: 1;
    width: 350px;
    max-width: 400px;/*for all screen sizes*/
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /*soft shadow*/
    transition: box-shadow 0.3s ease;
}

.search-box input {
    border:none;
    outline: none;
    background: none;
    padding: 10px;
    flex: 1;
    font-size: 18px;
    width: 250px;
    min-width:0;
}
.search-box input::placeholder{
    color:#555;/*dark placeholder text*/
}
.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0 ;
}

.search-box .search-icon {
    font-size: 22px;
    color: #555;
}
/*vertical line*/
.search-box .searchButton::after {
    content: "";
    height: 20px;
    width: 1px;
    background: #555;
    margin-left: 10px;
}
.searchButton:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
  }
#micButton {
    background: none;
    border: none;
    cursor: pointer;
}

#micButton i {
    font-size: 22px;
    margin-left: 8px;
    color: #555;
}

#micButton:hover {
    color: #000;
}

#micButton.listening i {
    color: red;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.menu-toggle{
    font-size: 30px;
    cursor: pointer;
    display:none;
    margin-right: 15px;
}

nav{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 35px;
    margin-right: 50px;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #ae2222;
}


   /* Sign In Button */
   .btn-signin {
    background: linear-gradient(90deg, #fdeb85, #f8a4d8); /* Gradient Colors */
    color: white; /* Text Color */
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px; /* Rounded Edges */
    border: none; 
    cursor: pointer; 
    display: inline-flex; /* Aligns Icon with Text */
    align-items: center; /* Centers Content */
    gap: 5px; /* Spacing between text and icon */
  }

  /* Responsive Design */
@media screen and (max-width: 768px) {
    header{
        flex-wrap: wrap;
        justify-content: space-between;
    /* padding: 15px 2%;*/
    }
    .logo img {
        height: 50px;
        width: 50px;
    }

    .search-box {
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
    }

    .menu-toggle{
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        margin-left: 22px;
        background: white;
        width: 190px;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        width: 100%;
        text-align: center;
    }

    #nav-menu li a {
        display: block;
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .search-box {
        max-width: 250px;
    }
}

/* Hero Section */
.hero {
    background: url('bg\ homepage.jpeg') no-repeat center center;
    background-size: cover;  /* Ensures it covers the section */
    min-height: 100vh;
    height: 100vh;  /* Makes sure it takes full screen height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-attachment: scroll;  /* Allows scrolling */
}


/* For smaller screens */
@media (max-width: 768px) {
    .hero {
        background-size: contain; /* Ensures the full image is visible */
        background-position: center;
        background-repeat: no-repeat;
        height: auto; /* Allows content to determine height */
        min-height: 70vh; /* Adjust as needed */
    }
}

.hero-content {
    font-size: 3rem; /* Adjust size as needed */
    font-weight: bold;
    text-align: left;
    width: 100%; /* Ensures it stretches across */
    padding-left: 50px; /* Adjust for spacing from the left */
    opacity: 0;
    transform: translateY(-50px); /*moves up slightly*/
    animation: fadeInDown 1.5s ease-out forwards;

}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform:translateY(0);
    }
    
}
.purple{ color: #800080;}
.orange { color: orange; }
.italic { font-style: italic; }
.bold { font-weight: bold; }

/* For tablets */
@media (max-width: 768px) {
    .hero-content {
        font-size: 2rem; /* Smaller font for medium screens */
        padding-left: 30px;
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .hero-content {
        font-size: 1.2rem; /* Even smaller font for small screens */
        padding-left: 10px;
        text-align: center;
    }
}

/* Course Section */
.courses {
    height:80vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content:center;
    padding: 20px;
       /* position: sticky; 
        top: 50 px;*/
        background: white;
        z-index: 999;
    
}
.course-buttons {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 20px;
   /* padding: 10px;
    max-width: 100%;
    white-space: nowrap;
        font-size: 1.2rem; /* Increase text size */
       /* padding: 15px 30px; /* Adjust button size */
    
}
.course-buttons a{
    padding:20px 40px;
    font-size: 1.5rem;
    border-radius:10px;
}

.course-btn {
    display: flex; /* align icon and text vertically */
    flex-grow:1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 20px; 
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    width: 250px;
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color:#222;
}
a{
    text-decoration: none;
}
.course-btn:nth-child(n)
{min-width: 200px;}

 /*icon styling */
 .course-btn i {
    font-size: 1.8 rem;
    margin-bottom: 5px;
    color:white;
 } 
 /*button colors */
.tech { background:#319eeb; color: white; }
.business { background: rgb(140, 238, 123); color: white; }
.languages { background: #ff66c4; color:white; }

/*hover effect */
.course-btn:hover{
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}


/* Explore More Button */
.btn-explore {
    text-decoration: none;
    background: linear-gradient(90deg, #fdeb85, #f8a4d8); /* Gradient Colors */
    color: white; /* Text Color */
    font-weight: bold; /* Bold Text */
    padding: 10px 20px; /* Button Padding */
    border-radius: 20px; /* Rounded Edges */
    border: none; /* No Border */
    cursor: pointer; /* Pointer Cursor */
    display: inline-flex; /* Aligns Icon with Text */
    align-items: center; /* Centers Content */
    gap: 5px; /* Spacing between text and icon */
    margin-top: 30px;
  }
  
  .btn-explore:hover {
    opacity: 0.9; /* slightly fades on hover*/
    transform: scale(1.05);/*small zoom effect*/
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);/*soft shadow*/
  }
  
/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.social-icons {
    display:flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}
.social-icons a {
    color: white;
    font-size: 25px;
    text-decoration: none;
    transition: 0.3s ease;
}
.social-icons a:hover {
    color: #ffcc00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/*about us page styles*/
.about-us nav {
    position: fixed;
    top:0;
    left:0;
    padding: 15px 40px;
    width:100%;
    background: white;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
 }
 .about-us header {
     padding: 0;
     margin: 0;
 }
 .about-container {
     border-radius: 10px;
     display: flex;
     flex-direction: column; /* Stacks items vertically(mobile) */
     align-items: center; 
     text-align: center;
     justify-content: center; 
     max-width: 900px; /*better readability*/
     margin: auto; /*centers content*/
     padding: 20px 40px; /*adds space inside container*/
     line-height: 1.6;
     opacity:0;
     transform: translateY(20px);
     animation:fadeIn 0.8s ease-in-out forwards;
     gap:20px;
     min-height: 100vh;
 }
 @media (max-width: 768px){
     .about-container{
         flex-direction: column; 
         text-align: center;
         justify-content: space-between;
     }
 }
 @keyframes fadeIn {
     from{
         opacity: 0;
         transform: translateY(20px);
     }
     to {
         opacity: 1;
         transform:translateY(0);
     }
   }
 
 .about-us { 
     flex: 1;
     min-height:100vh;
     display: flex;
     flex-direction:column;
     background: #e3f2fd; /*light blue for softer look*/
     background-size: cover; /* Ensures it covers the full screen */
     min-height: 100vh; /* Full page height */
     width: 100%; 
     padding: 50px 20px;
     padding-top: 140px;
 }
 
 .about-page {
     font-family: 'poppins', sans-serif;
     color:#333;
 }
 /*adding content box for better readability*/
 .container{
     flex:1;
     flex-grow: 1;
     text-align: center;
     max-width: 80%;
     margin: auto;
     background: white;
     padding: 20px;
     padding-bottom: 50px;
     border-radius: 10px;
     min-height: calc(100vh - 100px);
     box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
 }
 .about-us h1,
 .about-us h2 {
     font-family: 'poppins', sans-serif;
     font-weight: 700;
     font-size: 2rem;
     color: #0d47a1;
     margin-bottom: 10px;
     text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
     text-align: center;
     width:100%;
 }
 p{
     font-size: 18px;
     line-height: 1.8; /*adds spacing between lines */
     color:#333;
     text-align: center;
     margin-bottom: 20px;
 }
 p2{
     font-size: 18px;
 font-style: sans-serif;
 }
 .about-image {
     position: relative;
     display: inline-block;
     max-width: 100%;
     height:auto;
 }
 .about-image img {
     max-width: 700px;
     height: auto;
     display: block; /* Prevents weird spacing */
     margin: 0 auto; /* Centers image */
     box-shadow: 0px 4px 10px rgba(172, 222, 239, 0.7);
 }
 /* Text on Image */
 .image-text {
     position: absolute;
     bottom: 5%;
     left: 50%;
     transform: translateX(-50%);
     padding: 10px 0px;
     font-style: 'sans-serif';
     font-size: 25px;
     font-weight: bold;
     width:100%;
     text-align: center;
     white-space: normal;
     line-height: 1.4;
     word-wrap: break-word;
 }
 
 /* Smarter → Bold & Blue */
 .bold-blue {
     color: #007bff; /* Blue */
     font-weight: 900;
 }
 
 /* Stress-Free → Green & Italic */
 .italic-green {
     color: #28a745; /* Green */
     font-style: italic;
 }
 .black-text{
     color:black;
 }
 .about-footer {
     text-align: center;
     padding: 15px;
     background: #2c3e50; /* Dark background */
     color: white;
     font-size: 18px;
     width: 100%;
     position:relative;
     margin-top: auto;
 }
 
 /* Ensure images scale properly */
 .about-image img {
     max-width: 100%;
     height: auto;
     display: block; /* Prevents weird spacing */
     margin: 0 auto; /* Centers image */
 }
 
 /* Fix overlapping text on smaller screens */
 @media (max-width: 768px) {
     .about-container {
         flex-direction: column; 
         text-align: center;
         padding: 20px; /* Adjust spacing */
     }
 .about-us{
    padding-top: 80px;
 }
     .about-us h1,
     .about-us h2 {
         font-size: 1.5rem; /* Adjusts text size for smaller screens */
     }
 
     p {
         font-size: 16px; /* Slightly smaller font for better readability */
         line-height: 1.5;
     }
 
     .container {
         max-width: 95%; /* Makes the content fit better */
         padding: 15px;
     }

     nav ul{
        display: block !important;
        position: relative;
        background: white;
     }

     about-us nav ul li{
        display: block;
        margin: 10px 0;
     }
 }
 /* Adjust text size and position for small screens */
 @media (max-width: 768px) {
     .image-text {
         font-size: 14px; /* Smaller text for smaller screens */
         bottom: 5px; /* Moves text up slightly */
         padding: 3px 8px; /* Adjusts spacing */
         width: 95%;
     }
 }
 /* Extra Fix for Small Screens */
 @media (max-width: 400px) {
     .image-text {
         bottom: 8%; /* Moves text slightly up */
         width: 85%; /* Expands text area */
         font-size: 13px; /* Ensures readability */
         padding: 5px 8px; /* Adjusts padding */
     }
 }
 