* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body {
    background: #080808;
    color: #fff;
    overflow-x: hidden;
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/bhav.png);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
    width: 100%;
    max-width: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}

/* -------------about------------ */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #b54769;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/*--------service-------*/
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}

/*--------courses & certifications--------*/
#courses {
    padding: 50px 0;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.courses-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.courses-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.courses-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.courses-list div a {
    text-decoration: none;
    color: #fff;
    margin-top: 20px;
    display: inline-block;
}

.courses-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
}
/* Removed absolute positioning - using grid flow instead */


/*-------portfolio--------*/
#portfolio {
    padding: 50px 0;
}

/* Portfolio page navigation */
.portfolio-nav {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.portfolio-nav .container {
    display: flex;
    align-items: center;
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 0, 79, 0.4);
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 0, 79, 0.08);
}

.back-link:hover {
    background: #ff004f;
    border-color: #ff004f;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* Portfolio subtitle */
.portfolio-subtitle {
    color: #ababab;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px 25px;
    text-align: center;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}

.layer p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

/* Hide full description by default */
.layer .full-description {
    display: none;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.95);
}

/* Show full description when active */
.layer .full-description.show {
    display: block;
}

/* See more button styling */
.see-more-button {
    background: #fff;
    color: #ff004f;
    border: 2px solid #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin: 12px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-more-button:hover {
    background: transparent;
    color: #fff;
}

.layer > a {
    margin-top: 12px;
    color: #ff004f;
    text-decoration: none;
    font-size: 16px;
    line-height: 50px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.layer > a:hover {
    background: #ff004f;
    color: #fff;
    transform: scale(1.1);
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #ff004f;
}
/* Removed absolute positioning - using grid flow instead */

/*-------------contact----------*/
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
}

.contact-rightform {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i {
    color: #ff004f;
}

/*--------------css for small screen----------*/
nav .fas {
    display: none;
}

/* Initially hide both icons */
.fa-bars, .fa-xmark {
    display: none;
}

/* See more buttons - proper positioning */
.btn-see-more {
    grid-column: 1 / -1;
    margin: 20px auto;
    text-align: center;
}

/* Tablet breakpoint */
@media only screen and (max-width: 900px) {
    .container {
        padding: 10px 5%;
    }
    
    .sub-title {
        font-size: 45px;
    }
    
    .header-text {
        font-size: 22px;
    }
    
    .header-text h1 {
        font-size: 45px;
    }
    
    .about-col-1 {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .about-col-2 {
        flex-basis: 100%;
    }
    
    .services-list,
    .courses-list,
    .work-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        grid-gap: 25px;
    }
    
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
    
    .contact-left {
        margin-bottom: 30px;
    }
}

/* Mobile breakpoint */
@media only screen and (max-width: 601px) {
    .container {
        padding: 10px 15px;
    }
    
    .fa-bars {
        display: block;
        font-size: 25px;
        cursor: pointer;
        color: #fff;
    }
    
    .fa-xmark {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 25px;
        cursor: pointer;
    }
    
    #header {
        background-image: url(images/PicsArt.png);
    }

    .header-text {
        margin-top: 60%;
        font-size: 14px;
    }

    .header-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .header-text p {
        font-size: 14px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 100;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    
    .logo {
        width: 100px;
    }
    
    .sub-title {
        font-size: 30px;
    }
    
    #about {
        padding: 50px 0;
    }
    
    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
    }
    
    .about-col-1 img {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto;
    }
    
    .about-col-2 {
        font-size: 14px;
    }
    
    .about-col-2 p {
        text-align: justify;
    }
    
    .tab-titles {
        flex-wrap: wrap;
        gap: 10px;
        margin: 15px 0 25px;
    }
    
    .tab-links {
        font-size: 14px;
        margin-right: 15px;
    }
    
    .tab-contents ul li {
        font-size: 13px;
    }
    
    /* Services section mobile */
    #services {
        padding: 30px 0;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .services-list div {
        padding: 25px;
    }
    
    .services-list div h2 {
        font-size: 22px;
    }
    
    .services-list div i {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    /* Courses section mobile */
    #courses {
        padding: 30px 0;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .courses-list div {
        padding: 25px;
    }
    
    .courses-list div h2 {
        font-size: 22px;
    }
    
    .courses-list div i {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    /* Portfolio section mobile */
    #portfolio {
        padding: 30px 0;
    }
    
    .portfolio-nav {
        padding: 15px 0;
    }
    
    .back-link {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .portfolio-subtitle {
        font-size: 14px;
    }
    
    .work-list {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    
    .work {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    
    .layer {
        padding: 15px 20px;
    }
    
    .layer h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .layer p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .layer .full-description {
        font-size: 11px;
        padding: 8px;
    }
    
    .see-more-button {
        padding: 6px 16px;
        font-size: 11px;
        margin: 10px 0;
    }
    
    .layer > a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    /* Contact section mobile */
    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }
    
    .contact-left {
        margin-bottom: 40px;
    }
    
    .contact-left p {
        font-size: 14px;
        word-break: break-word;
    }
    
    .contact-left p i {
        font-size: 20px;
    }
    
    .social-icons a {
        font-size: 24px;
        margin-right: 12px;
    }
    
    form input,
    form textarea {
        padding: 12px;
        font-size: 14px;
        margin: 10px 0;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .btn.btn2 {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
        padding: 20px 10px;
    }
    
    .row {
        gap: 20px;
    }
}

/* Extra small devices */
@media only screen and (max-width: 400px) {
    .header-text {
        margin-top: 50%;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    .sub-title {
        font-size: 26px;
    }
    
    .tab-links {
        font-size: 13px;
        margin-right: 10px;
    }
    
    .services-list div h2,
    .courses-list div h2 {
        font-size: 18px;
    }
}
#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}
body {
    transition: opacity 0.7s ease;
}

/* Optionally, you can style the loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
}
/* Define the fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Apply the fade-in animation to the elements */
.work {
    animation: fadeIn 0.75s ease-in-out;
}
/* Transition effect for the body */
body {
    transition: opacity 0.5s ease;
}

/* Animation effect for course items */
.course {
    animation: fadeInUp 1s ease;
}
body.portfolio {
    /* Set the background image */
    background-image: url('images/background3.png');
    /* Set background size to cover the entire viewport */
    background-size: cover;
    /* Repeat the background image vertically and horizontally */
    background-repeat: no-repeat;
    /* Center the background image */
    background-position: center;
    /* Optional: Add some padding */
    padding: 20px;
}
body.courses {
    /* Set the background image */
    background-image: url('images/background3.png');
    /* Set background size to cover the entire viewport */
    background-size: cover;
    /* Repeat the background image vertically and horizontally */
    background-repeat: no-repeat;
    /* Center the background image */
    background-position: center;
    /* Optional: Add some padding */
    padding: 20px;
}



