/* IC-Flowtime Theme - Premium & Modern */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Deep Ocean / Aurora */
    --ft-bg-dark: #030712;
    --ft-bg-panel: rgba(255, 255, 255, 0.03);
    --ft-primary: #6366f1;
    /* Indigo */
    --ft-secondary: #ec4899;
    /* Pink */
    --ft-accent: #06b6d4;
    /* Cyan */
    --ft-text-main: #f8fafc;
    --ft-text-muted: #94a3b8;
    --ft-border: rgba(255, 255, 255, 0.08);
    --ft-glass-highlight: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --ft-gradient-main: linear-gradient(135deg, var(--ft-primary), var(--ft-secondary));
    --ft-gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Spacing & Radius */
    --ft-radius-sm: 8px;
    --ft-radius-md: 16px;
    --ft-radius-lg: 24px;
    --ft-radius-pill: 9999px;

    /* Transitions */
    --ft-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--ft-bg-dark);
    color: var(--ft-text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Dynamic Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -2;
    animation: bg-drift 30s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

@keyframes bg-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--ft-text-main);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    background: var(--ft-gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Layout Utilities */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.container-custom {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Components: Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem;
    transition: transform 0.4s var(--ft-ease), border-color 0.4s var(--ft-ease);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Components: Buttons */
.btn-flow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--ft-radius-pill);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ft-ease);
    cursor: pointer;
    border: none;
    outline: none;
    gap: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    color: white;
    background: var(--ft-gradient-main);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-flow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ft-ease);
}

.btn-flow:hover::before {
    transform: translateX(100%);
}

.btn-flow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-flow {
    background: transparent;
    /* backdrop-filter creates issues on some layered bg, avoiding */
    border: 1px solid var(--ft-border);
    color: var(--ft-text-main);
}

.btn-outline-flow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeIn 0.8s var(--ft-ease) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Contact Form Specifics */
.form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--ft-border) !important;
    color: var(--ft-text-main) !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--ft-radius-sm) !important;
    font-size: 1rem;
    transition: all 0.3s var(--ft-ease);
}

.form-control:focus {
    border-color: var(--ft-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.6) !important;
    /* Muted text with opacity */
}

.input-icon-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon-group i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ft-text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.input-icon-group .form-control {
    padding-left: 3rem !important;
}

.input-icon-group .form-control:focus+i,
.input-icon-group .form-control:not(:placeholder-shown)+i {
    color: var(--ft-primary);
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: pulse 10s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--ft-primary);
    top: -10%;
    right: -5%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--ft-secondary);
    bottom: -10%;
    left: -10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--ft-accent);
    top: 40%;
    right: 20%;
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}