/* ---------- CSS Variables & Reset ---------- */
:root {
    --bg-color: #03040b;
    --bg-secondary: #0a0c16;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-light: #60a5fa;
    --accent-purple: #7c3aed;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);

    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-text: linear-gradient(to right, var(--accent-blue-light), #c084fc);

    --nav-height: 80px;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography & Utility ---------- */
.title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ---------- Background Glows & Particles ---------- */
.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.blur-purple {
    background: var(--accent-purple);
}

.blur-blue {
    background: var(--accent-blue);
}

.top-left {
    top: -200px;
    left: -200px;
}

.top-right {
    top: 10%;
    right: -200px;
}

.middle-left {
    top: 50%;
    left: -300px;
}

.bottom-right {
    bottom: -200px;
    right: 10%;
}

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.8) 0%, rgba(96, 165, 250, 0) 70%);
    opacity: 0;
    animation: drift linear infinite;
}

@keyframes drift {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) scale(1.5);
        opacity: 0;
    }
}

/* Main content needs to be above particles */
main,
header,
footer {
    position: relative;
    z-index: 10;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(3, 4, 11, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(3, 4, 11, 0.9);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ---------- Hero Section ---------- */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 95%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1200px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(10deg);
}

.floating-card {
    position: absolute;
    background: rgba(10, 12, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(12px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.floating-card .h-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-blue-light);
    margin-bottom: 8px;
}

.floating-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-card strong {
    font-size: 1.25rem;
    font-weight: 600;
}

.c1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    z-index: 3;
}

.c2 {
    top: 40%;
    right: -5%;
    animation-delay: 2s;
    z-index: 2;
}

.c3 {
    bottom: 10%;
    left: 15%;
    animation-delay: 4s;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0px);
    }

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

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

/* ---------- Services Section ---------- */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: radial-gradient(circle, var(--accent-blue-light) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::after {
    opacity: 0.5;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue-light);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Pipeline / Timeline ---------- */
.pipeline {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: 17px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue-light);
    box-shadow: 0 0 10px var(--accent-blue-light);
}

.tl-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tl-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- Benefits ---------- */
.benefits {
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.benefit-col {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
}

.b-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
}

.b-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.b-list li:last-child {
    margin-bottom: 0;
}

.b-list .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.b-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* ---------- Tech Stack ---------- */
.tech-stack {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.cloud-brands {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.brand-item {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-blue-light);
    padding: 16px 32px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
}

.tags-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.tags-cluster span {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tags-cluster span:hover {
    color: white;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* ---------- Case Studies ---------- */
.cases {
    padding: 120px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--card-hover);
}

.case-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.case-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta {
    padding: 120px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.input-field {
    flex: 1;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--accent-blue-light);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a,
.address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.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;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}