/* ==========================================================================
   4 Square Edu Life — stylesheet
   Brand colors preserved from original build:
   Navy: #182642 / #1e3a5f   Teal accent: #00bfa5
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #e8e8e8;
    overflow-x: hidden;
}

h1, h2, h3, .logo span {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   Preloader — 3D logo intro
   ========================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 50%, #1e3a5f 0%, #101a30 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform-style: preserve-3d;
}

.preloader-logo-wrap {
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: logoSpin3D 2.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 20px 35px rgba(0, 191, 165, 0.35));
}

.preloader-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    backface-visibility: hidden;
}

@keyframes logoSpin3D {
    0%   { transform: rotateY(0deg) rotateX(8deg); }
    50%  { transform: rotateY(180deg) rotateX(-8deg); }
    100% { transform: rotateY(360deg) rotateX(8deg); }
}

.preloader-text {
    color: #fff;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.preloader-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #00bfa5, #66ffe0);
    border-radius: 3px;
    animation: barSlide 1.1s ease-in-out infinite;
}

@keyframes barSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background: linear-gradient(135deg, #182642 0%, #182642 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 80px;
    width: auto;
    border-radius: 50px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.logo:hover .logo-img {
    transform: rotateY(360deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5 rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.nav-links a.nav-active {
    background: rgba(0,191,165,0.25);
}

/* ==========================================================================
   Page Banner — used on standalone pages like Portfolio
   ========================================================================== */
.page-banner {
    padding: 165px 2rem 70px;
    background: linear-gradient(135deg, #182642 0%, #1e3a5f 55%, #0e5f56 150%);
    color: #fff;
    text-align: center;
}

.page-banner h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0.6rem 0 1rem;
}

.page-banner p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255,255,255,0.75);
    font-size: 1.02rem;
}

.page-banner-crumbs {
    margin-top: 1.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.page-banner-crumbs a {
    color: #5be8d4;
    text-decoration: none;
}

.page-banner-crumbs a:hover {
    text-decoration: underline;
}

.page-banner-crumbs span {
    margin: 0 0.3rem;
}

.portfolio-page {
    padding-top: 70px;
}

.portfolio-link-btn {
    background-color: #00bfa5;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,191,165,0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section — 3D animated multi-slide slider
   ========================================================================== */
.hero {
    position: relative;
    margin-top: 60px;
    min-height: 760px;
    overflow: hidden;
    perspective: 1400px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 760px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 2rem 140px;
    text-align: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px) scale(0.97);
    transition: opacity 0.9s ease, transform 0.9s ease, visibility 0.9s;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--slide-overlay, linear-gradient(135deg, rgba(24,38,66,0.88) 0%, rgba(0,63,84,0.82) 100%));
    z-index: 0;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-slide h1 {
    font-size: 3.6rem;
    margin-bottom: 1.3rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-weight: 800;
    line-height: 1.2;
}

.hero-slide.active h1 { animation: fadeInUp 0.9s ease 0.15s backwards; }

.hero-slide p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.98;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-slide.active p { animation: fadeInUp 0.9s ease 0.3s backwards; }

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
    letter-spacing: 0.5px;
    display: inline-block;
}

.hero-slide.active .hero-subtitle { animation: fadeInUp 0.9s ease 0.42s backwards; }

.cta-button {
    display: inline-block;
    background: #00bfa5;
    color: white;
    padding: 1.2rem 3.2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,191,165,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-slide.active .cta-button { animation: fadeInUp 0.9s ease 0.55s backwards; }

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,191,165,0.7);
    background: #00d4b8;
}

/* Floating 3D glass cards + orbs, fintech-style ambient motion */
.hero-3d-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transform-style: preserve-3d;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.55;
    background: radial-gradient(circle at 30% 30%, rgba(0,191,165,0.9), rgba(0,191,165,0) 70%);
    animation: orbFloat 9s ease-in-out infinite;
}

.hero-orb.orb-a { width: 220px; height: 220px; top: 12%; left: 8%; animation-delay: 0s; }
.hero-orb.orb-b { width: 160px; height: 160px; bottom: 16%; right: 10%; background: radial-gradient(circle at 30% 30%, rgba(102,255,224,0.85), rgba(102,255,224,0) 70%); animation-delay: 2s; }
.hero-orb.orb-c { width: 110px; height: 110px; top: 22%; right: 20%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%); animation-delay: 4s; }

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(15px, -25px, 40px) scale(1.08); }
}

.hero-glass-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.9rem 1.3rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    transform-style: preserve-3d;
    animation: cardFloat 7s ease-in-out infinite;
    white-space: nowrap;
}

.hero-glass-card .card-icon {
    font-size: 1.5rem;
}

.hero-glass-card.card-1 { top: 18%; left: 6%; animation-delay: 0s; }
.hero-glass-card.card-2 { bottom: 20%; left: 10%; animation-delay: 1.4s; }
.hero-glass-card.card-3 { top: 24%; right: 6%; animation-delay: 0.7s; }
.hero-glass-card.card-4 { bottom: 24%; right: 8%; animation-delay: 2.1s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateX(6deg) rotateY(-6deg); }
    50% { transform: translateY(-18px) rotateX(-4deg) rotateY(6deg); }
}

/* Slider controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: #00bfa5;
    border-color: #00bfa5;
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.7rem;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: #00bfa5;
    transform: scale(1.3);
}

.hero-bg-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 810px;
    opacity: 0.12;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1e3a5f 0%, #00bfa5 100%);
    border-radius: 2px;
}

.section-eyebrow {
    display: block;
    text-align: center;
    color: #00bfa5;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

/* Reveal-on-scroll utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 90px 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.about-visual {
    position: relative;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-3d {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    background: linear-gradient(145deg, #182642 0%, #1e3a5f 55%, #00bfa5 140%);
    box-shadow: 0 30px 60px rgba(24, 38, 66, 0.35);
    transform: rotateY(-14deg) rotateX(6deg);
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.about-visual:hover .about-card-3d {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-6px);
}

.about-card-3d img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 10px;
    margin-bottom: 1.4rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.about-card-3d h4 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.about-card-3d p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.about-badge {
    position: absolute;
    background: #fff;
    color: #1e3a5f;
    padding: 0.9rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.1;
    transform: translateZ(40px);
}

.about-badge span {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.about-badge.badge-top {
    top: -20px;
    right: -20px;
}

.about-badge.badge-bottom {
    bottom: -20px;
    left: -20px;
}

.about-content h2 {
    font-size: 2.3rem;
    color: #182642;
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.about-content > p {
    color: #555;
    font-size: 1.08rem;
    margin-bottom: 1.8rem;
}

.about-points {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: #444;
    font-size: 1rem;
}

.about-points .point-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #182642, #00bfa5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 15px rgba(0,191,165,0.3);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.stat-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,191,165,0.25);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: #182642;
    display: block;
}

.stat-number span {
    color: #00bfa5;
}

.stat-label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Services Section — Flip Cards
   ========================================================================== */
.services {
    padding: 90px 2rem;
    background: #f8f9fa;
}

.services-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.services-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    perspective: 1500px;
    animation: servicesScroll 32s linear infinite;
}

.services-grid:hover,
.services-grid.paused {
    animation-play-state: paused;
}

.service-card {
    flex: 0 0 280px;
}

@keyframes servicesScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.service-card {
    background: transparent;
    height: 290px;
    border-radius: 15px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.service-card:hover .flip-inner,
.service-card.flipped .flip-inner,
.service-card.auto-flip .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-front {
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.service-card:hover .flip-front {
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
}

.flip-back {
    background: linear-gradient(150deg, #182642 0%, #1e3a5f 55%, #00bfa5 150%);
    color: #fff;
    transform: rotateY(180deg);
    justify-content: center;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #1e3a5f;
    margin-bottom: 0.6rem;
    font-size: 1.35rem;
}

.flip-back h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.flip-back p {
    color: rgba(255,255,255,0.92);
    font-size: 0.92rem;
    line-height: 1.6;
}

.flip-hint {
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flip-back .flip-hint {
    color: rgba(255,255,255,0.6);
    margin-top: auto;
    padding-top: 0.9rem;
}

/* ==========================================================================
   Marquee — Publication Partners
   ========================================================================== */
.marquee-section {
    background: #182642;
    padding: 55px 0;
    overflow: hidden;
}

.marquee-heading {
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2rem;
}

.marquee-track-wrap {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    opacity: 0.85;
    white-space: nowrap;
    padding: 0.7rem 1.5rem 0.7rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    transition: all 0.35s ease;
}

.marquee-logo:hover {
    opacity: 1;
    border-color: #00bfa5;
    background: rgba(0,191,165,0.1);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,191,165,0.2);
}

/* .marquee-logo-mark {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #182642;
    background: linear-gradient(135deg, #ffffff 0%, #cdeee7 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.marquee-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
} */
.marquee-logo-plain img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.marquee-logo .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00bfa5;
}

/* ==========================================================================
   Portfolio Section (unchanged content, preserved styling)
   ========================================================================== */
.portfolio {
    padding: 90px 2rem;
    background: white;
    perspective: 1400px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: -1.5rem auto 3rem;
}

.portfolio-filter-btn {
    background: #f1f3f5;
    color: #444;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter-btn:hover {
    background: #dfe9ea;
    color: #182642;
}

.portfolio-filter-btn.active {
    background: linear-gradient(135deg, #182642, #00bfa5);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0,191,165,0.35);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.35s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.35);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #b1b6bd 0%, #39424f 100%);
    display: block;
    border-bottom: 3px solid #00bfa5;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.12) rotate(1deg);
}



.portfolio-item:hover .portfolio-image-overlay {
    opacity: 1;
}

.portfolio-view-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    transform: scale(0.6) translateY(15px);
    opacity: 0;
    transition: all 0.4s ease 0.05s;
}

.portfolio-item:hover .portfolio-view-icon {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    display: inline-block;
    background: #151b4f;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-item h3 {
    color: #1e3a5f;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.portfolio-item p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
}

.portfolio-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.portfolio-stat strong {
    color: #1e3a5f;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: 90px 2rem;
    background: #f4f6f8;
    position: relative;
    overflow: hidden;
}

.testimonials-viewport {
    overflow: hidden;
    padding: 1rem 0 2.5rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0.1, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    flex: 0 0 calc(33.333% - 1.34rem);
    opacity: 0.4;
    transform: scale(0.94);
}

@media (max-width: 900px) {
    .testimonial-card { flex-basis: calc(50% - 1rem); }
}

@media (max-width: 620px) {
    .testimonial-card { flex-basis: 100%; }
}

.testimonial-card.is-active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover {
    transform: scale(1.02) translateY(-8px) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(24, 38, 66, 0.18);
    opacity: 1;
}

.testimonial-stars {
    color: #ffb400;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    color: #444;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #182642, #00bfa5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex: none;
}

.testimonial-author-name {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 0.98rem;
}

.testimonial-author-role {
    font-size: 0.82rem;
    color: #888;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3dade;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonials-dot.active {
    background: #00bfa5;
    transform: scale(1.3);
}

.testimonials-note {
    text-align: center;
    color: #999;
    font-size: 0.82rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   Global Reach — illustrative world map
   ========================================================================== */
.global-presence-section {
    padding: 90px 2rem 100px;
    background: linear-gradient(180deg, #101a30 0%, #182642 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.global-presence-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,191,165,0.12) 0%, rgba(0,191,165,0) 70%);
    pointer-events: none;
}

.global-presence-section .section-title {
    color: #fff;
}

.global-presence-section .section-subtext {
    max-width: 650px;
    margin: -2rem auto 3rem;
    color: rgba(255,255,255,0.7);
    font-size: 1.02rem;
    position: relative;
}

/* Stat row */
.gp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 950px;
    margin: 0 auto 4rem;
    position: relative;
}

.gp-stat {
    flex: 1 1 180px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.8rem 1rem;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.gp-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(0,191,165,0.5);
    background: rgba(0,191,165,0.08);
}

.gp-stat .stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00bfa5, #5be8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gp-stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
}

/* Globe + orbiting countries */
.gp-globe-wrap {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.8rem;
    position: relative;
}

.gp-globe {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-globe-core {
    font-size: 4.2rem;
    filter: drop-shadow(0 0 25px rgba(0,191,165,0.55));
    animation: gpFloat 4.5s ease-in-out infinite;
}

.gp-globe-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0,191,165,0.5);
    animation: gpPulse 3s ease-out infinite;
}

.gp-globe-ring.ring-2 {
    animation-delay: 1.5s;
}

@keyframes gpPulse {
    0%   { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes gpFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.gp-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gp-country {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.6rem 1.2rem 0.6rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.gp-country:hover {
    transform: translateY(-4px);
    border-color: #00bfa5;
    background: rgba(0,191,165,0.12);
    box-shadow: 0 10px 24px rgba(0,191,165,0.2);
}

.gp-flag {
    font-size: 1.3rem;
    line-height: 1;
}

/* ==========================================================================
   Contact Section (unchanged)
   ========================================================================== */
.contact {
    padding: 90px 2rem;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #1e3a5f;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: #00bfa5;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bfa5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #0e3b35 0%, #00bfa5 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
    background: linear-gradient(135deg, #2d5986 0%, #00bfa5 100%);
}

/* ==========================================================================
   Footer — expanded multi-column
   ========================================================================== */
footer {
    background: #101a30;
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,191,165,0.18), transparent 70%);
    pointer-events: none;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
    color: #fff;
    letter-spacing: 0.4px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-brand img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-col-about p {
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a::before {
    content: '›';
    color: #00bfa5;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-col-contact .contact-item {
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.footer-col-contact .contact-item-icon {
    font-size: 1.2rem;
    color: #00bfa5;
    margin-top: 2px;
}

.footer-col-contact div {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.6rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.87rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    background: #00bfa5;
    box-shadow: 0 10px 20px rgba(0,191,165,0.4);
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 500;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
}

.whatsapp-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: whatsappPulse 2.2s ease-out infinite;
    z-index: 1;
}

@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
}



/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-visual {
        order: -1;
        margin-bottom: 1rem;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #182642;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-links.open {
        max-height: 400px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .hero, .hero-slides {
        min-height: 620px;
        height: 620px;
    }

    .hero-slide {
        padding: 160px 1.4rem 110px;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide p {
        font-size: 1.05rem;
    }

    .hero-glass-card {
        display: none;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
    flex: 0 0 240px;}

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.4rem;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-col-contact .contact-item {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .about-badge {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


