/* Base Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Yantramanav', sans-serif;
    background-color: #000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #000;
    padding: 0 20px;
    height: 80px; /* Fixed height for the header */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

header img {
    max-width: 400px;
    max-height: 60px; /* To ensure it fits nicely within the header */
    height: auto;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;  /* Full viewport height on all devices */
    overflow: hidden;
    display: flex;
    align-items: center;  /* Vertically center the content */
    justify-content: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  /* Fill the entire hero section */
}

.hero iframe {
    box-sizing: border-box;
    width: 177.77777778vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Transparent Overlay for Video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    z-index: 1;
}

/* Hero Overlay Content */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    padding: 20px;
    z-index: 2;
    width: 90%;
    box-sizing: border-box;
}

.hero-overlay h1 {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1;
}

.cta-button {
    display: inline-block;
    background-color: #f18519; /* New button color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d47014;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between icons */
}

.social-icons a img {
    width: 40px;   /* SVG icons scale perfectly */
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);  /* Normal brightness */
}

.social-icons a img:hover {
    transform: scale(1.1);  /* Slight zoom effect on hover */
    filter: brightness(0) invert(0.8); /* Darken slightly on hover */
    opacity: 0.9;
}

/* Subscribe Section */
.subscribe-section {
    background-color: #232730;
    max-height: 40%;
    padding: 80px 20px 100px 20px; /* Increased padding */
    text-align: left;
}

.subscribe-section-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section-container h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2em;
    margin-bottom: 10px;
}

.subscribe-section-container p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Sticky Footer */
footer {
    background-color: #000;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Pushes the footer to the bottom */
    width: 100%;
    font-size: 0.9rem;
}

/* Form Container */
.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;           /* Full width of parent container */
    box-sizing: border-box; /* Ensure padding doesn’t affect total width */
}

/* Input Field (Underline Style) */
.email-input {
    flex: 1;                /* Take up remaining space */
    background: transparent;
    border: none;
    border-bottom: 2px solid #ffffff;
    border-radius: 0;
    color: #ffffff;
    padding: 10px 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 0;           /* Prevents input from overflowing */
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.email-input:focus {
    border-bottom-color: #f18519;
}

/* Submit Button */
.subscribe-button {
    background-color: #555555;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    transition: background-color 0.3s ease, cursor 0.3s ease;
    font-weight: bold;
    white-space: nowrap;    /* Prevent button text from wrapping */
    flex-shrink: 0;         /* Prevent button from shrinking too small */
}

/* Active Button State */
.subscribe-button.active {
    background-color: #f18519;
    cursor: pointer;
}

.subscribe-button:hover:enabled {
    background-color: #d47014;
}

/* Form Response Message */
.form-response {
    margin-top: 10px;
    display: none;
}

.form-response.success {
    color: #ffffff;
}

.form-response.error {
    color: #ff3366;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 6vw; /* Responsive scaling based on viewport width */
        line-height: 1.2em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 4vw; /* Adjust button text size */
    }

    .social-icons a {
        font-size: 1.2rem;
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
    }

    header img {
        max-width: 250px;
        max-height: 50px;
    }

    .hero-overlay {
        padding: 10px;
    }

    .hero-overlay h1 {
        font-size: 8vw; /* Larger scaling for small screens */
        margin-bottom: 10px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 4.5vw;
        margin-bottom: 15px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a img {
        width: 30px;
        height: 30px;
    }

    .form-container {
        flex-direction: column; /* Stack input and button vertically on small screens */
        gap: 8px;
    }

    .email-input {
        width: 100%;            /* Full-width input field on mobile */
    }

    .subscribe-button {
        width: 100%;            /* Full-width button on mobile */
        text-align: center;
    }
}