/* Desktop Navigation Styles */
@media (min-width: 992px) {
    .navbar {
        background: #1f2937;
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff !important;
    }
    
    .navbar-collapse {
        display: flex !important;
        position: static !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        width: auto !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin-left: auto !important;
        gap: 1.5rem !important;
    }
    
    .nav-link {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.5rem 1rem !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #fff !important;
    }
    
    /* Hide mobile-only elements */
    .navbar-socials {
        display: none !important;
    }
    
    /* Hide navbar toggler on desktop */
    .navbar-toggler {
        display: none !important;
    }
}

/* Universal Navbar Styles */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    z-index: 9999;
    position: relative;
    cursor: pointer;
    display: block;
}

.navbar-toggler-icon {
    width: 30px;
    height: 22px;
    position: relative;
    display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon div {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #cacfd8;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 1;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon div {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* When menu is open */
.navbar-collapse.show + .navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler.active .navbar-toggler-icon::before {
    transform: translateY(10px) rotate(45deg);
}

.navbar-collapse.show + .navbar-toggler .navbar-toggler-icon div,
.navbar-toggler.active .navbar-toggler-icon div {
    opacity: 0;
}

.navbar-collapse.show + .navbar-toggler .navbar-toggler-icon::after,
.navbar-toggler.active .navbar-toggler-icon::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* Fullscreen Nav Menu (Mobile Only) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        background: #1f2937;
        width: 100%;
        height: 100vh;
        padding: 80px 32px 40px;
        text-align: center;
        z-index: 9998;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        transform: translateX(0);
        visibility: visible;
    }
    
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        margin-bottom: auto;
    }
    
    .nav-link {
        font-size: 1.1rem;
        color: #cacfd8 !important;
        text-decoration: none;
        padding: 8px 16px;
    }
    
    /* Social Icons (Mobile Only) */
    .navbar-socials {
        margin-top: 32px;
        margin-bottom: 24px;
        display: flex;
        justify-content: center;
        gap: 24px;
        width: 100%;
    }
    
    .navbar-socials a {
        color: #cacfd8;
        font-size: 24px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-socials a:hover {
        color: white;
        background-color: #00ffe7;
        transform: translateY(-3px);
    }
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar {
        background: #1f2937;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1030;
        position: fixed;
        top: 0;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #00ffe7 !important;
    }

    /* Team Member Cards */
    .team-member-card {
        height: auto;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        text-align: center;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
    }

    .team-member-image {
        width: 100%;
        max-width: 240px;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    .team-member-name {
        font-size: 1.25rem;
        margin: 0.5rem 0;
        font-weight: 600;
        color: #1f2937;
        word-wrap: break-word;
        width: 100%;
    }

    .team-member-title {
        font-size: 1rem;
        margin: 0.5rem 0 1rem;
        color: #4b5563;
        word-wrap: break-word;
        width: 100%;
    }

    /* Form Elements */
    .contact-form {
        padding: 1.5rem !important;
    }

    .form-floating {
        margin-bottom: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Screen Optimizations */
@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }

    .page-header {
        padding: 4rem 0 2rem;
    }

    /* Social Grid */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .social-item {
        padding: 15px 8px;
    }

    .social-item i {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-about,
    .footer-links,
    .footer-resources {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-social-icons {
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-link:active {
        color: #14f2b8 !important;
    }

    .btn:active {
        transform: scale(0.98);
    }
} 