/* variables and resets */
:root {
    /* Color Palette: Abstract Modern Dark */
    --bg-dark: #0f172a;
    /* Slate 900 base */
    --bg-gradient: linear-gradient(135deg, #020617, #0f172a, #172554);

    /* Accents */
    --accent-primary: #3b82f6;
    /* Bright Blue */
    --accent-secondary: #2dd4bf;
    /* Teal 400 */
    --accent-glow: rgba(59, 130, 246, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0aabf;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Hide default cursor for custom follower */
    cursor: none;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a,
button {
    cursor: none;
    /* Inherit custom cursor */
}

/* =========================================
   Background & Ambient Orbs
   ========================================= */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-gradient);
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%);
}

.orb-2 {
    top: 40%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at center, rgba(45, 212, 191, 0.15), transparent 70%);
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    bottom: -30%;
    left: 20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.3), transparent 70%);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes drift {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-50px) scale(1.1);
    }
}

/* =========================================
   Layout & Container Utility
   ========================================= */
.app-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   Glassmorphism Utilities
   ========================================= */
.glass-panel,
.glass-card,
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* =========================================
   Floating Animations
   ========================================= */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatInner {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-element {
    animation: float 7s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.float-inner {
    animation: floatInner 8s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

/* =========================================
   Typography & Buttons
   ========================================= */
.glow-text {
    text-shadow: 0 0 20px var(--accent-glow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-secondary);
}

/* =========================================
   Navigation
   ========================================= */
.glass-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    border-radius: 100px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 4rem 0;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
}

/* =========================================
   Services Section (Cards)
   ========================================= */
.services-section {
    padding: 6rem 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.glass-card {
    padding: 3rem 2.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px) scale(1.02);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.glass-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.glass-card p {
    color: var(--text-muted);
}

/* =========================================
   Process Timeline
   ========================================= */
.process-section {
    padding: 4rem 0;
}

.process-section .glass-panel {
    padding: 4rem;
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
}

.timeline-step {
    position: relative;
    padding-left: 70px;
    margin-bottom: 3.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover .step-marker {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
}

.step-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-step:hover .step-content {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.04);
}

.step-content h4 {
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

/* =========================================
   Edge Section
   ========================================= */
.edge-section {
    padding: 5rem 0 8rem 0;
}

.edge-card {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(59, 130, 246, 0.05));
}

.edge-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-muted);
}

/* =========================================
   Contact Form
   ========================================= */
.contact-section {
    padding: 6rem 0;
    max-width: 650px;
    margin: 0 auto;
}

.contact-section .glass-panel {
    padding: 4rem 3rem;
}

.form-success-msg {
    text-align: center;
    padding: 2rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-success-msg .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success-msg h3 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    margin-top: 1.5rem;
    border: none;
    font-size: 1.1rem;
    cursor: none;
}

/* =========================================
   Custom Cursor
   ========================================= */
#cursor-dot,
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--accent-secondary);
    border-radius: 50%;
    margin: -3px 0 0 -3px;
    /* Center it */
    transition: width 0.2s, height 0.2s, margin 0.2s, background-color 0.2s;
}

#cursor-trail {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    margin: -15px 0 0 -15px;
    /* Center it */
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, margin 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Hover States for Interactive Elements */
#cursor-dot.hover {
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    background-color: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary), 0 0 30px var(--accent-primary);
}

#cursor-trail.hover {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-color: rgba(59, 130, 246, 0.8);
    background-color: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(2px);
}

/* Hide custom cursor on very small screens where touch is primary */
@media (max-width: 1024px) {

    #cursor-dot,
    #cursor-trail {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .glass-nav {
        flex-direction: column;
        gap: 1.5rem;
        border-radius: 20px;
        padding: 1.5rem;
        text-align: center;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 1.5rem;
        margin: 2rem 0;
    }

    .timeline::before {
        left: 20px;
        /* Keep to the left */
    }

    .timeline-step {
        padding-left: 60px;
    }

    .step-marker {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        left: 1px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .edge-card,
    .glass-panel {
        padding: 2.5rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}