@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* --- 3D Glass Title Styles --- */
.title-wrapper {
    width: 100%;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 15px;
    z-index: 10;
    position: relative;
}

.glass-3d-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(240, 248, 255, 0.7); 
    text-shadow: 
        2px 2px 0 rgba(16, 198, 211, 0.6),
        4px 4px 0 rgba(10, 140, 150, 0.5),
        6px 6px 0 rgba(5, 90, 100, 0.4),
        8px 8px 15px rgba(0, 0, 0, 0.8);
    margin: 0;
    display: inline-block;
    padding: 10px 40px;
    border-radius: 20px;
    background: rgba(15, 25, 35, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- Accordion Styles --- */
.custom-accordion-container {
    margin-top: 10px;
    margin-left: 30px; /* INCREASED LEFT OFFSET HERE */
    max-width: 360px;
}
.accordion-item {
    background-color: transparent;
    border: none;
}
.custom-accordion-btn {
    background: rgba(15, 25, 35, 0.65);
    border: 2px solid rgba(16, 198, 211, 0.4);
    border-radius: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.custom-accordion-btn:hover {
    background: rgba(15, 25, 35, 0.85);
    border-color: rgba(16, 198, 211, 0.8);
    color: #ffffff;
    transform: translateY(-2px);
}
.custom-accordion-btn:not(.collapsed) {
    background: rgba(15, 25, 35, 0.85);
    color: #10c6d3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(16, 198, 211, 0.9);
}

.custom-accordion-btn::after { filter: invert(1) brightness(0.9); }
.custom-accordion-btn:not(.collapsed)::after { filter: invert(60%) sepia(100%) saturate(1000%) hue-rotate(140deg); }

.submenu-container {
    background: rgba(15, 25, 35, 0.55);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(16, 198, 211, 0.2);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.submenu-link {
    display: block;
    padding: 10px 15px;
    color: #dcdcdc;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.submenu-link:hover {
    background: rgba(16, 198, 211, 0.25);
    color: #ffffff;
}
.status-badge {
    font-size: 0.75em;
    color: #aaaaaa;
    font-weight: normal;
    float: right;
    margin-top: 3px;
}
.status-active { color: #10c6d3; font-weight: bold; }
.status-highlight { color: #ffb703; font-weight: bold; }

/* --- Glassmorphism Modal Styles --- */
.custom-modal-content {
    background: rgba(15, 25, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(16, 198, 211, 0.4);
    border-radius: 20px;
    color: #f0f0f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}
.custom-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.custom-modal-header .modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #10c6d3;
}
.custom-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
.custom-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #10c6d3;
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(16, 198, 211, 0.25);
}
.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.custom-submit-btn {
    background: linear-gradient(135deg, #10c6d3 0%, #0a8c96 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
}
.custom-submit-btn:hover {
    background: linear-gradient(135deg, #14dcf0 0%, #0c9ea8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 198, 211, 0.4);
    color: #fff;
}

.about-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dcdcdc;
}

/* Media Queries for responsive title */
@media (max-width: 768px) {
    .glass-3d-title { font-size: 2rem; padding: 8px 20px; }
    .custom-accordion-container { margin-left: 15px; } /* Slightly smaller offset for mobile */
}

.custom-navbar {
    background: linear-gradient(135deg, #71a3c1 0%, #5a8fb0 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 70px;
    padding: 12px 0;
}

.custom-navbar .container-fluid {
    position: relative;
    min-height: 46px;
}

.custom-navbar .navbar-brand {
    position: absolute;
    left: 1rem;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.custom-navbar .navbar-brand img {
    transition: transform 0.3s ease;
}

.custom-navbar .navbar-brand:hover img {
    transform: scale(1.1);
}

#main_title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 1px 0 #5a8fb0,
        0 2px 0 #4a7fa0,
        0 3px 0 #3a6f90,
        0 4px 0 #2a5f80,
        0 5px 0 #1a4f70,
        0 6px 1px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.25);
    margin: 0;
    font-size: 1.8rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
}

.custom-navbar .navbar-collapse {
    position: absolute;
    right: 1rem;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.custom-navbar .navbar-toggler {
    position: absolute;
    right: 1rem;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.custom-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.panel {
    width: 340px; /* Fixed width based on "U.S. National Forests" */
    margin: 10px 0; /* Vertical spacing between panels */
    margin-left: 40px; /* Increased left offset */
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Slightly more opaque background */
    border: 3px solid rgba(0, 0, 0, 0.3); /* Lighter border */
    border-radius: 25px; /* More rounded corners for button look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    color: #10c6d3; /* Bright green text color */
    text-align: left; /* Left justified text */
    opacity: .95; /* Fully opaque text */
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Center items vertically */
    cursor: pointer; /* Pointer cursor for button feel */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    position: relative;
    overflow: hidden;
}

.panel:first-child {
    margin-top: 30px; /* Add top offset only to the first panel */
}

.panel-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.coming-soon {
    font-size: 0.7em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
    display: block;
}

.panel:hover {
    background: rgba(255, 255, 255, 0.9); /* Lighter background on hover */
    border-color: rgba(16, 198, 211, 0.8); /* Color border on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(16, 198, 211, 0.3); /* Enhanced shadow with color */
    transform: translateY(-2px); /* Slight lift effect */
}

.panel:active {
    transform: translateY(0px); /* Button press effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Reduced shadow when pressed */
}

.panel h5 {
    margin: 0; /* Remove default margin */
}

.panel h3 {
    font-family: 'Poppins', sans-serif; 
    font-weight: 600; 
    color: #333; /* Bright green font color */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Slight drop shadow to right and bottom */
    display: flex; /* Use flexbox for image and text alignment */
    align-items: center; /* Center items vertically */
    margin: 0; /* Remove default margin */
    line-height: 1.2; /* Better line height */
}

.panel-image {
    width: 64px; /* Image width */
    height: 64px; /* Image height */
    margin-right: 50px; /* Spacing between image and text */
    border-radius: 25%;
    object-fit: contain; /* Ensure image fits within dimensions */
    flex-shrink: 0; /* Prevent image from shrinking */
}


/* styles.css */
#main_container {
    position: relative;
    z-index: 0;
    height: 100vh;
    overflow: hidden;
}

#main_container .panel {
    position: relative;
    z-index: 2; /* Ensure panels are above the overlay */
}

body {
    background-image: url('../images/bg_images/BlueTechMap.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%; /* Ensures the background image fits the page */
    overflow: hidden;
}

.col-12.col-md-8 {
    height: calc(100vh - 56px); /* Adjust for navbar height */
}

.embed-responsive {
    height: 100%;
}

/* Responsive styles for different screen sizes */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .panel {
        width: 260px; /* Smaller fixed width for mobile */
        margin: 5px 0; /* Vertical spacing */
        margin-left: 15px; /* Smaller left offset for mobile */
        padding: 10px;
        height: 60px; /* Smaller height for mobile */
        display: flex;
        align-items: center;
    }
    
    .panel:first-child {
        margin-top: 20px; /* Smaller top offset for mobile */
    }
    
    .panel h3 {
        font-size: 0.9rem; /* Smaller font size for mobile */
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .panel-image {
        width: 32px;
        height: 32px;
        margin-right: 15px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    #main_title {
        font-size: 1.2em;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 50vh !important; /* Smaller height on mobile */
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 1.2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .panel {
        width: 290px; /* Fixed width for small tablets */
        margin: 8px 0; /* Vertical spacing */
        margin-left: 25px; /* Increased left offset */
        padding: 15px;
        height: 70px; /* Medium height for small tablets */
        display: flex;
        align-items: center;
    }
    
    .panel:first-child {
        margin-top: 25px; /* Top offset for first panel */
    }
    
    .panel h3 {
        font-size: 1rem;
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .panel-image {
        width: 40px;
        height: 40px;
        margin-right: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    #main_title {
        font-size: 1.5em;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 60vh !important;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .panel {
        width: 320px; /* Fixed width for tablets */
        margin: 10px 0; /* Vertical spacing */
        margin-left: 30px; /* Increased left offset */
        padding: 18px;
        height: 80px; /* Standard height for tablets */
        display: flex;
        align-items: center;
    }
    
    .panel:first-child {
        margin-top: 30px; /* Top offset for first panel */
    }
    
    .panel h3 {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .panel-image {
        width: 48px;
        height: 48px;
        margin-right: 25px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    #main_title {
        font-size: 1.8em;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 70vh !important;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .panel {
        width: 330px; /* Fixed width for large screens */
        margin: 10px 0; /* Vertical spacing */
        margin-left: 35px; /* Increased left offset */
        padding: 20px;
        height: 90px; /* Larger height for desktops */
        display: flex;
        align-items: center;
    }
    
    .panel:first-child {
        margin-top: 30px; /* Top offset for first panel */
    }
    
    .panel h3 {
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .panel-image {
        width: 56px;
        height: 56px;
        margin-right: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    #main_title {
        font-size: 2em;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .panel {
        width: 340px; /* Fixed width for extra large screens */
        margin: 10px 0; /* Vertical spacing */
        margin-left: 40px; /* Increased left offset */
        padding: 22px;
        height: 100px; /* Maximum height for large screens */
        display: flex;
        align-items: center;
    }
    
    .panel:first-child {
        margin-top: 30px; /* Top offset for first panel */
    }
    
    .panel h3 {
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
    
    .panel-image {
        width: 64px;
        height: 64px;
        margin-right: 35px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    #main_title {
        font-size: 2.2em;
    }
}

/* Responsive styles for iframe and title */
@media (max-width: 575.98px) {
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 50vh !important; /* Smaller height on mobile */
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 60vh !important;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .col-12.col-sm-12.col-md-8.col-lg-8 {
        height: 70vh !important;
    }
    
    .col-12.col-sm-12.col-md-8.col-lg-8 h2 {
        font-size: 2rem;
    }
}

/* Adjust panel alignment for better responsive layout */
@media (max-width: 767.98px) {
    .panel {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .panel h3 {
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.2;
    }
}
