:root {
    --bg-color: #f6f8fb;
    --text-primary: #1c1d21;
    --text-secondary: #5b6270;
    --brand-accent: #0f52ba;
    --brand-accent-glow: rgba(15, 82, 186, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* for custom cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    margin-top: -3px;
    margin-left: -3px;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    /* Do not transition transform */
    margin-top: -15px;
    margin-left: -15px;
}

/* Aurora Background (Performance Optimized) */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transform: translateZ(0);
    animation: drift 20s infinite alternate linear;
}

.aurora-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(15, 82, 186, 0.12) 0%, transparent 60%);
    top: -15%;
    left: -15%;
}

.aurora-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(72, 198, 239, 0.15) 0%, transparent 60%);
    bottom: -15%;
    right: -15%;
    animation-delay: -5s;
}

.aurora-3 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(111, 134, 214, 0.1) 0%, transparent 60%);
    top: 30%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(10vw, -10vh, 0);
    }
}

/* Glassmorphism Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand span {
    color: var(--brand-accent);
}

main {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.gradient-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #09090b 0%, #60606b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.acronym-reveal {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    padding-left: 10px;
    border-left: 2px solid var(--brand-accent);
}

.acronym-reveal strong {
    color: rgba(0, 0, 0, 0.8);
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s;
    border: none;
    will-change: transform;
}

.magnetic-btn:hover {
    box-shadow: 0 10px 30px var(--brand-accent-glow);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 0;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.12);
}

.glass-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(15, 82, 186, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 10rem 0;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-sub {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-accent);
}

option {
    background: var(--bg-color);
    color: var(--text-primary);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    background: var(--brand-accent);
    color: white;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Non-touch hover override */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto;
    }
}