/* CSS Variables */
:root {
    --bg-color: #0c0e12;
    --bg-secondary: #13161c;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-color: #3b82f6;
    /* Tech Blue */
    --primary-hover: #2563eb;
    --accent-color: #8b5cf6;
    /* Purple */
    --success-color: #10b981;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --nav-height: 80px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    height: var(--nav-height);
    background-color: rgba(12, 14, 18, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Full viewport height */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -50px;
    left: -100px;
    animation: float 10s infinite ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -100px;
    right: -100px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 40px);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Value Props */
.value-props {
    background-color: var(--bg-secondary);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Services / Split Layout */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Abstract Connection Visual (SVG Animation) */
.connection-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-circle {
    animation: pulse-node 3s infinite ease-in-out;
}

.node-circle:nth-child(1) {
    animation-delay: 0s;
}

.node-circle:nth-child(2) {
    animation-delay: 1s;
}

.node-circle:nth-child(3) {
    animation-delay: 2s;
}

@keyframes pulse-node {

    0%,
    100% {
        stroke-width: 3;
        filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
        transform-origin: center;
        transform: scale(1);
    }

    50% {
        stroke-width: 5;
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
        transform-origin: center;
        transform: scale(1.1);
    }
}

/* Data Packets Animation */
.data-packet {
    offset-path: path('M150 50 L50 250');
    /* Default path */
    animation: move-packet 3s infinite linear;
    opacity: 0;
}

.packet-1 {
    offset-path: path('M150 50 L50 250');
    animation-delay: 0s;
    fill: var(--primary-color);
}

.packet-2 {
    offset-path: path('M50 250 L250 250');
    animation-delay: 1s;
    fill: var(--accent-color);
}

.packet-3 {
    offset-path: path('M250 250 L150 50');
    animation-delay: 2s;
    fill: var(--success-color);
}

@keyframes move-packet {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* Connecting Lines Pulse */
.conn-line {
    stroke-dasharray: 10;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Contact Section */
.cta-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0f1218 100%);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    /* Mobile Menu could be implemented */

    .hero-title {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .split-visual {
        width: 100%;
        height: 300px;
    }

    .contact-form {
        padding: 2rem;
    }
}