:root {
    --primary: #ff4d6d;
    --primary-hover: #ff758f;
    --secondary: #6c757d;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-blur: 10px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #2d2d2d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(18, 18, 18, 0.8);
}

[data-bs-theme="colorful"] {
    --primary: #8338ec;
    --primary-hover: #3a86ff;
    --bg-body: #fdf0d5;
    --bg-card: #ffffff;
    --text-main: #003049;
    --text-muted: #669bbc;
    --border-color: #f77f00;
    --shadow: 10px 10px 0px #f77f00;
    --nav-bg: rgba(253, 240, 213, 0.8);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar Styling */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Button & UI Components */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
}

.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    box-shadow: var(--shadow);
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

/* Form Styling */
.form-control,
.form-select {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 77, 109, 0.1);
    background-color: var(--bg-card);
}

/* Results Section */
.result-box {
    display: none;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.age-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.fun-message {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    z-index: -1;
}

/* Social Media Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: rotate(360deg);
}

/* Animations */
.animate-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Blog & Content Styling */
.blog-content {
    line-height: 1.8;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-hover));
}

.section-title-wrapper {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 109, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-item {
    padding: 1.5rem;
    background: var(--bg-body);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition);
}

.step-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Custom Accordion */
.accordion-custom .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
}

.accordion-custom .accordion-button {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
    border-color: var(--primary);
    color: var(--primary);
}

.accordion-custom .accordion-button::after {
    filter: grayscale(1);
    opacity: 0.5;
}

.accordion-custom .accordion-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 1.5rem;
    margin-top: -10px;
}

[data-bs-theme="dark"] .accordion-custom .accordion-button::after {
    filter: invert(1);
}