/* General Product Section Styling */
.product {
    max-width: 1200px;
    margin: 100px auto;
    padding: 20px;
    background-color: #1f1f1f;
    color: #e8ffe8;
    border-radius: 8px;
    margin-top: 15%;
}

body {
    background-color: #1f1f1f;
}

/* Layout for Image and Details */
.product-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Image Load-in Animation Keyframes */
@keyframes imageLoadIn {
    0% {
        opacity: 0;
        transform: scale(1.1); /* Start slightly zoomed in */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* Settle to normal size */
    }
}

/* Image Column Styling */
.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px; /* Set a fixed max width */
    max-height: 400px; /* Set a fixed height */
    width: 500px; /* Ensure consistent width */
    height: 400px; /* Ensure consistent height */
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease; /* Smooth transition for the container */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Ensure starting opacity is 0 */
    animation: imageLoadIn 0.5s ease forwards; /* Apply animation when loading */
    animation-delay: 0.1s; /* Optional: Slight delay to enhance effect */
}

/* Details Column Styling */
.product-details {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%; /* Restrict the details section to half the width */
}

/* Toggle Links Positioned at the Top of Details */
.product-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

/* Toggle Instruction Styling */
.toggle-instruction {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 10px;
    font-style: italic;
    text-align: left;
}

/* Basic Styling for Selector Links */
.selector-link {
    color: #1e7d1e;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    position: relative;
}

/* Active Link with Underline and Background */
.selector-link.active {
    border-bottom: 2px solid #1e7d1e;
    color: #1e7d1e;
    font-weight: 700;
}

/* Hover Effect with Light Background and Scale */
.selector-link:hover {
    color: #50c878;
    transform: scale(1.05);
    font-weight: 700;
    background-color: rgba(46, 204, 113, 0.1); /* Subtle green background */
    padding: 8px 15px; /* Extra padding to emphasize effect */
    border-radius: 5px;
    margin: -5px;
}

/* Header and Description Styling */
#droneTitle {
    font-size: 2em;
    color: #1e7d1e;
    margin-bottom: 10px;
}

#droneDescription {
    font-size: 1.1em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-buttons .btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #1e7d1e;
    border: 2px solid #1e7d1e;
    font-size: 1.1em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-buttons .btn:hover {
    background-color: #1e7d1e;
    color: #1f1f1f;
}

/* Specifications Section */
.specs-section {
    margin-top: -10px;
    padding: 20px;
    background-color: #1e1d1d;
    color: #e8ffe8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.specs-section h3 {
    font-size: 1.8em;
    color: #1e7d1e;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Headers */
.spec-category-header {
    font-size: 1.3em;
    color: #1e7d1e;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #333;
    padding-bottom: 5px;
}

.spec-category-header:first-of-type {
    border-top: none; /* No border for the first header */
}

/* List Items */
.specs-section ul {
    list-style: none;
    padding: 0;
    color: #cccccc;
    font-size: 1.1em;
    margin: 0 auto;
    max-width: 800px;
}

.specs-section li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: flex-start;
}

.specs-section li::before {
    content: "•";
    color: #1e7d1e;
    font-size: 1.2em;
    margin-right: 10px;
    line-height: 1;
}


/* Adjusts Category Headers and List Items on Mobile */
@media (max-width: 768px) {
    .specs-section h3 {
        font-size: 1.5em;
    }
    .spec-category-header {
        font-size: 1.2em;
    }
    .specs-section li {
        font-size: 1em;
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-top {
        flex-direction: column;
        align-items: center;
    }

    .product-image,
    .product-details {
        width: 100%;
        text-align: center;
    }

    .product-selector {
        justify-content: center;
    }

    .specs-section ul {
        max-width: 100%;
    }
}

/* Responsive Product Section */
@media (max-width: 768px) {
    .product {
        margin: 50px auto; /* Reduced margin for mobile */
        padding: 15px;
        margin-top: 30%;
    }

    .product-top {
        flex-direction: column; /* Stack image and details */
        align-items: center;
        gap: 20px;
    }

    .product-image {
        width: 100%; /* Full width on mobile */
        max-width: 90%; /* Set max width for consistency */
        height: 35%; /* Allow image to adjust height */
        margin-bottom: 0px; /* Spacing between image and details */
    }

    .product-details {
        width: 100%; /* Full width on mobile */
        max-width: 90%; /* Keep consistent padding */
        text-align: center; /* Center align text */
    }

    .product-selector {
        justify-content: center; /* Center selector links */
    }

    .toggle-instruction,
    #droneDescription,
    .action-buttons .btn {
        font-size: 0.9em; /* Slightly smaller font for mobile */
    }

    .action-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Adjust gap for mobile */
        margin-top: 15px;
    }
}


/* Specifications Section */
@media (max-width: 768px) {
    .specs-section {
        padding: 15px;
        margin-top: 20px;
    }

    .specs-section h3 {
        font-size: 1.5em;
    }

    .spec-category-header {
        font-size: 1.1em;
    }

    .specs-section ul {
        max-width: 100%;
    }

    .specs-section li {
        font-size: 1em;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar .desktop-menu {
        display: none; /* Hide desktop menu on mobile */
    }

    .menu.active {
        transform: translateX(0); /* Slide in from left on mobile */
    }

    .menu ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .menu ul li {
        margin-bottom: 15px;
    }

    .menu ul li a {
        font-size: 1.5em;
        color: #1e7d1e;
        text-decoration: none;
    }

    .menu-icon {
        display: block; /* Show menu icon */
        cursor: pointer;
    }

    .close-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5em;
        color: #1e7d1e;
        cursor: pointer;
    }
}

/* Miscellaneous Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 0.9em; /* Slightly smaller base font */
    }

    /* Ensure footer content and spacing are mobile-friendly */
    footer {
        padding: 15px;
        font-size: 0.9em;
        text-align: center;
    }
}

/* Modal styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal content */
.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    height: 80%;
    background-color: #000;
}

/* Close button for modal */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Video iframe */
#media-iframe {
    width: 100%;
    height: 100%;
    border: none;
} 

/* General Modal Styling */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    z-index: 1000;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8f9fa; /* Light modal background */
    color: #1f1f1f; /* Dark text */
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 100%;
    height: 700px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.3);
}

/* Title in Modal (h1) */
#contactModal h1 {
    font-size: 2.5rem;  /* Matching hero title size */
    font-weight: 700;    /* Same font weight */
    margin-bottom: 20px; /* Consistent spacing */
    text-decoration: underline; /* Underlined for emphasis */
    color: #000000; /* Green heading */
    text-decoration-color: #1e7d1e; /* Matching underline */
}

/* Modal Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    cursor: pointer;
    color: #000000; /* Light text color */
}

.close-btn:hover,
.close-btn:focus {
    text-decoration: none;
    cursor: pointer;
}

/* Add margin around the reCAPTCHA container */
.recaptcha-group {
    margin: 15px 0; /* vertical spacing */
    display: flex;
    justify-content: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: auto; /* Makes sure the form grows with its content */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    background-color: #1f1f1f; /* Dark input background */
    border: 1px solid #1e7d1e; /* Green border */
    color: #e8ffe8; /* Light text */
    border-radius: 5px;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #218838;
}

/* Modal content - mobile responsive height */
@media (max-width: 768px) {
    .modal-content {
        height: 400px;  /* Adjust height specifically for mobile devices */
        max-height: 80%; /* Allow some flexibility for small screens */
    }
}
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        height: 300px; /* Adjust height further for smaller screens */
        max-height: 90%; /* Ensure modal stays within screen limits */
    }

    #contactModal h1 {
        font-size: 1.8rem; /* Smaller heading size */
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem; /* Slightly smaller text */
    }

    .submit-btn {
        padding: 10px; /* Reduce button padding */
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;  /* Remove border radius for full-screen look */
    }
}

/* Styling for the phone number at the top, aligned to the left */
.contact-phone {
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 15px;
    text-align: left; /* Align text to the left */
}

.contact-phone a {
    color: #1e7d1e; /* Green color for the phone link */
    font-weight: bold;
    text-decoration: none;
}

.contact-phone a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #50c878; /* Slightly lighter green on hover */
}

/* Logo Image */
.logo img {
    height: 110px; /* Adjust as needed */
    width: auto;
    transition: all 0.3s ease-in-out;
}









