/* Custom Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 171px;
    height: 171px;
    position: absolute;
    right: 0;
    background: transparent;
    cursor: pointer;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
    padding-right: 20px;
    padding-top: 0;
    margin-right: 0;
    z-index: 1003;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
    z-index: 1004;
}

.navbar-toggler span:nth-child(1) {
    width: 60px;
}

.navbar-toggler span:nth-child(2) {
    width: 48px;
}

.navbar-toggler span:nth-child(3) {
    width: 60px;
}

/* Large Blue Triangle Behind Icon - Point at Top Right Corner */
.navbar-toggler::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 215px;
    height: 215px;
    background: linear-gradient(to bottom left, #3b7ec4 50%, transparent 50%);
    transition: all 0.3s ease;
    z-index: 1002;
}

/* Hover Effect */
.navbar-toggler:hover span {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.navbar-toggler:hover span:nth-child(1) {
    width: 65px;
}

.navbar-toggler:hover span:nth-child(2) {
    width: 53px;
}

.navbar-toggler:hover span:nth-child(3) {
    width: 65px;
}

.navbar-toggler:hover::before {
    background: linear-gradient(to bottom left, #2874c5 50%, transparent 50%);
}

/* Active/Open State - Convert to X */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(13px, 13px);
    width: 60px;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(13px, -13px);
    width: 60px;
}

/* Hide triangle when menu is open */
.navbar-toggler[aria-expanded="true"]::before {
    opacity: 0;
    transform: scale(0);
}

/* Full Width Overlay Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: linear-gradient(135deg, #001f3d 0%, #003d5c 50%, #004f7a 100%);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding-top: 100px;
    overflow-y: auto;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
    background: #031B37;
}

.menu-overlay .container {
    height: calc(100vh - 100px);
    display: flex;
    align-items: flex-start;

}

/* Two Column Layout */
.menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr 400px;
    gap: 4rem;
    width: 100%;
    z-index: 1111;
}

/* Menu Columns */
.menu-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
      margin-top: 30px;
  margin-left: 20px;

}

.menu-column h3 {
    color: white;
    font-size: 1.625rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    width: fit-content;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-column h3:hover {
    color: #4a9fd8;
    transform: translateX(10px);
}

.menu-column h3:hover::after {
    width: 60px;
}

/* Contact Section */
.contact-section {
    color: white;
}

.contact-section h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-section a:hover {
    color: #4a9fd8;
}

.send-message-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 1rem 2.5rem;
    width: 100%;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.send-message-btn:hover {
    background: white;
    color: #003d5c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}


/* Body when menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100vh;
}

body.menu-open .navbar-collapse {
    display: none !important;
}

/* Content Placeholder */
.content-area {
    margin-top: 80px;
    padding: 4rem 2rem;
}

.content-area h1 {
    font-size: 3rem;
    color: #003d5c;
    margin-bottom: 1rem;
}

.content-area p {
    font-size: 1.2rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .menu-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contact-section {
        grid-column: 1 / -1;
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .navbar-toggler {
        width: 130px;
        height: 130px;
        padding-right: 24px;
    }

    .navbar-toggler::before {
        width: 130px;
        height: 130px;
    }

    .navbar-toggler span:nth-child(1) {
        width: 48px;
    }

    .navbar-toggler span:nth-child(2) {
        width: 38px;
    }

    .navbar-toggler span:nth-child(3) {
        width: 48px;
    }
}

@media (max-width: 768px) {
    .menu-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-column {
        text-align: center;
        align-items: center;
    }

    .menu-column h3 {
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .contact-section {
        text-align: center;
    }

    .menu-overlay .container {
        height: auto;
        min-height: calc(100vh - 100px);
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .navbar-toggler {
        width: 100px;
        height: 100px;
        padding-right: 18px;
        padding-top: 0;
    }

    .navbar-toggler::before {
        width: 100px;
        height: 100px;
        background: linear-gradient(to bottom left, #3b7ec4 50%, transparent 50%);
    }

    .navbar {
        padding: 0.8rem 0 0.8rem 1rem;
    }

    .navbar-toggler span:nth-child(1) {
        width: 38px;
    }

    .navbar-toggler span:nth-child(2) {
        width: 30px;
    }

    .navbar-toggler span:nth-child(3) {
        width: 38px;
    }

    .content-area {
        margin-top: 70px;
        padding: 3rem 1.5rem;
    }

    .content-area h1 {
        font-size: 2rem;
    }

    .content-area p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .send-message-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .navbar-toggler {
        width: 80px;
        height: 80px;
        padding-right: 10px;
        position: absolute;
        top: 0;
    }

    .navbar-toggler::before {
        width: 105px;
        height: 105px;
    }

    .navbar-toggler span:nth-child(1) {
        width: 32px;
    }

    .navbar-toggler span:nth-child(2) {
        width: 25px;
    }

    .navbar-toggler span:nth-child(3) {
        width: 32px;
    }

    .menu-column h3 {
        font-size: 1.625rem;
    }

    .contact-section h4 {
        font-size: 0.9rem;
    }

    .contact-section p {
        font-size: 0.85rem;
    }

    .menu-overlay {
        padding-top: 80px;
    }

    .menu-overlay .container {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .content-area {
        margin-top: 60px;
        padding: 2rem 1rem;
    }

    .content-area h1 {
        font-size: 1.5rem;
    }

    .content-area p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .navbar-toggler {
        width: 70px;
        height: 70px;
        padding-right: 13px;
        top: 0;
    }

    .navbar-toggler::before {
        width: 104px;
        height: 104px;
    }

    .navbar-toggler span:nth-child(1) {
        width: 28px;
    }

    .navbar-toggler span:nth-child(2) {
        width: 22px;
    }

    .navbar-toggler span:nth-child(3) {
        width: 28px;
    }

    .menu-column h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto;
    }

    .navbar {
        padding: 0.6rem 0 0.6rem 0.8rem;
    }

    .contact-section {
        margin: 0 auto;
        text-align: center;
    }

    .menu-column {
        margin: 0 auto;
        text-align: center;
    }

    .contact-section .address {
        display: block;
    }

    .contact-section .phone {
        display: block;
    }

    .contact-section .email {
        display: block;
    }
}
/* ==========================================
   TOGGLE MENU HEADER (Separate from Desktop)
   ========================================== */

.toggle-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1004;
    display: none;
}

body.menu-open .toggle-menu-header {
    display: block;
}

.toggle-menu-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-menu-logo img {
    height: 69px;
    width: auto;
}

.toggle-menu-close {
    border: none;
    background: transparent;
    padding: 0;
    width: 80px;
    height: 80px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.toggle-menu-close span {
    display: block;
    height: 4px;
    background-color: white;
    width: 60px;
}

.toggle-menu-close span:nth-child(1) {
    transform: rotate(45deg) translate(13px, 13px);
}

.toggle-menu-close span:nth-child(2) {
    opacity: 0;
}

.toggle-menu-close span:nth-child(3) {
    transform: rotate(-45deg) translate(13px, -13px);
}

/* Hide desktop navbar when menu open */
body.menu-open .navbar {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .toggle-menu-logo img {
        height: 60px;
    }
    
    .toggle-menu-close {
        width: 60px;
        height: 60px;
    }
    
    .toggle-menu-close span {
        width: 45px;
    }
    
    .toggle-menu-close span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    
    .toggle-menu-close span:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -10px);
    }
}
