* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

/* ================================= Header ========================================== */
header {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    background-color: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #14b8a6;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.btn.login {
    background: transparent;
    border: 2px solid #14b8a6;
    color: #14b8a6;
}

.btn.login:hover {
    background-color: #14b8a6;
    color: white;
}

.btn.signup {
    background-color: #14b8a6;
    color: white;
    border: 2px solid #14b8a6;
}

.btn.signup:hover {
    background-color: #0d9488;
}

/* ========================================= Main Section ============================================ */
main {
    display: flex;
    flex-direction: column;
}

/* ========================================= Landing Section ========================================= */
.landing-section {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
    background-color: #f1f5f9;
}

/* ========================================= Left Side ============================================= */
.left {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.caption {
    color: #475569;
    font-size: 1rem;
    margin-bottom: 8px;
}

.left h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #0f172a;
}

.left h2 span {
    color: #14b8a6;
}

.coming {
    font-size: 1rem;
    color: #334155;
    margin-top: 8px;
}

/* =========================================== Center =================================================== */
.center {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 320px;
    height: 280px;
    background: #0f172a;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-screen {
    width: 100%;
    height: 100%;
    background-color: #0e0e0e;
    border-radius: 20px;
    padding: 15px;
    color: #9ef2c6;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
    line-height: 1.45;
}

.code-text {
    display: inline-block;
    white-space: pre;
    overflow: hidden;
    animation: typing 6.5s steps(80, end) infinite alternate;
    width: 0;
}

@keyframes typing {
    0% { width: 0; }
    100% { width: 100%; }
}

/* =========================================== Right Side ============================================== */
.right-side { 
    flex: 0.8; 
    min-width: 200px; 
}

.right-side ul {
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    font-size: 1rem;
}

.right-side li { 
    color: #334155; 
    cursor: pointer; 
    transition: 0.3s; 
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.right-side li a {
    text-decoration: none; 
    color: #334155;        
    transition: 0.3s;
}

.right-side li a:hover {
    color: #14b8a6;
    transform: translateX(5px);
}

.right-side li:hover { 
    color: #14b8a6; 
    transform: translateX(5px);
}

/* ===================================== Course Section ======================================= */
.course {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
}

.course-heading {
    text-align: center;
    margin-bottom: 40px;
}

.course-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.course-heading span {
    color: #14b8a6;
}

/* ==================== Course Card ==================== */
.course-card {
    max-width: 900px;
    margin: 0 auto 40px auto; 
    background-color: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.3);
}

.card-img {
    flex: 1;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.course-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    flex: 1.5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 10px;
}

.card-content .button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.remaining-content .instructor {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.remaining-content .desc {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ====================== Instructor Section ====================== */
.instructors {
    padding: 60px 20px;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.instructor-heading {
    margin-bottom: 50px;
}

.instructor-heading h3 {
    font-size: 1.8rem;
    color: #0f172a;
}

.instructor-heading span {
    color: #14b8a6;
}

.instructor-carousel {
    display: flex;
    width: 100%; 
    transition: transform 1s ease;
    animation: slider 10s infinite;
    gap: 30px;
}

.instructor {
    min-width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-shrink: 0;
    padding: 0 20px;
}

.inst-img img {
    width: 200px;
    height: auto;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
    transition: transform 0.4s ease;
}

.inst-img img:hover {
    transform: scale(1.05);
}

.instructor-details {
    flex: 1;
    text-align: center;
    max-width: 300px;
}

.instructor-details .name h2 {
    font-size: 1.6rem;
    color: #14b8a6;
    margin-bottom: 10px;
}

.tag-light, .tag-dark {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-light span {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tag-dark span {
    background: rgba(20, 184, 166, 0.25);
    color: #1e293b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.inst-desc p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    text-align: justify;
}

@keyframes slider {
    0%, 45% { 
        transform: translateX(0); 
    }

    50%, 95% { 
        transform: translateX(-110%); 
    }

    100% { transform: translateX(0); }
}

/* ========================================== Placement Support ====================================== */
.placement {
    background-color: #f1f5f9;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
}

.placement-heading {
    margin-bottom: 40px;
}

.placement-heading h3 {
    font-size: 2rem;
    color: #0f172a;
}

.placement-heading h3 span {
    color: #14b8a6;
}

/* ========================================= Slider ================================================= */
.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 120px;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: slide 20s linear infinite;
}

.slider-item {
    flex: 0 0 auto;
    width: 150px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin: 0 10px;
}

.slider-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.2);
}

.slider-item img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* ========================================= Contact Section ========================================= */
.contact {
    width: 100%;
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Contact-heading {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.Contact-heading h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.Contact-heading h3 span {
    color: #14b8a6;
}

.contact-content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

/* ========================================= Left Side ========================================= */
.email-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-img img {
    max-width: 250px;
    height: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.1);
}

/* ========================================= Right Side ========================================= */
.contact form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.1);
    border: 1px solid #e2e8f0;
}

.contact label {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    color: #334155;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.contact .submit-btn {
    padding: 12px 25px;
    background-color: #14b8a6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact .submit-btn:hover {
    background-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

.contact .submit-btn:active {
    transform: translateY(0);
}

/* ========================================= Footer Section ========================================= */
footer {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 60px 20px 20px;
}

.footer {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.left-footer {
    flex: 1;
}

.left-footer .brand h2 {
    font-size: 1.8rem;
    color: #14b8a6;
    margin-bottom: 15px;
    font-weight: 700;
}

.left-footer .brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
    margin-inline: auto;
}

.social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social a:hover {
    background-color: #14b8a6;
    transform: translateY(-3px);
}

.social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.center-footer {
    flex: 1;
}

.center-footer h3 {
    font-size: 1.2rem;
    color: #14b8a6;
    margin-bottom: 15px;
    font-weight: 600;
}

.center-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.center-footer li {
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.center-footer li:hover {
    color: #14b8a6;
    transform: translateX(5px);
}

.center-footer li a {
    text-decoration: none; 
    color: #94a3b8;        
    transition: all 0.3s ease;
}

.center-footer li a:hover {
    color: #14b8a6;
    transform: translateX(5px);
}

.right-footer {
    flex: 1;
}

.right-footer h3 {
    font-size: 1.2rem;
    color: #14b8a6;
    margin-bottom: 15px;
    font-weight: 600;
}

.right-footer p {
    color: #94a3b8;
    line-height: 1.6;
    max-width: 300px;
    margin-inline: auto;
}

/* ======================================== Copyright =============================================== */

.right-reserverd {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ========================================= Responsiveness ========================================= */

@media (max-width: 600px) {
    .instructor-carousel {
        flex-direction: column;
        animation: none; 
        transform: none;
        gap: 50px;
    }

    .instructor {
        min-width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
    }

    .inst-img img {
        width: 150px; 
        height: auto;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
    }

    .instructor-details {
        max-width: 90%; 
        margin-top: 10px;
    }

    .inst-desc p {
        text-align: center; 
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .tag-light span,
    .tag-dark span {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}


@media (min-width: 768px) {
    header {
        padding: 15px 40px;
    }

    .landing-section {
        flex-direction: row;
        padding: 60px 40px;
    }

    .left h2 {
        font-size: 2rem;
    }

    .phone-screen {
        width: 350px;
        height: 320px;
    }

    .course-card {
        flex-direction: row;
    }

    .contact-content {
        flex-direction: row;
    }

    .instructor {
        flex-direction: row;
    }

    .inst-img img {
        width: 320px; 
        height: auto;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
    }
}

@media (min-width: 1024px) {
    header {
        padding: 15px 60px;
    }

    .landing-section {
        padding: 80px 60px;
    }

    .left h2 {
        font-size: 2.3rem;
    }

    .phone-screen {
        width: 400px;
        height: 350px;
    }

    .course-card {
        flex-direction: row;
    }

    .instructors {
        padding: 100px 80px;
    }

    .inst-img img {
        width: 320px; 
        height: auto;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
    }

    .contact-content {
        gap: 60px;
    }

    .footer {
        flex-direction: row;
        display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
    }
}
