:root {
    --obsidian: #050505;
    --obsidian-light: #0D0D0E;
    --power-blue: #00F0FF;
    --steel-gray: #94A3B8; /* Lightened for better contrast on dark background */
    --white: #FFFFFF;
    --accent-glow: rgba(0, 240, 255, 0.15);
}

body {
    background-color: var(--obsidian);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 1.125rem; /* Increased base font size */
}

#main-header {
    z-index: 1100 !important; /* Higher than mobile-menu (1050) to keep controls accessible */
}

.z-max {
    z-index: 9999 !important;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.bg-obsidian {
    background-color: var(--obsidian);
}

.bg-obsidian-light {
    background-color: var(--obsidian-light);
}

.text-power-blue {
    color: var(--power-blue);
}

.text-steel-gray {
    color: var(--steel-gray);
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.btn-primary {
    display: inline-block;
    padding: 1.5rem 3rem; /* Increased padding */
    background-color: var(--power-blue);
    border: 1px solid var(--power-blue);
    color: var(--obsidian);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; /* Increased font size */
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--power-blue);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
    display: inline-block;
    padding: 1.5rem 3rem; /* Increased padding */
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Increased border visibility */
    color: var(--white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem; /* Increased font size */
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    border-color: var(--power-blue);
    color: var(--power-blue);
    background-color: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-link {
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--power-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    #main-header .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        height: 70px; /* Slightly taller for better touch targets */
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        max-width: 40px;
    }

    .site-logo {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        object-fit: contain;
    }
    
    .site-title-text {
        font-size: 0.9rem !important;
        letter-spacing: -0.01em;
        white-space: nowrap;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 140px);
        flex-shrink: 1;
    }

    /* Adjust main padding for smaller fixed header */
    main {
        padding-top: 100px !important;
    }
    
    section.min-h-screen, section.pt-20, section.pt-40, section.pt-32, section.pt-48 {
        padding-top: 100px !important;
    }
}

/* Mobile Menu Toggle Styles */
#mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200 !important; /* Ensure button stays on top of header and overlay */
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

#mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #FFFFFF !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    border-radius: 2px;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: flex !important;
    }
}

/* Mobile Menu Overlay Styles */
#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--obsidian);
    z-index: 1050 !important; /* Placed behind the header (1100) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    visibility: hidden;
    padding: 2rem;
    overflow-y: auto;
}

#mobile-menu.active {
    transform: translateY(0);
    visibility: visible;
}

#mobile-menu a {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    padding: 1rem;
    width: 100%;
    text-align: center;
    transition: color 0.3s ease;
}

#mobile-menu a:hover {
    color: var(--power-blue);
}

#mobile-menu a:hover {
    color: var(--power-blue);
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.site-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.edge-facility-image, .about-infra-image, .sustainability-tech-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .edge-facility-image, 
.glass-card:hover .about-infra-image, 
.glass-card:hover .sustainability-tech-image {
    transform: scale(1.05);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-photo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .team-photo {
    filter: grayscale(0%);
}

.modal-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.95);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none;
}

/* Scroll Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}