:root {
    --primary: #D85803;
    --bg-color: #141414;
    --heading-color: #F0E3DE;
    --paragraph-color: rgba(240, 227, 222, 0.75);
    --container-bg: #282828;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--heading-color);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Interactive layers */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
    transition: background 0.1s ease;
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: var(--final-opacity, 0.5);
    }

    90% {
        opacity: var(--final-opacity, 0.5);
    }

    100% {
        transform: translateY(-110vh) translateX(100px);
        opacity: 0;
    }
}

/* Add a subtle glow in the background behind the globe */
body::before {
    content: '';
    position: absolute;
    right: -10%;
    top: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(216, 88, 3, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.ambient-cloud {
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at 30% 70%, rgba(216, 88, 3, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(216, 88, 3, 0.05) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: cloudDrift 20s ease-in-out infinite alternate;
}

@keyframes cloudDrift {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }

    100% {
        transform: scale(1.1) translate(3%, 3%) rotate(2deg);
    }
}

.container {
    width: 96%;
    max-width: 1600px;
    height: 90vh;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 3rem;
    overflow: hidden;
}

/* Dotted Margin Lines — fixed so they never cause scroll */
.page-border {
    position: fixed;
    z-index: 2;
    pointer-events: none;
}

.line-left {
    top: 0;
    bottom: 0;
    left: calc(50% - min(800px, 48vw));
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(240, 227, 222, 0.18) 0px, rgba(240, 227, 222, 0.18) 8px, transparent 8px, transparent 14px);
}

.line-right {
    top: 0;
    bottom: 0;
    right: calc(50% - min(800px, 48vw));
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(240, 227, 222, 0.18) 0px, rgba(240, 227, 222, 0.18) 8px, transparent 8px, transparent 14px);
}

.line-top {
    top: 5vh;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, rgba(240, 227, 222, 0.18) 0px, rgba(240, 227, 222, 0.18) 8px, transparent 8px, transparent 14px);
}

.line-bottom {
    bottom: 5vh;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, rgba(240, 227, 222, 0.18) 0px, rgba(240, 227, 222, 0.18) 8px, transparent 8px, transparent 14px);
}

header {
    padding: 1.2rem 0;
    animation: fadeInDown 1s ease-out forwards;
}

@media (min-width: 1200px) {
    header {
        padding: 0.6rem 0;
    }
}

.logo {
    display: inline-block;
    transition: transform 0.2s ease-out;
}

.logo img {
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0px 4px 15px rgba(216, 88, 3, 0.5));
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contact Bar */
.contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(216, 88, 3, 0.2);
    border-radius: 50px;
    background: rgba(40, 40, 40, 0.5);
    backdrop-filter: blur(10px);
    width: fit-content;
    align-self: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    padding-right: 1.2rem;
    border-right: 1px solid rgba(216, 88, 3, 0.3);
    white-space: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--paragraph-color);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--paragraph-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(216, 88, 3, 0.6);
}

.contact-divider {
    width: 1px;
    height: 18px;
    background: rgba(240, 227, 222, 0.2);
}

.content {
    max-width: 650px;
    position: relative;
}

.title-animate {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.title-animate:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(216, 88, 3, 0.4), 0 5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px) !important;
}

.tagline {
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.1s forwards;
}

/* Accent divider under title */
.title-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin-bottom: 1.2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Status chip */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.8rem;
    padding: 6px 14px;
    border: 1px solid rgba(216, 88, 3, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    background: rgba(216, 88, 3, 0.05);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.72rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}


.subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    display: inline;
    /* For typing cursor to follow immediately */
    min-height: 2rem;
    background: linear-gradient(90deg, #00f0ff, #a855f7, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2rem;
    background-color: var(--primary);
    margin-left: 5px;
    vertical-align: text-bottom;
    opacity: 0;
    animation: fadeInCursor 0.1s forwards 1.2s;
    /* Show when typing starts */
}

.typing-cursor.blink {
    animation: blinkCursor 1s step-end infinite;
}

@keyframes fadeInCursor {
    to {
        opacity: 1;
    }
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* Globe Animation */
.globe-container {
    position: relative;
    width: 550px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transition: transform 0.1s linear;
    opacity: 0;
    animation: fadeInRight 1.5s ease-out 0.5s forwards;
    cursor: grab;
}

.globe-container:active {
    cursor: grabbing;
}

.globe-container:hover .core {
    box-shadow: 0 0 80px rgba(216, 88, 3, 0.4);
    background: radial-gradient(circle, rgba(216, 88, 3, 0.25) 0%, transparent 60%);
}

.globe-container:hover .orbit {
    border-color: rgba(240, 227, 222, 0.2);
}

.globe {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    animation: rotateGlobe 30s linear infinite;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(216, 88, 3, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(216, 88, 3, 0.2);
    transition: all 0.5s ease;
    animation: coreBreathe 4s ease-in-out infinite;
}

@keyframes coreBreathe {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(216, 88, 3, 0.1);
        background: radial-gradient(circle, rgba(216, 88, 3, 0.1) 0%, transparent 60%);
    }

    50% {
        box-shadow: 0 0 80px rgba(216, 88, 3, 0.3);
        background: radial-gradient(circle, rgba(216, 88, 3, 0.2) 0%, transparent 60%);
    }
}

.orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(240, 227, 222, 0.1);
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.5s ease;
}

.equator {
    transform: rotateX(90deg);
    border-color: rgba(216, 88, 3, 0.5);
}

.meridian {
    transform: rotateY(0deg);
    border-style: dashed;
}

.orbit-1 {
    transform: rotateX(70deg) rotateY(0deg);
    border-style: dashed;
    border-color: rgba(216, 88, 3, 0.4);
}

.orbit-2 {
    transform: rotateX(70deg) rotateY(45deg);
}

.orbit-3 {
    transform: rotateX(70deg) rotateY(90deg);
    border-style: dashed;
    border-color: rgba(216, 88, 3, 0.4);
}

.orbit-4 {
    transform: rotateX(70deg) rotateY(135deg);
}

/* Data Comets */
.comet-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comet {
    position: absolute;
    top: -3px;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--primary), 0 0 40px var(--primary);
}

.speed-1 {
    animation: spinZ 4s linear infinite;
}

.speed-2 {
    animation: spinZ 5s linear infinite reverse;
}

.speed-3 {
    animation: spinZ 3.5s linear infinite;
}

.speed-4 {
    animation: spinZ 4.5s linear infinite reverse;
}

@keyframes spinZ {
    100% {
        transform: rotateZ(360deg);
    }
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
}

/* 3D positioned nodes around the globe */
.node-1 {
    top: 15%;
    left: 30%;
    transform: translateZ(100px);
    animation: pulse 2s infinite;
}

.node-2 {
    top: 70%;
    left: 80%;
    transform: translateZ(-50px);
    animation: pulse 2.5s infinite 0.5s;
}

.node-3 {
    top: 50%;
    left: 10%;
    transform: translateZ(50px);
    animation: pulse 1.8s infinite 1s;
}

.node-4 {
    top: 85%;
    left: 40%;
    transform: translateZ(80px);
    animation: pulse 2.2s infinite 0.3s;
}

.node-5 {
    top: 20%;
    left: 75%;
    transform: translateZ(-80px);
    background-color: var(--heading-color);
    box-shadow: 0 0 10px var(--heading-color);
    animation: pulse 3s infinite;
}

/* Extra floating nodes inside the globe */
.float-node-1 {
    top: 40%;
    left: 50%;
    transform: translateZ(20px);
    width: 4px;
    height: 4px;
    opacity: 0.5;
    animation: floatNode 8s ease-in-out infinite;
}

.float-node-2 {
    top: 60%;
    left: 40%;
    transform: translateZ(-30px);
    width: 3px;
    height: 3px;
    opacity: 0.3;
    animation: floatNode 6s ease-in-out infinite 1s;
}

.float-node-3 {
    top: 30%;
    left: 60%;
    transform: translateZ(40px);
    width: 5px;
    height: 5px;
    opacity: 0.6;
    animation: floatNode 10s ease-in-out infinite 2s;
}


/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateGlobe {
    0% {
        transform: rotateY(0deg) rotateX(15deg) rotateZ(5deg);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

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

@keyframes floatNode {

    0%,
    100% {
        transform: translateZ(20px) translateY(0);
    }

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

/* ===== RESPONSIVENESS ===== */

/* Tablet landscape & small desktop */
@media (max-width: 1100px) {
    .container {
        width: 96%;
        padding: 1rem 2rem;
        height: 95vh;
    }

    .globe-container {
        width: 420px;
        height: 420px;
    }

    .globe {
        width: 280px;
        height: 280px;
    }

    .core {
        width: 190px;
        height: 190px;
    }

    .title-animate {
        font-size: 4.5rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1.9rem;
    }
}

/* Tablet portrait */
@media (max-width: 850px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
    }

    .container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 1.5rem 1.5rem;
    }

    main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 1.5rem 0;
        text-align: center;
    }

    .content {
        max-width: 100%;
    }

    .title-divider {
        margin: 0 auto 1.2rem;
    }

    .title-animate {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.6rem;
    }

    .globe-container {
        width: 360px;
        height: 360px;
        flex-shrink: 0;
    }

    .globe {
        width: 240px;
        height: 240px;
    }

    .core {
        width: 170px;
        height: 170px;
    }

    /* Dotted lines — hide all on tablet */
    .line-left {
        display: none !important;
    }

    .line-right {
        display: none !important;
    }

    .line-top {
        display: none !important;
    }

    .line-bottom {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
    }

    .container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 1rem 1rem;
    }

    main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .content {
        max-width: 100%;
    }

    .title-animate {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .title-divider {
        margin: 0 auto 1rem;
    }

    .globe-container {
        width: 280px;
        height: 280px;
    }

    .globe {
        width: 190px;
        height: 190px;
    }

    .core {
        width: 130px;
        height: 130px;
    }

    .logo img {
        height: 48px;
    }

    /* Dotted lines — hide all on mobile */
    .line-left {
        display: none !important;
    }

    .line-right {
        display: none !important;
    }

    .line-top {
        display: none !important;
    }

    .line-bottom {
        display: none !important;
    }

    .contact-bar {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.65rem 1.2rem;
        border-radius: 16px;
        width: 90%;
        max-width: 340px;
        align-self: center;
    }

    .contact-divider {
        width: 60px;
        height: 1px;
    }

    .contact-item {
        font-size: 0.8rem;
    }
}