/*
--- DIGITAL MARKETING WEBSITE STYLESHEET ---
Theme: Cosmic Explorer
Primary Colors: Deep Space Navy, Glowing Cyan, White
Font: Space Grotesk
*/

/* --- 1. CSS VARIABLES & RESET --- */
:root {
    --bg-color: #f2f4ff;
    --card-bg: #ffffff;
    --border-color: rgba(136, 93, 255, 0.2);
    --accent-primary: #885DFF;
    /* Soft Violet */
    --accent-secondary: #00D1FF;
    /* Cyan Glow */
    --text-color: #2A2A3A;
    --heading-color: #14142B;
    --font-primary: 'Space Grotesk', sans-serif;
    --header-height: 80px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- 2. GLOBAL & UTILITY STYLES --- */
.starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle fill="%23fff" cx="25" cy="25" r="0.5"/><circle fill="%23fff" cx="75" cy="75" r="0.5"/><circle fill="%23fff" cx="50" cy="90" r="0.25"/><circle fill="%23fff" cx="90" cy="10" r="0.25"/></svg>');
    background-size: 100px 100px;
    opacity: 0.2;
    z-index: -1;
    animation: pan 120s linear infinite;
}

@keyframes pan {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-50vw, -50vh);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 5px var(--accent-primary);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.section-title p {
    margin: 15px auto 0;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: var(--accent-primary);
    color: var(--bg-color);
    border: 2px solid var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent-primary);
}

/* --- 3. HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(12, 15, 26, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo img {
    height: 35px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: white;
    font-weight: 500;
}

.nav-link.active {
    color: var(--accent-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background-color: var(--heading-color);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 40px;
}

.orbital-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
}

.ring:nth-child(1) {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 600px;
    height: 600px;
    margin: -300px 0 0 -300px;
    animation-delay: 2s;
}

.ring:nth-child(3) {
    width: 800px;
    height: 800px;
    margin: -400px 0 0 -400px;
    animation-delay: 4s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. MODULES SECTION (SERVICES) --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

.module-icon {
    margin: 0 auto 20px;
}

.module-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-primary);
}

.module-card h3 {
    margin-bottom: 15px;
}

/* --- 6. FLIGHT PLAN SECTION (PROCESS) --- */
.flightplan-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.flightplan-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--border-color), transparent);
}

.timeline-event {
    position: relative;
    padding: 20px 0 20px 60px;
}

.event-point {
    position: absolute;
    left: 10px;
    top: 28px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.event-details h4 {
    color: var(--accent-primary);
    margin-bottom: 5px;
}

/* --- 7. OPPORTUNITY CONSTELLATION --- */
.constellation-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.constellation-goals h4 {
    margin-bottom: 20px;
}

.constellation-goals ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.goal-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.goal-btn.active {
    background: var(--accent-primary);
    color: var(--bg-color);
    border-color: var(--accent-primary);
}

.report-link {
    margin-top: 30px;
}

.constellation-map {
    position: relative;
    min-height: 400px;
}

.constellation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.constellation-line {
    stroke: var(--accent-secondary);
    stroke-width: 1px;
    stroke-dasharray: 4;
    animation: draw-line 1s ease-out forwards;
}

@keyframes draw-line {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.star {
    position: absolute;
    width: 80px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.star::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--text-color);
    border-radius: 50%;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.star.active {
    color: var(--accent-primary);
}

.star.active::before {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    transform: scale(1.5);
}

#seo-star {
    top: 10%;
    left: 20%;
}

#ppc-star {
    top: 25%;
    left: 70%;
}

#content-star {
    top: 60%;
    left: 10%;
}

#social-star {
    top: 80%;
    left: 50%;
}

#analytics-star {
    top: 50%;
    left: 45%;
}

/* --- 8. SECTORS SECTION --- */
.sectors-section {
    background-color: var(--bg-color);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sector-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.sector-card:hover {
    border-color: var(--accent-primary);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 5s ease;
}

.sector-card:hover::before {
    transform: scale(1.1);
}

.sector-card:nth-child(1)::before {
    background-image: url('https://dummyimage.com/600x800/141a2c/00ccff&text=Deep+Tech');
}

.sector-card:nth-child(2)::before {
    background-image: url('https://dummyimage.com/600x800/141a2c/00ccff&text=FinTech');
}

.sector-card:nth-child(3)::before {
    background-image: url('https://dummyimage.com/600x800/141a2c/00ccff&text=E-comm');
}

.sector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(12, 15, 26, 0.9));
}

.sector-title {
    position: relative;
    z-index: 1;
}

.sector-title h3 {
    color: #fff;
}

/* --- 9. TESTIMONIALS SECTION --- */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slide p {
    font-size: 1.5rem;
    color: var(--heading-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.author {
    font-weight: 500;
}

.author strong {
    display: block;
    color: var(--heading-color);
}

/* --- 10. CTA SECTION --- */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* --- 11. FOOTER --- */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--heading-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-col address {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: normal;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- 12. OTHER PAGES --- */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.page-header p {
    max-width: 600px;
    margin: 20px auto 0;
}

.contact-page-section {
    padding-bottom: 100px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--heading-color);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 1px solid var(--accent-primary);
}

.legal-content .container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 50px;
}

.legal-content h2 {
    margin: 30px 0 15px;
    color: var(--accent-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    list-style-type: '»';
    padding-left: 20px;
}

.legal-content li {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* --- 13. RESPONSIVENESS --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .modules-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .constellation-wrapper {
        grid-template-columns: 1fr;
    }

    .constellation-goals {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- 14. SCROLL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.module-card:nth-child(2),
.timeline-event:nth-child(2) {
    transition-delay: 0.1s;
}

.module-card:nth-child(3),
.timeline-event:nth-child(3) {
    transition-delay: 0.2s;
}

.timeline-event:nth-child(4) {
    transition-delay: 0.3s;
}