@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500&family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: 'Poppins', sans-serif;
    color: white;
    overflow-x: hidden;
}

.main {
    background-image: url(assets/background/bg.png.webp);
    height: 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.box {
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    height: 100vh;
    width: 100%;
    opacity: 0.65;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1200px; */
    margin: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* darkened for better visibility */
    padding: 15px 20px;
    position: relative;
    z-index: 10;
    border-radius: 0 0 10px 10px;
}

nav .top-logo svg {
    width: 140px;
    fill: #e50914;
    /* Netflix Red */
}

/* Toggle Menu */
.toggle-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 20;
}

.toggle-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.toggle-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.toggle-menu.active span:nth-child(2) {
    opacity: 0;
}

.toggle-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.right-button ul {
    display: flex;
    align-items: center;
    column-gap: 20px;
    list-style: none;
}

.right-button ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: color 0.3s;
}

.right-button ul li a:hover {
    color: #b3b3b3;
}

.btn {
    background-color: #e50914;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #f40612;
}

.top-btn {
    padding: 7px 17px;
    font-weight: 500;
}

/* Content Section */
.contant {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 20px;
    height: calc(100vh - 100px);
}

.contant h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 0px;
    max-width: 800px;
}

.contant p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.email {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 700px;
}

.email input {
    flex: 1;
    min-width: 250px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    padding: 0 15px;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    color: white;
}

.email input::placeholder {
    color: #c7c7c7;
}

.content-btn {
    height: 50px;
    padding: 0 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.line {
    width: 100%;
    height: 8px;
    background-color: #222;
}

/* Sections */
section {
    padding: 70px 20px;
}

.sec-box,
.second-box,
.fourth-box {
    /* consolidated classes */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 50px;
    flex-wrap: wrap;
    /* Important for responsiveness */
}

.second-box {
    flex-direction: row-reverse;
    /* Alternate layout */
}

.sec-content,
.second-content,
.fourth-content {
    flex: 1;
    min-width: 300px;
}

.sec-content h2,
.second-content h2,
.fourth-content h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.sec-content p,
.second-content p,
.fourth-content p {
    font-size: 1rem;
    text-align: justify;
}

.sec-image,
.second-image,
.fourth-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
}

.sec-image img,
.second-image img,
.fourth-image img {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.sec-image video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 73%;
    /* Adjusted for relative sizing */
    z-index: 1;
}

/* FAQ Section */
.fifth-section {
    padding: 70px 20px;
    text-align: center;
}

.fifth-box {
    max-width: 800px;
    margin: 0 auto;
}

.fifth-top h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.fifth-item {
    background-color: #303030;
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.fifth-item:hover {
    background-color: #404040;
}

.fifth-item.active svg {
    transform: rotate(45deg);
}

.fifth-item svg {
    transition: transform 0.3s ease;
}

.fifth-item h4 {
    font-size: 1.5rem;
    font-weight: 400;
}

.answer {
    /* For JS accordian if implemented */
    max-height: 0;
    overflow: hidden;
    background-color: #303030;
    margin-bottom: 1px;
    text-align: left;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s;
}

.answer.active {
    padding: 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

.fifth-email {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Footer */
footer {
    padding: 70px 20px;
    color: #757575;
    max-width: 1000px;
    margin: auto;
}

.ftr-top {
    margin-bottom: 30px;
}

.ftr-top a {
    color: #757575;
    text-decoration: none;
}

.ftr {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ftr-box span {
    display: block;
    margin-bottom: 10px;
}

.ftr a {
    color: #757575;
    text-decoration: none;
    font-size: 13px;
}

.ftr a:hover {
    text-decoration: underline;
}

/* Responsive Media Queries */
@media screen and (max-width: 960px) {
    .contant h1 {
        font-size: 2rem;
    }

    .sec-content h2,
    .second-content h2,
    .fourth-content h2,
    .fifth-top h2 {
        font-size: 2rem;
    }

    .sec-content p,
    .second-content p,
    .fourth-content p,
    .contant p {
        font-size: 1.125rem;
    }

    section {
        padding: 50px 20px;
    }

    .ftr {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {

    /* Mobile Menu */
    .toggle-menu {
        display: flex;
    }

    nav {
        padding: 8px 19px 0px 16px;
    }

    .right-button {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 9;
        text-align: center;
    }

    .right-button.active {
        transform: translateY(0);
    }

    .right-button ul {
        flex-direction: column;
        row-gap: 20px;
    }

    .sec-box,
    .second-box {
        flex-direction: column;
        text-align: center;
    }

    .second-box {
        flex-direction: column;
    }

    .sec-image video {
        width: 60%;
    }

    .email {
        flex-direction: column;
        align-items: center;
    }

    .email input {
        width: 100%;
        padding: 30px;
    }

    .content-btn {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .ftr {
        grid-template-columns: 1fr;
    }

    .contant h1 {
        font-size: 1.75rem;
    }
}

/* Result Container Styles */
.result-container {
    background-color: rgba(0, 0, 0, 0.85);
    /* Slightly darker than input */
    border: 1px solid #28a745;
    /* Success green border */
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 700px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-label {
    color: #28a745;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 10px;
    border-radius: 4px;
}

.result-link {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for URL */
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    flex-grow: 1;
}

.copy-icon-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #28a745;
}

.copy-icon-btn svg {
    width: 20px;
    height: 20px;
}