/**
 * ============================================
 * EGOTALLY GLOBAL STYLES
 * ============================================
 * Reusable styles for all pages
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #ff746c;
    --primary-dark: #ff5a50;
    --primary-light: #ff8a83;
    --secondary-color: #1e1e3f;
    --secondary-dark: #16162d;

    /* Grayscale */
    --text-dark: #1e1e3f;
    --text-muted: #6b6b85;
    --text-light: #9999ae;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-dark: #f0f0f2;
    --border-color: #e5e5ea;

    /* Typography */
    --font-family:
        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    --font-family-display:
        "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(30, 30, 63, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 30, 63, 0.12);
    --shadow-lg: 0 8px 32px rgba(30, 30, 63, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    height: 100vh;
    overflow: hidden;
    touch-action: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-display);
    font-weight: 700;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn {
    border-radius: 12px !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px !important;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px !important;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    border: none;
    color: white;
    box-shadow: 0 4px 14px rgba(255, 116, 108, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #ff4a3f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 116, 108, 0.4);
    color: white;
}

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

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color) !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 116, 108, 0.25);
}

.btn-dark {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--secondary-dark) 100%
    );
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(30, 30, 63, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #0d0d1e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 30, 63, 0.3);
    color: white;
}

/* Remove focus outlines */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 116, 108, 0.2);
}

/**
 * ============================================
 * MODERN NAVBAR - APPLE GLASS EFFECT
 * ============================================
 */

/* ===== MODERN NAVBAR ===== */
.navbar {
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* border-bottom: 1px solid rgba(30, 30, 63, 0.06); */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Scrolled state - more opaque with shadow */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 4px 24px rgba(30, 30, 63, 0.08);
    border-bottom: 1px solid rgba(30, 30, 63, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 1rem 0px;
    margin: 0px auto;
}

/* Brand */
.navbar-brand {
    font-family: var(--font-family-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 116, 108, 0.08);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Active Nav Item */
.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 116, 108, 0.1);
}

/* CTA Button */
.nav-cta {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 116, 108, 0.25);
    transition: all 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--primary-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 116, 108, 0.35);
    color: white !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animated Hamburger to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 63, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 20px rgba(30, 30, 63, 0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding: 80px 0 40px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 116, 108, 0.05);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

.mobile-nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 116, 108, 0.05);
    border-left: 4px solid var(--primary-color);
}

/* Mobile CTA */
.mobile-nav-cta {
    margin: 2rem;
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 116, 108, 0.25);
    transition: all 0.3s ease;
}

.mobile-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 116, 108, 0.35);
    color: white;
}

/* Social Links in Mobile Menu */
.mobile-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Scrollbar for Mobile Menu */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Desktop - Hide Mobile Menu */
@media (min-width: 992px) {
    .menu-toggle,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile - Show Mobile Menu */
@media (max-width: 991.98px) {
    .nav-menu {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ===== CUSTOM FORM STYLES (Modern/Tailwind-like) ===== */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px !important;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(30, 30, 63, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow:
        0 0 0 4px rgba(255, 116, 108, 0.1),
        0 1px 3px rgba(30, 30, 63, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control-lg {
    padding: 1.125rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 14px !important;
}

.form-control-sm {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px !important;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Input Group */
.input-group {
    box-shadow: 0 4px 16px rgba(30, 30, 63, 0.08);
    border-radius: 14px !important;
    overflow: hidden;
}

.input-group .form-control {
    border: 2px solid transparent;
    border-radius: 14px 0 0 14px !important;
    box-shadow: none;
    background: white;
}

.input-group .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

.input-group .btn {
    border-radius: 0 14px 14px 0 !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

.input-group-lg .form-control {
    border-radius: 14px 0 0 14px !important;
}

.input-group-lg .btn {
    border-radius: 0 14px 14px 0 !important;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: 12px !important;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-left: 4px solid #16a34a;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* ===== BADGE STYLES ===== */
.badge {
    border-radius: 8px !important;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    ) !important;
    box-shadow: 0 2px 8px rgba(255, 116, 108, 0.3);
}

.badge.rounded-circle {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 116, 108, 0.3);
}

/* ===== CARD STYLES ===== */
.card {
    border-radius: 16px !important;
    border: none;
    box-shadow: 0 4px 16px rgba(30, 30, 63, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(30, 30, 63, 0.12);
    transform: translateY(-4px);
}

/* ===== ACCORDION STYLES (FAQ) ===== */
.accordion {
    --bs-accordion-border-radius: 16px;
}

.accordion-item {
    border: none !important;
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 30, 63, 0.06);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 20px rgba(30, 30, 63, 0.1);
}

.accordion-button {
    background-color: var(--bg-white) !important;
    color: var(--text-dark);
    border: none;
    font-size: 1.1rem;
    padding: 1.5rem;
    font-weight: 600;
    border-radius: 16px !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(
        135deg,
        rgba(255, 116, 108, 0.05) 0%,
        rgba(255, 116, 108, 0.02) 100%
    ) !important;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff746c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ===== PRICING CARD STYLES ===== */
.pricing-card {
    border-radius: 20px !important;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    border-color: rgba(255, 116, 108, 0.2);
    box-shadow: 0 12px 40px rgba(30, 30, 63, 0.15) !important;
}

.pricing-card.border-primary {
    border-width: 3px !important;
    border-color: var(--primary-color) !important;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .form-control {
    background: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-section .form-control:focus {
    outline: none;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    border: none;
}

.cta-section .form-control::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    padding: 60px 0 30px;
}

.footer h5,
.footer h6 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: white;
}

/* ===== UTILITIES ===== */
.rounded-3 {
    border-radius: 12px !important;
}

.rounded-4 {
    border-radius: 16px !important;
}

.rounded-5 {
    border-radius: 20px !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(30, 30, 63, 0.06) !important;
}

.shadow {
    box-shadow: 0 4px 16px rgba(30, 30, 63, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 32px rgba(30, 30, 63, 0.15) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* ===== LOADING SPINNER ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== TEXT SELECTION ===== */
::selection {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

::-moz-selection {
    background-color: var(--primary-light);
    color: var(--bg-white);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* ===== RESPONSIVE - GLOBAL ===== */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 116, 108, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}
.lead {
    font-size: 1.1rem;
}

.small {
    font-size: 0.875rem !important;
}
