/* Basic Reset */

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --accent-color: #ff2d75;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader-container img {
    width: 200px;
}
.slider{
    position: relative;
    /* when it added to program */
    margin: 100px auto;
    background: linear-gradient(to right,#2c5364,#0f2027);
    width:200px;
    height: 250px;
    transform-style: preserve-3d;
    animation: rotate 30s linear infinite;
    

}
@keyframes rotate{
    0%{
        transform: perspective(1000px) rotateY(0deg);
    }
    100%{
        transform: perspective(1000px) rotateY(360deg);
    }
}
.slider span {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateY(calc(var(--i)*45deg)) translateZ(350px);
}
.slider span img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: 2s;
    box-shadow:  1px 3px 15px rgba(113, 115, 119, 0.5);
    
}
.slider span:hover img{
  transform: translateY(-50px) scale(1.2);
  
}

ul{
    position: fixed;
    
    margin-left: 5%;
    margin-top: 20%;
    /* transform: rotate(-35deg) skew(20deg,5deg); */
}
.list-item{
    background: #2c3e50;
    color: #fff;
    text-align: center;
    height: 2.5em;
    width: 4em;
    line-height: 2.5em;
    border-bottom: 1px solid #06060606;
    position: relative;
    display: block;
    text-decoration: none;
    box-shadow: -2em 1.5em 0 #333;
    transition: all .25s linear;

}
.list-item a{
    color: #fff;
}
.list-item:hover{
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    color: #fffcfb;
    transform: translate(0.9em,-0.9em);
    box-shadow: -2em 2em 0 #333;

}
.list-item:hover::before,.list-item:hover::after{
    transition: all.25s #333;
}
.list-item:hover::before{
    background-color: #0ac;
    width: 1em;
    top: 0.5em;
    left:-1em
}
.list-item:hover::after{
    background: #0ac;
    width: 1em;
    bottom: -2.5em;
    left:1em;
    height: 4em;
}
.list-item::before,.list-item::after{
    content: '';
    position: absolute;
    transition: all .25s linear;
    width: 0.5em;

}
.list-item::after
{
    height: 4em;
    background-color: #181818;
    bottom: -2.25em;
    left: 1.5em;
    transform: rotate(90deg) skew(0,45deg);
}
.list-item::before
{
    height: 2.5em;
    background-color: #121212;
    top:0.25em;
    left:-0.5em;
    transform: skewY(-45deg);
}


.hero {
        background: var(--second-bg-color);
        color: var(--text-color);
        padding: 50px 20px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        margin-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 20px;
}
.features2{
    display: flex;
    justify-content: space-around;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    width: 30%;
    min-width: 250px;
    padding: 20px;
    background: var(--second-bg-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    border-top: 2px solid var(--main-color);
}
.feature img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}
.feature:hover img {
    transform: scale(1.05);
}
.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--main-color), 0 0 40px var(--accent-color);
}
.feature h2 {
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feature a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--second-bg-color);
    color: #fff;
}

        /* Section container */
        .section-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 40px;
            /* background-color: #fff; */
            margin: 20px;
            background: var(--second-bg-color);
            border-radius: 15px;
            box-shadow:  0 5px 15px rgba(0,0,0,0.3);
        }
        
        /* Image styles */
        .image-container {
            flex: 1;
            max-width: 45%;
        }

        .image-container img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        /* Text Box styles */
        .text-container {
            flex: 1;
            padding: 20px;
            margin-left: 20px;
            background-color: var(--bg-color);
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border: 2px solid var(--main-color);
        }

        .text-container h2 {
            background: linear-gradient(to right, var(--main-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            text-align: center;
        }

        .text-container p {
            color: var(--text-color);
            line-height: 1.6;
        }
        
        
        footer {
            background-color: black;
            color: #fff;
            padding: 30px 20px;
            text-align: center;
            margin-top: 1%;
        }

        footer .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        footer p {
            margin: 10px 0;
            font-size: 14px;
        }

        footer a {
            color: #fff;
            margin: 0 15px;
            text-decoration: none;
            font-size: 14px;
        }

        footer a:hover {
            text-decoration: underline;
        }

        footer .social-links {
            margin-top: 15px;
        }

        footer .social-links a {
            margin: 0 10px;
        }

        footer .footer-note {
            margin-top: 20px;
            font-size: 12px;
            color: #bbb;
        }

        /* Logo styling */
        footer .footer-logo {
            max-width: 200px;
            margin-bottom: 20px;
        }
        
        
        .slider-container {
            position: relative;
            width: 100%;
            max-width: 900px;
            margin: 50px auto;
            overflow: hidden;
            border-radius: 10px;
        }
        
        .slider-wrapper {
            display: flex;
            transition: transform 0.5s ease;
        }
        
        .slide {
            min-width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            padding: 20px;
            text-align: center;
        }
        
        .image-container img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        
        .text-container h2 {
            font-size: 28px;
            background: linear-gradient(to right, var(--main-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }
        
        .text-container p {
            font-size: 16px;
            color: var(--text-color);
            line-height: 1.6;
        }

/* Header / Navbar Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
   height:30px;

}
.logo1{
    height: 50px;
   
}
.navbar a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color), 0 0 20px var(--accent-color);
}

/* Course Module Styles (Video, Notes, Code) */
.course-module {
    background: var(--second-bg-color);
    margin: 40px 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.module-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    flex: 0 0 45%;
    width: auto;
    padding-bottom: 0;
    aspect-ratio: 16 / 9;
    height: fit-content;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--main-color);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.notes-section, .code-section {
    flex: 1;
    min-width: 300px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Wrapper for Video and Notes column in Web Course */
.video-notes-col {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notes-section h3, .code-section h3 {
    color: var(--main-color);
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--main-color);
    color: #1f242d;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.download-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-color);
}

.code-container {
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3a404d;
    padding: 8px 15px;
    color: #e0e0e0;
    font-size: 0.9rem;
    border-bottom: 1px solid #444;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.copy-btn:hover {
    color: var(--main-color);
}

.code-section pre {
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    background: #2d2d2d; /* Matches Prism Tomorrow */
    max-height: 300px;
    overflow-y: auto;
}

.pdf-preview {
    width: 100%;
    height: 400px;
    margin-top: 15px;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    background-color: #fff;
}

/* Responsive Styles using Media Queries */

/* For tablets and below (max width 768px) */
@media (max-width: 768px) {
    body{
        background: var(--bg-color);
    }
    .header {
        padding: 15px 5%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar a {
        margin-left: 20px;
        font-size: 16px;
    }
    .features,
    .features2 {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        width: 100%;
        margin-bottom: 20px;
    }

    .section-container {
    flex-direction: column;
    text-align: center;
}
    .image-container {
        max-width: 100%;
    }

   .text-container {
    margin-left: 0;
    margin-top: 20px;
}
.form-container {
    width: 80%; /* More responsive on smaller screens */
    padding: 20px;
}

.form-container button,
.form-container input {
    font-size: 14px; /* Adjust font size on smaller screens */
}

footer {
    padding: 20px 10px;
}

footer .footer-content {
    padding: 0 10px;
}

footer .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

footer .social-links a {
    margin: 10px 0;
}

footer p {
    font-size: 12px;
}

footer .footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
    
}

.form-container .form {
    padding: 10px;
}
form {
    width: 90%;
    padding: 20px;
}

/* button[type="submit"] {
    padding: 14px;
} */
.submit-btn {
    font-size: 14px;
    padding: 10px;
}

    .top-row {
        flex-direction: column;
    }
    .video-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        flex: 0 0 100%;
    }
    
    .video-notes-col {
        flex: 0 0 100%;
        width: 100%;
    }

}


/* For mobile devices (max width 480px) */
@media (max-width: 480px) {
    body{
        background: var(--bg-color);
    }
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    .navbar {
        margin-top: 10px;
        display: flex;
        gap: 15px;
        justify-content: center;
    }
    .navbar a {
        font-size: 14px;
        margin: 0;
    }

    .hero {
        padding: 30px 20px;
    }

    .features,
    .features2 {
        padding: 20px 10px;
    }

    .feature {
        width: 90%;
    }
    .form-container {
        width: 90%; /* Even smaller width for very small screens */
    }

    .form-container input {
        padding: 12px; /* Slightly bigger input fields on smaller screens */
    }

    .form-container button {
        padding: 12px; /* Larger buttons */
        font-size: 16px;
    }
    footer p {
        font-size: 11px;
    }

    footer .social-links a {
        font-size: 12px;
    }

    footer .footer-logo {
        max-width: 120px;
    }
    form{
        margin-left: 10px;
    }
    .submit-btn{
        margin-top: 340px;
    }
    .slider {
        transform: scale(0.7);
        margin: 50px auto;
    }
    
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Error Message Styling */
.alert {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 10px;
}

/* Password mismatch error shake animation */
input:invalid {
    animation: shake 0.3s ease-in-out;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        background-color: #007bff;
    }
    50% {
        transform: scale(1.1);
        background-color: #0056b3;
    }
    100% {
        transform: scale(1);
        background-color: #007bff;
    }
}

/* CyberNinjas Section Styles */
.cnj {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    margin: 20px;
    background: var(--second-bg-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    gap: 30px;
}

.cnj-logos {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.cnj-logos img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.cnj-logos img:hover {
    transform: scale(1.1);
}

.cnj .right {
    flex: 2;
}

.cnjh {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.cnj hr {
    border: 0;
    height: 2px;
    background: var(--main-color);
    margin: 10px 0 20px 0;
    width: 100px;
}

.cyberninjas-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.cyberninjas-text span {
    color: var(--main-color);
    font-weight: bold;
}

.cyberninjas-text strong {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .cnj {
        flex-direction: column;
        text-align: center;
    }
    
    .cnj-logos {
        margin-bottom: 20px;
    }
    
    .cnj hr {
        margin: 10px auto 20px auto;
    }
}

/* Contact Section Styles */
#contact {
    padding: 50px 0;
}

.sub-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-heading {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
}

.contact-text i {
    color: var(--main-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: 0.5s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: var(--second-bg-color);
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: 0.3s;
}

form input:focus, form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.btn.btn2 {
    display: inline-block;
    background: var(--main-color);
    color: #1f242d;
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid var(--main-color);
    transition: 0.5s;
    font-weight: 600;
}

.btn.btn2:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

#msg {
    color: #61b752;
    margin-top: 10px;
    display: block;
}

@media (max-width: 768px) {
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
}

/* Motivational Note Styles */
.motivational-note {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--second-bg-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-left: 5px solid var(--main-color);
    z-index: 1000;
    animation: slideIn 0.5s ease forwards;
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.motivational-note .note-content {
    flex: 1;
}

.motivational-note i {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.motivational-note p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.motivational-note .close-note {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: 0.3s;
}

.motivational-note .close-note:hover {
    color: var(--accent-color);
}