/* ===== Base ===== */
.domain-page {
    background: #0b1320;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.domain-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px;
    gap: 60px;
}

.domain-eyebrow {
    color: #1cc88a;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.domain-hero h1 {
    font-size: 3.2rem;
    margin: 20px 0;
    line-height: 1.15;
}

.domain-hero p {
    max-width: 540px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
}

.domain-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.domain-btn-primary {
    background: linear-gradient(135deg, #1cc88a, #17a673);
    padding: 16px 36px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(28,200,138,0.45);
    transition: all .35s ease;
}

    .domain-btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 60px rgba(28,200,138,0.65);
    }

.domain-btn-secondary {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 16px 38px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}

/* Hero Visual (Tech Network + Globe) */
.domain-hero-visual {
    position: relative;
    width: 420px;
    height: 420px;
}

/* Glow Layers */
.domain-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.domain-green {
    background: #1cc88a;
    width: 220px;
    height: 220px;
    top: 40px;
    left: 40px;
}

.domain-blue {
    background: #4e73df;
    width: 260px;
    height: 260px;
    bottom: 30px;
    right: 30px;
    animation-delay: 2s;
}

.domain-frame {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
}

/* ===== SERVICES ===== */
.domain-services {
    padding: 120px 60px;
    background: #0f172a;
}

    .domain-services h2 {
        text-align: center;
        font-size: 2.6rem;
        margin-bottom: 70px;
    }

.domain-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Large tablets */
@media (max-width: 1200px) {
    .domain-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .domain-cards {
        grid-template-columns: 1fr;
    }

    .domain-services {
        padding: 80px 20px;
    }

        .domain-services h2 {
            font-size: 2rem;
            margin-bottom: 40px;
        }
}


.domain-card {
    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 20px;
    transition: transform .3s ease;
}

    .domain-card:hover {
        transform: translateY(-10px);
    }

/* ===== WHY US ===== */
.domain-why {
    padding: 120px 60px;
}

.domain-why-inner {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.domain-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .domain-reasons {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .domain-why {
        padding: 80px 30px;
    }
}

@media (max-width: 576px) {
    .domain-why {
        padding: 60px 20px;
    }
}

/* ===== CTA ===== */
.domain-cta {
    padding: 140px 40px;
    background: radial-gradient(circle at 20% 30%, rgba(28,200,138,0.35), transparent 60%), radial-gradient(circle at 80% 70%, rgba(78,115,223,0.35), transparent 60%), #0b1320;
}

.domain-cta-card {
    max-width: 850px;
    margin: auto;
    text-align: center;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    padding: 80px;
    border-radius: 30px;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .domain-cta-card {
        padding: 40px 25px;
    }

    .domain-cta {
        padding: 80px 20px;
    }
}


/* ================= 3D Globe Styles ================= */
.domain-hero-visual .globe-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    perspective: 1500px;
    transform-style: preserve-3d;
    box-shadow: 0 0 50px rgba(28,200,138,0.3), 0 0 100px rgba(15,100,200,0.2);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(11,19,32,0.8) 0%, rgba(5,10,18,0.98) 100%);
    border: 1px solid rgba(28,200,138,0.2);
}

.domain-hero-visual .globe {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateGlobe 30s linear infinite;
}

.domain-hero-visual .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(28,200,138,0.7);
    transform-style: preserve-3d;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(28,200,138,0.3);
}

    .domain-hero-visual .ring.equator {
        width: 100%;
        height: 100%;
        transform: translate(-50%,-50%) rotateX(0deg);
    }

    .domain-hero-visual .ring.meridian-1 {
        width: 100%;
        height: 100%;
        transform: translate(-50%,-50%) rotateY(0deg);
    }

    .domain-hero-visual .ring.meridian-2 {
        width: 100%;
        height: 100%;
        transform: translate(-50%,-50%) rotateY(45deg);
    }

    .domain-hero-visual .ring.meridian-3 {
        width: 100%;
        height: 100%;
        transform: translate(-50%,-50%) rotateY(90deg);
    }

    .domain-hero-visual .ring.meridian-4 {
        width: 100%;
        height: 100%;
        transform: translate(-50%,-50%) rotateY(135deg);
    }

    .domain-hero-visual .ring.latitude-1 {
        width: 86%;
        height: 86%;
        transform: translate(-50%,-50%) rotateX(90deg) translateZ(70px);
    }

    .domain-hero-visual .ring.latitude-2 {
        width: 50%;
        height: 50%;
        transform: translate(-50%,-50%) rotateX(90deg) translateZ(140px);
    }

    .domain-hero-visual .ring.latitude-3 {
        width: 86%;
        height: 86%;
        transform: translate(-50%,-50%) rotateX(90deg) translateZ(-70px);
    }

    .domain-hero-visual .ring.latitude-4 {
        width: 50%;
        height: 50%;
        transform: translate(-50%,-50%) rotateX(90deg) translateZ(-140px);
    }

.domain-hero-visual .globe-core {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(28,200,138,0.2) 0%, rgba(15,100,200,0.1) 40%, transparent 70%);
    box-shadow: inset 0 0 60px rgba(28,200,138,0.2), 0 0 40px rgba(28,200,138,0.1);
    transform-style: preserve-3d;
}

/* Globe Animation */
@keyframes rotateGlobe {
    0% {
        transform: rotateX(-20deg) rotateY(0deg) rotateZ(5deg);
    }

    100% {
        transform: rotateX(-20deg) rotateY(360deg) rotateZ(5deg);
    }
}

/* ================= Moons Orbit ================= */
/* Orbit container rotates */
.domain-hero-visual .moon-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
}

    /* Moon itself is offset from center */
    .domain-hero-visual .moon-orbit .moon {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateZ(150px); /* distance from globe center */
        transform-style: preserve-3d;
    }

/* Moon text */
.domain-hero-visual .moon-text-container {
    position: absolute;
    transform-style: preserve-3d;
}

.domain-hero-visual .moon-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px rgba(255,255,255,0.9),0 0 25px rgba(28,200,138,0.8),0 0 40px rgba(100,200,255,0.6);
    white-space: nowrap;
    backface-visibility: hidden;
}

.domain-hero-visual .moon-trail {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(28,200,138,0.9) 0%, rgba(28,200,138,0.3) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(28,200,138,0.7);
    opacity: 0.8;
    transform: translate(-50%, -50%);
}

/* Orbit Animations applied to containers */
.domain-hero-visual .moon-orbit.moon-1 {
    animation: orbitMoon1 50s linear infinite;
}

.domain-hero-visual .moon-orbit.moon-2 {
    animation: orbitMoon2 40s linear infinite;
}

.domain-hero-visual .moon-orbit.moon-3 {
    animation: orbitMoon3 40s linear infinite;
}

.domain-hero-visual .moon-orbit.moon-4 {
    animation: orbitMoon4 50s linear infinite;
}

/* Keyframes for moon orbits */
@keyframes orbitMoon1 {
    0% {
        transform: rotateX(180deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(180deg) rotateY(360deg);
    }
}

@keyframes orbitMoon2 {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(0deg) rotateY(360deg);
    }
}

@keyframes orbitMoon3 {
    0% {
        transform: rotateX(-45deg) rotateY(180deg);
    }

    100% {
        transform: rotateX(-45deg) rotateY(540deg);
    }
}

@keyframes orbitMoon4 {
    0% {
        transform: rotateX(90deg) rotateY(180deg);
    }

    100% {
        transform: rotateX(90deg) rotateY(540deg);
    }
}

/* Star Background */
.domain-hero-visual .star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration,3s) ease-in-out infinite var(--delay,0s);
    pointer-events: none;
}

@keyframes twinkle {
    0%,100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


/* ================= RESPONSIVE ================= */

/* Large tablets */
@media (max-width: 1200px) {
    .domain-hero {
        padding: 100px 40px;
        gap: 40px;
    }

        .domain-hero h1 {
            font-size: 2.6rem;
        }

    .domain-hero-visual {
        width: 340px;
        height: 340px;
    }
}

/* Tablets */
@media (max-width: 992px) {

    .domain-hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 30px;
    }

        .domain-hero p {
            margin: 0 auto 30px auto;
        }

    .domain-actions {
        justify-content: center;
    }

    .domain-hero-visual {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }
}

/* Mobile */
@media (max-width: 576px) {

    .domain-hero {
        padding: 60px 20px;
    }

        .domain-hero h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

    .domain-eyebrow {
        font-size: 0.7rem;
    }

    .domain-btn-primary,
    .domain-btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    .domain-hero-visual {
        width: 240px;
        height: 240px;
    }
}


/* Footer */

.footer-names {
    color: white;
}
.p,footer {
    font-size: 1rem;
    color: white;

}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #38bdf8;
}

.footer-cta {
    background: linear-gradient(135deg, #203a43, #2c5364);
    text-align: center;
    padding: 3rem 1rem;
}

.footer-cta h3 {
    color: lightgray;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-social {
    margin-top: 1rem;
}

    .footer-social a {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: #cbd5f5;
        text-decoration: none;
        transition: 0.3s ease;
    }

        .footer-social a:hover {
            color: #0a66c2;
        }

    .footer-year {
        color: white;
        text-align: center;
        padding: 15px;
    }


.linkedin-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}
