/* ============================================
   LAYOUT.CSS - Grid, Flexbox & Structure
   ============================================ */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 32px;
    background: rgba(7, 11, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 204, 255, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

header h1 i {
    color: #00ccff;
    font-size: 1.2rem;
}

/* Navigation - Desktop */
nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: center;
    order: 2;
}

nav a {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    color: #8899bb;
}

nav a i {
    margin-left: 6px;
    font-size: 0.95rem;
}

nav a:hover {
    color: #00ccff;
    border-color: rgba(0, 204, 255, 0.1);
    background: rgba(0, 204, 255, 0.04);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    flex-shrink: 0;
    order: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: #00ccff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-close {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 90px 32px 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

#globe-container {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1/1;
    position: relative;
    padding: 30px;
}

#globe {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* About Section */
.about {
    padding: 80px 32px;
    position: relative;
    z-index: 1;
    background: rgba(0, 204, 255, 0.02);
    border-top: 1px solid rgba(0, 204, 255, 0.04);
    border-bottom: 1px solid rgba(0, 204, 255, 0.04);
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
}

.about-text {
    font-size: 1.15rem;
    color: #8899bb;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.9;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00ccff;
    background: linear-gradient(135deg, #00ccff, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: #667799;
    margin-top: 4px;
}

/* Services */
.services {
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 32px 24px;
    text-align: center;
    border-radius: 16px;
    transition: all 0.4s ease;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 204, 255, 0.06);
    padding: 50px 32px 20px;
    background: rgba(7, 11, 24, 0.6);
    backdrop-filter: blur(8px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 204, 255, 0.06);
    text-align: center;
}

/* Footer LTR */
footer[dir="ltr"] {
    text-align: center;
    direction: ltr;
}

footer[dir="ltr"] .footer-social-wrapper {
    align-items: center;
}

footer[dir="ltr"] .footer-social {
    justify-content: center;
}

footer[dir="ltr"] .footer-bottom {
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    header h1 {
        font-size: 1.2rem;
    }

    header h1 i {
        font-size: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-globe {
        min-height: 350px;
    }

    #globe-container {
        max-width: 420px;
        margin: 0 auto;
        padding: 25px;
    }

    .about-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    nav a {
        display: none !important;
    }
    .menu-toggle {
        display: flex !important;
    }
    header h1 {
        order: 2;
    }
    .menu-toggle {
        order: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 10px 16px;
    }

    header h1 {
        font-size: 1rem;
        gap: 6px;
    }

    header h1 i {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: flex !important;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 11, 24, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 70px 24px 30px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(0, 204, 255, 0.1);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        z-index: 1000;
        order: 3;
    }

    nav.open {
        right: 0;
    }

    nav a {
        display: flex !important;
        padding: 14px 18px;
        border-radius: 8px;
        font-size: 1rem;
        border: 1px solid transparent;
        white-space: nowrap;
        color: #b0ccee;
    }

    nav a:hover {
        border-color: rgba(0, 204, 255, 0.2);
        background: rgba(0, 204, 255, 0.05);
        color: #00ccff;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 16px;
        left: 20px;
        color: #00ccff;
        font-size: 1.6rem;
        padding: 4px 12px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hero {
        padding: 75px 16px 40px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        text-align: center;
        width: 100%;
        gap: 12px;
    }

    .hero-text h2 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        gap: 12px;
    }

    .hero-actions a {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .hero-globe {
        min-height: auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    #globe-container {
        max-width: 200px;
        padding: 10px;
        margin: 0 auto;
    }

    .about {
        padding: 50px 20px;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    footer {
        padding: 35px 20px 16px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    header h1 {
        font-size: 0.85rem;
        gap: 4px;
    }

    header h1 i {
        font-size: 0.75rem;
    }

    nav a {
        font-size: 0.95rem !important;
    }

    .hero {
        padding: 65px 12px 30px;
        min-height: 100vh;
    }

    .hero-content {
        gap: 16px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-actions a {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .hero-globe {
        max-width: 160px;
    }

    #globe-container {
        max-width: 160px;
        padding: 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions a {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }

    .about {
        padding: 40px 16px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    footer {
        padding: 28px 16px 14px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 12px;
    }
}

/* Desktop - show all nav links */
@media (min-width: 993px) {
    .menu-toggle {
        display: none !important;
    }
    nav a {
        display: inline-flex !important;
    }
    header h1 {
        order: 3;
    }
    .menu-toggle {
        order: 1;
    }
    nav {
        order: 2;
    }
}