:root{
    --blue:#1259bf;
    --orange:#ff8a00;
    --green:#05a845;
    --yellow:#ffe600;
    --purple:#4c39a7;
    --dark:#0d1320;
    --light:#f7fbff;
    --text:#243247;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    overflow-x:hidden;
    background:#fff;
    color:var(--text);
}

/* ===================== */
/* CUSTOM SCROLLBAR */
/* ===================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--blue),var(--orange));
    border-radius:20px;
}

/* ===================== */
/* FLOATING SHAPES */
/* ===================== */

.bg-animation span{
    position:fixed;
    width:20px;
    height:20px;
    background:rgba(18,89,191,0.08);
    z-index:-1;
    animation:float 20s linear infinite;
    bottom:-150px;
    border-radius:50%;
}

.bg-animation span:nth-child(1){
    left:10%;
    width:70px;
    height:70px;
    animation-duration:16s;
}

.bg-animation span:nth-child(2){
    left:25%;
    width:20px;
    height:20px;
    animation-duration:10s;
}

.bg-animation span:nth-child(3){
    left:40%;
    width:40px;
    height:40px;
    animation-duration:18s;
}

.bg-animation span:nth-child(4){
    left:55%;
    width:80px;
    height:80px;
    animation-duration:24s;
}

.bg-animation span:nth-child(5){
    left:70%;
    width:35px;
    height:35px;
    animation-duration:12s;
}

.bg-animation span:nth-child(6){
    left:85%;
    width:60px;
    height:60px;
    animation-duration:17s;
}

@keyframes float{
    0%{
        transform:translateY(0) rotate(0deg);
        opacity:0;
    }

    10%{
        opacity:1;
    }

    100%{
        transform:translateY(-120vh) rotate(720deg);
        opacity:0;
    }
}

/* ===================== */
/* NAVBAR */
/* ===================== */

nav{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:999;
    padding:16px 7%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    backdrop-filter:blur(14px);
    background:rgba(255,255,255,0.75);
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo img{
    height:55px;
}

.logo h2{
    font-size:24px;
    color:var(--blue);
    font-weight:800;
}

nav ul{
    display:flex;
    gap:35px;
    list-style:none;
}

nav ul li a{
    text-decoration:none;
    color:var(--dark);
    font-weight:600;
    transition:0.4s;
    position:relative;
}

nav ul li a:hover{
    color:var(--orange);
}

nav ul li a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-8px;
    width:0%;
    height:3px;
    background:linear-gradient(to right,var(--blue),var(--orange));
    transition:0.4s;
}

nav ul li a:hover::after{
    width:100%;
}

.nav-btn{
    background:linear-gradient(135deg,var(--blue),var(--orange));
    color:#fff;
    padding:14px 26px;
    border-radius:40px;
    text-decoration:none;
    font-weight:700;
    transition:0.4s;
    box-shadow:0 10px 30px rgba(18,89,191,0.3);
}

.nav-btn:hover{
    transform:translateY(-3px);
}

/* ===================== */
/* HERO */
/* ===================== */

.hero{
    min-height:100vh;
    padding:40px 7% 100px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    background:
    radial-gradient(circle at top left, rgba(255,138,0,0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(18,89,191,0.16), transparent 30%),
    #fff;
}

.hero-left{
    flex:1;
}

.hero-tag{
    display:inline-block;
    background:rgba(18,89,191,0.1);
    color:var(--blue);
    padding:10px 22px;
    border-radius:40px;
    font-weight:700;
    margin-bottom:25px;
}

.hero h1{
    font-size:72px;
    line-height:1.1;
    margin-bottom:25px;
    color:var(--dark);
}

.hero h1 span{
    background:linear-gradient(to right,var(--orange),#ffb300);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    font-size:20px;
    line-height:1.8;
    max-width:700px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.primary-btn,
.secondary-btn{
    padding:18px 34px;
    border-radius:60px;
    text-decoration:none;
    font-weight:700;
    transition:0.4s;
}

.primary-btn{
    background:linear-gradient(135deg,var(--blue),var(--orange));
    color:#fff;
    box-shadow:0 20px 40px rgba(18,89,191,0.25);
}

.primary-btn:hover{
    transform:translateY(-5px);
}

.secondary-btn{
    border:2px solid var(--blue);
    color:var(--blue);
}

.secondary-btn:hover{
    background:var(--blue);
    color:#fff;
}

.hero-right{
    flex:1;
    position:relative;
}

.hero-card{
    background:#fff;
    padding:30px;
    border-radius:35px;
    box-shadow:0 30px 80px rgba(0,0,0,0.08);
    position:relative;
    overflow:hidden;
}

.hero-card::before{
    content:'';
    position:absolute;
    width:250px;
    height:250px;
    background:linear-gradient(var(--orange),transparent);
    border-radius:50%;
    top:-120px;
    right:-120px;
    opacity:0.2;
}

.hero-card img{
    width:100%;
    border-radius:20px;
    animation:floatCard 5s ease-in-out infinite;
}

@keyframes floatCard{
    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-15px);
    }
}

/* ===================== */
/* SECTION */
/* ===================== */

section{
    padding:110px 7%;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title h2{
    font-size:54px;
    margin-bottom:18px;
    color:var(--dark);
}

.section-title p{
    max-width:800px;
    margin:auto;
    font-size:18px;
    line-height:1.8;
}

/* ===================== */
/* FEATURES */
/* ===================== */

.features-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
}

.feature-card{
    background:#fff;
    padding:45px 35px;
    border-radius:30px;
    transition:0.5s;
    box-shadow:0 20px 50px rgba(0,0,0,0.05);
    position:relative;
    overflow:hidden;
}

.feature-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,rgba(18,89,191,0.06),rgba(255,138,0,0.06));
    opacity:0;
    transition:0.4s;
}

.feature-card:hover::before{
    opacity:1;
}

.feature-card:hover{
    transform:translateY(-12px);
}

.feature-icon{
    width:85px;
    height:85px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:#fff;
    margin-bottom:25px;
}

.blue{
    background:linear-gradient(135deg,var(--blue),#4d8dff);
}

.orange{
    background:linear-gradient(135deg,var(--orange),#ffb300);
}

.green{
    background:linear-gradient(135deg,var(--green),#0dd95f);
}

.purple{
    background:linear-gradient(135deg,var(--purple),#7159ff);
}

.feature-card h3{
    margin-bottom:18px;
    font-size:28px;
}

.feature-card p{
    line-height:1.9;
}

/* ===================== */
/* JOURNEY */
/* ===================== */

.journey{
    background:linear-gradient(to bottom,#f7fbff,#ffffff);
}

.timeline{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.step{
    background:#fff;
    border-radius:28px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,0.06);
    transition:0.4s;
}

.step:hover{
    transform:translateY(-10px);
}

.step-number{
    width:65px;
    height:65px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--blue),var(--orange));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    font-weight:800;
    margin-bottom:25px;
}

/* ===================== */
/* STATS */
/* ===================== */

.stats{
    background:linear-gradient(135deg,var(--blue),#001c4f);
    color:#fff;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

.stat-card{
    text-align:center;
}

.stat-card h3{
    font-size:62px;
    margin-bottom:10px;
}

.stat-card p{
    font-size:20px;
}

/* ===================== */
/* PROGRAMME */
/* ===================== */

.programme-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:35px;
}

.programme-card{
    border-radius:30px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 20px 50px rgba(0,0,0,0.06);
    transition:0.5s;
}

.programme-card:hover{
    transform:translateY(-10px);
}

.programme-top{
    padding:35px;
    color:#fff;
}

.grade1{
    background:linear-gradient(135deg,var(--blue),#3f84ff);
}

.grade2{
    background:linear-gradient(135deg,var(--green),#00d67b);
}

.grade3{
    background:linear-gradient(135deg,var(--orange),#ffbb00);
}

.programme-body{
    padding:35px;
}

.programme-body ul{
    list-style:none;
}

.programme-body ul li{
    margin-bottom:16px;
    position:relative;
    padding-left:28px;
}

.programme-body ul li::before{
    content:'✓';
    position:absolute;
    left:0;
    color:var(--green);
    font-weight:700;
}

/* ===================== */
/* CTA */
/* ===================== */

.cta{
    background:
    linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
    url('iq1.png');
    background-size:cover;
    background-position:center;
    text-align:center;
    color:#fff;
    border-radius:40px;
    margin:0 7% 120px;
    padding:100px 30px;
}

.cta h2{
    font-size:58px;
    margin-bottom:25px;
}

.cta p{
    max-width:800px;
    margin:auto;
    line-height:1.9;
    margin-bottom:35px;
    font-size:19px;
}

/* ===================== */
/* CONTACT */
/* ===================== */

.contact-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.contact-box{
    background:#fff;
    padding:50px;
    border-radius:35px;
    box-shadow:0 20px 50px rgba(0,0,0,0.06);
}

.contact-box h3{
    font-size:38px;
    margin-bottom:20px;
}

.contact-box p{
    line-height:1.9;
    margin-bottom:30px;
}

form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

input,
select,
textarea{
    padding:18px 22px;
    border-radius:18px;
    border:none;
    background:#f4f7fb;
    font-size:16px;
    outline:none;
}

textarea{
    min-height:140px;
    resize:none;
}

.submit-btn{
    background:linear-gradient(135deg,var(--blue),var(--orange));
    border:none;
    color:#fff;
    padding:18px;
    border-radius:18px;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:0.4s;
}

.submit-btn:hover{
    transform:translateY(-4px);
}

/* ===================== */
/* FOOTER */
/* ===================== */

footer{
    background:#091120;
    color:#fff;
    padding:80px 7% 40px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
}

.footer-grid h3{
    margin-bottom:25px;
}

.footer-grid ul{
    list-style:none;
}

.footer-grid ul li{
    margin-bottom:14px;
}

.footer-grid ul li a{
    color:#c8d0df;
    text-decoration:none;
}

.footer-bottom{
    margin-top:60px;
    text-align:center;
    padding-top:30px;
    border-top:1px solid rgba(255,255,255,0.1);
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media(max-width:1100px){

.hero{
    flex-direction:column;
}

.contact-wrapper{
    grid-template-columns:1fr;
}

.footer-grid{
    grid-template-columns:1fr 1fr;
}

.hero h1{
    font-size:58px;
}

}

@media(max-width:768px){

nav ul{
    display:none;
}

.hero{
    padding-top:30px;
}

.hero h1{
    font-size:44px;
}

.section-title h2{
    font-size:40px;
}

.cta h2{
    font-size:42px;
}

.footer-grid{
    grid-template-columns:1fr;
}

}
/* navbar code */

/* --- Global Variables & Reset Base --- */
:root {
  --primary-color: #0073e6;
  --primary-hover: #005bb5;
  --text-color: #333;
  --bg-color: #ffffff;
  --transition-speed: 0.3s;
}

/* --- Desktop Layout --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000; /* Ensures navbar stays on top of page content */
}

.logo img {
  height: 45px; /* Adjust based on your logo size */
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* UI Utility Classes */
.nav-btn {
  background: var(--primary-color);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px; /* Modern rounded look */
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-speed), transform 0.2s;
  display: inline-block;
}

.nav-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.burger {
  display: none;
}

.mobile-only {
  display: none;
}

/* --- Responsive Mobile Layout --- */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Animated Burger Icon styling */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above the dropdown overlay */
    padding: 0;
  }

  .burger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
  }

  /* Full Screen Overlay Dropdown Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%; /* Slide out covers 75% width of screen */
    max-width: 300px;
    background: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 40px;
    
    /* Elegant slide-out state (Hidden off-screen right) */
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
  }

  /* Active Menu State */
  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
  }

  .nav-links .nav-btn {
    margin-top: 15px;
    padding: 12px;
  }

  /* Morphing Burger into 'X' when open */
  .burger.toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
/* --- Updated Fixed Navbar --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent */
  
  /* Modern blur effect behind the nav */
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);

  /* Fixes navbar to the top */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box; /* Prevents padding from breaking 100% width */
  z-index: 1000; 
  
  /* Smooth shadow */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05); 
  transition: background var(--transition-speed), padding var(--transition-speed);
}

/* --- THE CRITICAL FIX --- */
/* Add this to your page body or main content container to prevent 
   the fixed navbar from overlapping your top section content. */
body {
  padding-top: 70px; /* Match this roughly to the height of your navbar */
}

/* --- Mobile Adjustment --- */
@media (max-width: 768px) {
  body {
    padding-top: 65px; /* Slightly smaller padding for mobile height */
  }

  .nav-links {
    /* Changes top from 0 to 100% so the mobile dropdown 
       opens perfectly *below* the fixed navbar */
    top: 100%; 
    height: calc(100vh - 65px); /* Fills remaining screen height */
    position: absolute; /* Relative to the fixed navbar */
    width: 100%;
    max-width: none;
    transform: translateY(-100%); /* Slides down from behind navbar */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}


.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Desktop: side by side */
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1;
}

/* Mobile: stack with image on top */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse; /* puts hero-right above hero-left */
    text-align: center;
  }

  .hero-right {
    margin-bottom: 20px;
  }

  .hero-right img {
    max-width: 100%;
    height: auto;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-buttons a {
    width: 80%;
  }
}


/* Ensure no element exceeds viewport width */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Fix navbar on mobile */
.navbar {
  max-width: 100%;
}

/* Ensure hero section fits mobile */
.hero {
  width: 100%;
  margin: 0;
  padding: 30px 5%; /* reduce side padding */
  box-sizing: border-box;
}

/* Prevent footer grid overflow */
.footer-grid {
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero, .navbar, .footer-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===================== */
/* FEEDBACK SECTION */
/* ===================== */

.feedback {
  padding: 100px 7%;
  background: linear-gradient(to bottom, #f7fbff, #ffffff);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.feedback-card {
  background: #fff;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  transition: 0.4s;
  text-align: center;
}

.feedback-card:hover {
  transform: translateY(-10px);
}

.feedback-card video {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

.feedback-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--blue);
}

.feedback-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

