:root {
    --bg-color: #0f0c29;
    --accent-primary: #ff007a;
    --accent-secondary: #00d2ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b2bec3;
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    overflow-x: hidden;
    perspective: 1000px;
    /* Enable 3D space */
}

/* Dynamic Background Mesh */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.4), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 122, 0.2), transparent 25%);
    filter: blur(60px);
    animation: pulseBackground 10s ease-in-out infinite alternate;
}

@keyframes pulseBackground {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbit 20s infinite linear;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: conic-gradient(from 0deg, #ff007a, #3a86ff);
    top: -200px;
    left: -200px;
    mix-blend-mode: screen;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: conic-gradient(from 180deg, #00d2ff, #70a1ff);
    bottom: -100px;
    right: -100px;
    animation-direction: reverse;
    mix-blend-mode: screen;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translate(20px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(20px) rotate(-360deg);
    }
}

/* Layout */
.container {
    width: 90%;
    max-width: 650px;
    z-index: 10;
    padding: 20px;
    transform-style: preserve-3d;
    /* Key for tilt */
}

/* Glassmorphism Cards */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    padding: 50px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* Subtle shine effect on cards */
.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Typography */
h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #b2bec3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
}

.print-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.3));
}

/* Form Styles */
.input-group {
    display: flex;
    gap: 10px;
    position: relative;
}

input,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--accent-secondary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

button {
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 122, 0.3);
}

/* Contact Section */
.contact-card {
    padding: 0;
    /* Clear padding for inner wrapper */
    overflow: visible;
    /* Prepare for expansion */
}

/* Header part of contact card */
.contact-header {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background: rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper.open {
    max-height: 500px;
    opacity: 1;
    padding: 30px 40px 40px;
    border-top: 1px solid var(--glass-border);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-secondary:hover {
    background: white;
    color: #000;
    transform: scale(1.02);
}

.form-status {
    margin-top: 15px;
    font-weight: 600;
    min-height: 20px;
}

.form-status.success {
    color: #55efc4;
}

.form-status.error {
    color: #ff7675;
}

/* Interactive Elements inside cards need to be on top */
.hero-card>* {
    transform: translateZ(20px);
    /* 3D layer */
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .glass {
        padding: 30px 20px;
    }

    .input-group,
    .form-row {
        flex-direction: column;
    }

    .btn-primary {
        justify-content: center;
        width: 100%;
    }
}

/* Loader */
.fa-spinner {
    margin-right: 8px;
}