/* 
   Intuitalk Landing Page - Custom Styles
   Supplementing Bootstrap 5 for a premium glassmorphic relationship-card experience.
*/

:root {
    --bg-color: #0c0817;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-color: #8b5cf6; /* Glowing Violet */
    --primary-rgb: 139, 92, 246;
    --secondary-color: #d0bcff; /* Soft Purple */
    --accent-color: #ff79c6; /* Vibrant Pink */
    --accent-rgb: 255, 121, 198;
    --text-main: #f3f1f8;
    --text-muted: #a5a1b8;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --glass-blur: blur(16px);
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    font-family: var(--font-secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main) !important;
}

/* Ambient Glow Backgrounds */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-top-left {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.8) 0%, transparent 70%);
}

.glow-bottom-right {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.8) 0%, transparent 70%);
}

.glow-middle {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5) 0%, transparent 70%);
    width: 800px;
    height: 800px;
}

/* Navbar Custom Overrides */
.navbar-custom {
    background: rgba(12, 8, 23, 0.7) !important;
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-text span {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--text-main) !important;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 2rem !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-outline-premium {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 50px !important;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 2rem !important;
    transition: background 0.3s ease, border-color 0.3s ease !important;
}

.btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hero Screen Image Floating Animation */
.hero-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 50px rgba(var(--primary-rgb), 0.2);
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Feature Cards */
.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box-content {
    position: relative;
    z-index: 1;
}

.feature-ico {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.feature-box p {
    color: var(--text-muted);
}

/* Interactive Card Simulator */
.deck-container {
    perspective: 1000px;
    margin: 3rem auto;
    width: 320px;
    height: 460px;
    position: relative;
    cursor: pointer;
}

@media(max-width: 576px) {
    .deck-container {
        width: 280px;
        height: 400px;
    }
}

.sim-card {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 30px rgba(var(--primary-rgb), 0.15);
}

.sim-card:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 40px rgba(var(--primary-rgb), 0.3);
}

.sim-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    border: 2px solid var(--card-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem;
}

.sim-card-front {
    background: linear-gradient(145deg, #1b1233, #0a0614);
    transform: rotateY(180deg);
}

.sim-card-back {
    background: linear-gradient(145deg, #2e1c50, #130a24);
    justify-content: center;
    align-items: center;
    border-color: rgba(var(--primary-color), 0.3);
}

.card-logo {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 121, 198, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 121, 198, 0.2);
    align-self: flex-start;
}

.card-text {
    font-size: 1.45rem;
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--text-main);
    margin: 2rem 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.card-back-icon {
    font-size: 3.5rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

.card-back-title {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    margin-bottom: 0.3rem;
}

.card-back-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps section */
.step-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.step-card-visual {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.step-card-visual::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.15);
    filter: blur(40px);
}

/* CTA Box */
.cta-wrapper {
    background: linear-gradient(135deg, rgba(30, 18, 60, 0.5) 0%, rgba(15, 10, 30, 0.5) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 32px;
    padding: 5rem 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Footer styling */
footer {
    border-top: 1px solid var(--card-border);
    background: rgba(6, 4, 12, 0.8);
    font-size: 0.88rem;
    color: var(--text-muted) !important;
}

footer p {
    color: var(--text-muted) !important;
}

footer a {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-main) !important;
}
