/* =========================================
   Noahscribe Limited - Global Styles
   ========================================= */

:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-bg-dark: #0A192F;
    /* Deep Navy */

    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-text-light: #F1F5F9;

    --color-primary: #0A192F;
    /* Dark Blue / Navy */
    --color-secondary: #2563EB;
    /* Electric Blue Accent */
    --color-accent: #3B82F6;

    --color-border: #E2E8F0;
    --color-border-dark: #1E293B;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --section-padding: 6rem;
    --container-width: 1200px;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
    color: var(--color-text-main);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.border-y {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.text-center {
    text-align: center;
}

.text-white {
    color: white !important;
}

.text-light-gray {
    color: var(--color-text-light) !important;
}

.position-relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-3xl {
    max-width: 48rem;
}

.margin-bottom-large {
    margin-bottom: 2.5rem;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.btn-nav {
    padding: 0.5rem 1.25rem;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.875rem;
}

.btn-nav:hover {
    background-color: var(--color-secondary);
    color: white;
}

.full-width {
    width: 100%;
}

/* Typography utility */
.section-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.125rem;
    max-width: 42rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 50%),
        radial-gradient(circle at bottom left, rgba(10, 25, 47, 0.05), transparent 40%);
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Decorative Accents */
.hero-background-accent {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(10, 25, 47, 0.05));
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
    animation: float 10s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 30px) scale(1.05);
    }
}

/* =========================================
   About Section
   ========================================= */
.mission-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--color-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
}

.mission-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.mission-box p {
    font-size: 1.5rem;
    color: var(--color-text-main);
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
}

/* =========================================
   Services Section
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-secondary);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    margin-bottom: 0;
}

/* =========================================
   Approach Section
   ========================================= */
.approach-container {
    justify-content: space-between;
}

.approach-text {
    flex: 1;
    max-width: 600px;
}

.approach-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.blockquote-style {
    margin-top: 2rem;
    font-size: 1.75rem;
    color: var(--color-primary);
    line-height: 1.3;
}

.blockquote-style p {
    color: var(--color-primary);
}

.tech-node-svg {
    width: 350px;
    height: 350px;
    animation: float-node 6s ease-in-out infinite alternate;
}

.tech-node-svg svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.orbital-ring {
    transform-origin: center;
    animation: spin 40s linear infinite;
}

.orbital-ring-reverse {
    transform-origin: center;
    animation: spin-reverse 25s linear infinite;
}

.center-pulse {
    animation: pulse-ring 3s infinite alternate;
}

.node-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-line 4s ease-in-out infinite alternate;
}

.data-packet {
    opacity: 0;
}

.p1 {
    animation: packet-flash 4s infinite 0.5s;
}

.p2 {
    animation: packet-flash 4s infinite 1.5s;
}

.p3 {
    animation: packet-flash 4s infinite 2.5s;
}

.p4 {
    animation: packet-flash 4s infinite 3.5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@keyframes float-node {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-15px);
    }
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 200;
        opacity: 0.1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

@keyframes packet-flash {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* =========================================
   Global Section
   ========================================= */
.hero-dark {
    background-color: var(--color-bg-dark);
    color: white;
    padding: 8rem 0;
}

.global-content h2 {
    color: white;
}

.global-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 1;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-form-placeholder {
    flex: 1;
    background: var(--color-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.simple-form .form-group {
    margin-bottom: 1.5rem;
}

.simple-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-main);
}

.simple-form input,
.simple-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: var(--color-bg-light);
}

.simple-form input:focus,
.simple-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: var(--color-bg);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Animations & Utils
   ========================================= */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .flex-row {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .approach-text {
        margin: 0 auto;
        text-align: center;
    }

    .approach-text .section-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-placeholder {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-background-accent {
        display: none;
    }

    .mission-box p {
        font-size: 1.125rem;
    }

    .blockquote-style {
        font-size: 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .contact-form-placeholder {
        padding: 1.5rem;
    }
}