
/* WordPress-inspired modern styling for Globe-Tech Impact Services Limited */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #222;
}
header {
    background: linear-gradient(90deg, #0073aa 0%, #005177 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding-bottom: 0.5em;
    position: relative;
    z-index: 10;
}
.hero {
    text-align: center;
    padding: 2.5em 1em 1em 1em;
    position: relative;
}
.logo {
    width: 120px;
    margin-bottom: 1em;
}
.tagline {
    font-size: 1.3em;
    font-weight: 400;
    margin-top: 0.5em;
    color: #ffd700;
}
.hamburger {
    position: absolute;
    top: 2em;
    right: 2em;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
}
.hamburger span {
    display: block;
    width: 32px;
    height: 4px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
/* Tabbed navigation styles */
.nav-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    z-index: 3;
    min-height: 48px;
}
.tab-list {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    list-style: none;
    margin: 0;
    padding: 0.5em 0;
}
.tab-list li {
    display: flex;
    align-items: center;
}
.tab-list li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 0.5em 1.2em;
    border-radius: 8px 8px 0 0;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    display: block;
    border: 1.5px solid transparent;
    border-bottom: none;
}
.tab-list li a:hover, .tab-list li a.active {
    background: #0073aa;
    color: #ffd700;
    border: 1.5px solid #0073aa;
    border-bottom: 2.5px solid #fff;
}

.tab-list li a.active {
    box-shadow: 0 6px 18px rgba(0,115,170,0.08);
}
@media (max-width: 900px) {
    .tab-list {
        gap: 0.7em;
    }
    .tab-list li a {
        font-size: 1em;
        padding: 0.4em 0.7em;
    }
}
@media (max-width: 600px) {
    .tab-list {
        flex-wrap: wrap;
        gap: 0.3em;
        justify-content: center;
    }
    .tab-list li a {
        font-size: 0.98em;
        padding: 0.3em 0.5em;
    }
}
.section {
    max-width: 900px;
    margin: 2em auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,83,100,0.10);
    padding: 2.5em 2em;
    position: relative;
    border-left: 8px solid #0073aa;
}
.section h2 {
    color: #0073aa;
    font-size: 2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}
.section ul {
    margin: 1em 0 0 1em;
    padding: 0;
    list-style: disc inside;
}
.section-img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    margin: 1.5em auto 0 auto;
    display: block;
    box-shadow: 0 2px 12px rgba(44,83,100,0.12);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin-top: 1.2em;
}
.gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(44,83,100,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}
.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.gallery-item figcaption {
    padding: 0.75em 0.9em;
    font-size: 0.95em;
    color: #1b2b3a;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(248,250,252,0.6));
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(44,83,100,0.12);
}

/* Carousel styles */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1.2em;
    background: #fff;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    gap: 0; /* ensure no gaps between slides */
}
.carousel-slide {
    flex: 0 0 auto; /* prevent shrinking/growing */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}
.carousel-slide img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 60vh; /* responsive height limit */
    object-fit: contain; /* show whole image */
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    cursor: pointer;
    z-index: 6;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    display: flex;
    gap: 0.5em;
    z-index: 7;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
}
.carousel-dots .dot.active {
    background: #ffd700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
    .carousel-slide img { max-height: 45vh; }
    .carousel-btn { width: 40px; height: 40px; }
}
@media (max-width: 600px) {
    .carousel-slide img { max-height: 35vh; }
    .carousel-btn { width: 36px; height: 36px; font-size: 1.3em; }
}
.sectors-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: stretch;
    margin-top: 2em;
}
.sector {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5em 1em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44,83,100,0.07);
    border-top: 4px solid #0073aa;
    transition: box-shadow 0.2s;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.sector:hover {
    box-shadow: 0 6px 24px rgba(44,83,100,0.18);
}
.sector img {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
    margin-bottom: 1em;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 400px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,83,100,0.07);
}
.contact input, .contact textarea {
    padding: 0.8em;
    border-radius: 8px;
    border: 1px solid #c3cfe2;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    transition: border 0.2s;
}
.contact input:focus, .contact textarea:focus {
    border: 1.5px solid #0073aa;
    outline: none;
}
.contact button {
    background: linear-gradient(90deg, #0073aa, #005177);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1em;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(44,83,100,0.07);
}
.contact button:hover {
    background: linear-gradient(90deg, #005177, #0073aa);
}
footer {
    text-align: center;
    padding: 2em 0 1em 0;
    background: #0073aa;
    color: #fff;
    font-size: 1em;
    margin-top: 2em;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
    .section {
        padding: 1.2em 0.5em;
        max-width: 98vw;
    }
    .sidebar {
        width: 80vw;
        min-width: 180px;
        max-width: 320px;
    }
    .sectors-grid {
        gap: 1em;
    }
    .sector {
        min-width: 180px;
        max-width: 100%;
        padding: 1em 0.5em;
    }
    .section-img {
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 0.7em 0.2em;
        max-width: 100vw;
    }
    .sidebar ul {
        gap: 1em;
    }
    .sidebar {
        width: 100vw;
        left: -100vw;
    }
    .sidebar.open {
        left: 0;
    }
    .hero {
        padding: 1.2em 0.2em 0.7em 0.2em;
    }
    .sectors-grid {
        flex-direction: column;
        gap: 1em;
        align-items: stretch;
    }
    .sector {
        min-width: 0;
        max-width: 100%;
        padding: 1em 0.3em;
        font-size: 0.98em;
    }
    .section h2 {
        font-size: 1.3em;
    }
    .section-img {
        max-width: 98vw;
    }
    .logo {
        width: 80px;
    }
    .tagline {
        font-size: 1em;
    }
}
