* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

a{
    text-decoration: none;
}

:root {
    --primary: #0dcaf0;
    --secondary: #4a89dc;
    --accent: #ef7b01;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --bs-cyan: #0dcaf0;
    
}


/* header section */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    max-width: 1140px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    /* animation: slideInLeft 1s ease-out; */
}

.logo img {
    width: 150px;
    height: 60px;
}
/*  */
/* nav ul { */
    /* display: flex; */
    /* list-style: none; */
/* } */

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  position: relative;   /* remove absolute here */
  background: none;   /* transparent background */
  box-shadow: none;
}
/*  */
/* nav ul { */
    /* display: flex; */
    /* gap: 20px; */
/* } */

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

/* header end */
/* hero section start */

#hero{
    background-image:url("../images/banner-bg.png") ;
    height:800px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    align-items: top;
    justify-content: center;
    text-align: center;
    display: flex;
    position: relative;
}

/* #canvas { */
    /* width: 100%; */
    /* height: 800px; */
    /* position: absolute; */
    /* top: 100px; */
    /* left: 0; */
    /* z-index: 2; */
/* } */

.hero {
    max-width: 1140px;
    padding: 16px;
    margin: 0 auto;
    color: white;
    position: relative;
}

.row-hero{
    width: 100%;
    display: flex;
    align-items: end;
    margin-top: 70px;
}

.hero-content {
    width: 50%;
    animation: fadeInUp 1.2s ease-out;
}

.hero-imag{
    width: 50%;
}

.hero-imag img{
    width: 400px;
    height: 400px;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:var(--accent);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color:var(--dark);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* hero section end */

/* about section start */
.about {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding:80px 16px;
    background: white;
    
}

.about img {
    width: 50%;
    height: 400px;
    border-radius: 3px;
    flex-shrink: 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-content h2 {
    font-size: 35px;
    margin-bottom: 10px;
    color: #ef7b01;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color:var(--dark);
    font-size: 1rem;
    
}

.about-content button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

/* .about-content button:hover { */
    /* background:var(--primary); */
/* } */

/* about section end */

/* course section start */

.section {
    padding: 80px 16px;
    max-width:1140px;
    margin:0 auto;
}

#courses{
    background-color: #f8f9fa;
}

.section h2{
    font-size:40px;
    margin:0 0 8px;
    color: var(--accent);
    text-align: center;
}
.section p.lead{
    margin:0 0 28px;
    color:var(--dark);
    text-align: center;

}


.content {
      max-width: 800px;
      display: flex;
      flex-direction: column;
      text-align: center;
      gap: 20px;
      padding: 30px;
    }

    .heading {
      font-size: 2rem;
      font-weight: bold;
      color: #222;
    }

    .heading span {
      color:var(--accent);
    }

    .description {
      font-size: 1rem;
      color: #444;
      line-height: 1.6;
    }



#service{
      background-color:#e9ecef;
      padding: 80px 0px;
  }

.service_container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
}

.service_row{
  display: flex;
  gap: 38px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  position: relative;
  width: 31%;
  padding: 30px;
  border: 1px solid white;
  border-radius: 5px;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease-in-out;
}

.card:hover .overlay {
  transform: scaleX(1);
}

/* .icon { */
  /* display: flex; */
  /* justify-content: center; */
/* } */

.icon img{
  width: 100px;
  height: 100px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 15px;
}

.card p {
  font-size: 15px;
  color: #ccc;
}

.read_more {
  margin-top: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left-right;
  transition: transform 0.3s ease;
  z-index: 0;
}

.card_content {
  position: relative;
  z-index: 1;
}

.read_more a{
  text-decoration: none;
  color: var(--bs-cyan);
}


.read_more::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s;
  color: var(--bs-cyan);
}

.card:hover .read_more::after {
  transform: translateX(5px);
}



/* Grid */
.courses-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:20px;
}

/* Card */
.course-card{
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    min-height:320px;
    display:flex;
    flex-direction:column;
    box-shadow: 0 18px 40px rgba(16,24,40,0.12);
}

.course-card:focus-within,
.course-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(16,24,40,0.12);
}

.course-media{
    position:relative;
    height: 160px;
    overflow:hidden;
    flex-shrink:0;
}
.course-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition: transform var(--transition);
    transform-origin:center;
}

.course-card:hover .course-media img{
    transform: scale(1.06);
}

/* Overlay */
.overlay {
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(2,6,23,0.0) 0%, rgba(2,6,23,0.55) 70%, rgba(2,6,23,0.72) 100%);
    pointer-events:none; /* don't block clicks except for button area below */
    opacity:0;
    transition: opacity var(--transition);
}

.course-card:hover .overlay,
.course-card:focus-within .overlay{
    opacity:1;
}

/* Content area */
.course-body{
    padding:16px;
    display:flex;
    gap:12px;
    flex-direction:column;
    justify-content:space-between;
    flex:1 1 auto;
}

.course-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}
.badge{
    display:inline-block;
    padding:6px 10px;
    border-radius:999px;
    background:#eef6ff;
    color:var(--accent);
    font-weight:600;
    font-size:13px;
}
.duration{
    color:var(--muted);
    font-size:13px;
}

.course-title{
    margin:0 0 8px;
    font-size:18px;
    font-weight:700;
    line-height:1.2;
}
.course-desc{
    margin:0;
    color:var(--muted);
    font-size:14px;
    line-height:1.4;
}

.card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
}

.price{
    font-weight:700;
}

.enroll-btn{
    background:var(--accent);
    color:white;
    border:none;
    padding:8px 12px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.enroll-btn:active{ transform: translateY(1px); }

/* Show button area above overlay so it is clickable */
.enroll-wrap{
    margin-left:auto;
    position:relative;
    z-index:2;
    pointer-events:auto;
}

/* small details */
.small{
    font-size:13px;
    color:var(--muted);
}

/* Accessibility focus */
.course-card a:focus,
.enroll-btn:focus{
    outline:3px solid rgba(11,116,255,0.18);
    outline-offset:3px;
}

/* course section end */

/* media section start */

.media-section {
    padding: 80px 16px;
    max-width: 1140px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto;
}

.media-accordion {
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h3 {
    color: var(--accent);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.accordion-header h3 i {
    margin-right: 15px;
    color: var(--accent);
    font-size: 1.5rem;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--dark);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.media-item {
    flex: 1 1 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.media-info {
    padding: 1rem;
    background: white;
}

.media-info h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.media-info p {
    color: var(--dark);
    font-size: 0.9rem;
}

/* media section end */

/* features section start */
.features{
    padding: 5rem 5%;
    background: var(--light);
}

 .features-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    padding: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}


.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* features section end */

/* gallery section start */
.gallery-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 16px;
}

.gallery-title {
    text-align: center;
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    flex: 0 1 calc(25% - 20px);
    min-width: 250px;
    height: 300px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.gallery-item:hover::after {
    opacity: 1;
}

 /* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close:hover {
    color: #ff6b6b;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}
/* gallery section end*/

/* footer top section */
.footer-cta {
    background: linear-gradient(135deg, white 10%, var(--dark) 150%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: black;

}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-primary {
    background: transparent;
    color:var(--accent);
    border: 2px solid white;

}

.cta-secondary {
    background: transparent;
    color:var(--accent);
    border: 2px solid white;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* footer top end */



 /* Footer */
footer {
    background: black;
    color: white;
    padding: 4rem 5%;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 16px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-column p, .footer-column li {
    color: #adb5bd;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* footer end  */

/* animation start*/

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
}
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* animation start end*/


@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }

    /* nav ul { */
        /* display:block; */
    /* } */
}

@media (max-width: 768px) {
    /* nav ul { */
        /* display: none; */
    /* } */
    /*  */
    .mobile-menu {
        display: block;
    }
    
    /* .hero { */
        /* height: 80vh; */
    /* } */

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        background-color:#f9f9f9;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        font-size: 20px;
        gap: 20px;
    }

    /* When active (on click) */
    nav ul.active {
        display: flex;
    }
    
    .hero h1 {
        /* padding: 0px 40px; */
        font-size: 1.1rem;
    }
    
    .hero p {
        font-size: 1rem;
        /* padding: 0px 40px; */
    }
    
    .accordion-body {
        flex-direction: column;
    }
    
    .media-item {
        flex: 1 1 100%;
    }

     .gallery-item {
        flex: 0 1 calc(50% - 20px);
        min-width: 200px;
        height: 200px;
    }

    .gallery-title {
        font-size: 2rem;
    }
    
    
    .service_row{
        flex-direction: column;
    }
    
    .service_row .card{
        width: 100%;
    }
}

@media (max-width: 576px) {

    .header-container {
        padding: 1rem 8%;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    .row-hero{
        flex-direction: column;
    }

    #hero{
    height:815px;
    background-position: bottom;
    background-size: cover;
    align-items: top;
    justify-content: center;
    text-align: center;
    display: flex;
    position: relative;
    }

    .hero-content {
        width: 100%;
        animation: fadeInUp 1.2s ease-out;
    }

    .hero-imag{
        width: 100%;
        margin-top: 60px;
    }

    .hero img {
        width: 250px;
        height: 250px;
    }

    .about{
        padding: 0px 16px 80px 16px;
    }


    .about img {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }

    .gallery-item {
        flex: 0 1 100%;
        height: 250px;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

.features-container {
    padding: 0px;  
}
}
    
