/* ================================
   ROOT STYLES & CSS VARIABLES
   ================================ */
:root {
    /* Color Palette - Exact match from React version */
    /* Using HSL format for precise color matching */
    --primary: hsl(345, 45%, 55%);
    --primary-light: hsl(345, 45%, 65%);
    --primary-dark: hsl(345, 45%, 45%);
    --secondary: hsl(30, 25%, 90%);
    --accent: hsl(345, 35%, 65%);
    --text-dark: hsl(15, 50%, 15%);
    --text-muted: hsl(15, 20%, 45%);
    --background: hsl(30, 30%, 97%);
    --surface: hsl(30, 25%, 95%);
    --border: hsl(30, 20%, 85%);
    --gradient: linear-gradient(135deg, hsl(345, 45%, 55%) 0%, hsl(345, 35%, 65%) 100%);
    /* Spacing */
    --spacing-unit: 0.5rem;
    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2rem;
    --spacing-5: 3rem;
    --spacing-6: 4rem;
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ================================
   GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}



main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Bootstrap Icons Fix */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
    font-feature-settings: "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    font-size: inherit;
    line-height: inherit;
}

.text-muted {
    color: var(--text-muted) !important;
}

.gradient-text {
    color: transparent;
    background: var(--gradient);
    -webkit-mask-image: linear-gradient(#000 0 0);
    mask-image: linear-gradient(#000 0 0);
}
/* ================================
   BUTTONS
   ================================ */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: white;
    }

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ================================
   ANIMATIONS FOR LOGO
   ================================ */
@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1.6);
    }

    50% {
        transform: scale(1.8);
    }
}

@keyframes slide-in-bottom {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 3px;
        opacity: 1;
    }
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    background: rgba(250, 247, 245, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 70, 166, 0.15);
}

.glass-navbar {
    background: rgba(250, 247, 245, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 70, 166, 0.15);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    padding: 0.25rem 0 !important;
}

    .navbar-brand img.logo-img {
        height: 4.5rem;
        width: auto;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        animation: logo-pulse 3s ease-in-out infinite;
    }

        .navbar-brand img.logo-img:hover {
            transform: scale(1.1);
        }

.navbar-nav {
    gap: 0.5rem;
}

    .navbar-nav .nav-link {
        font-weight: 600;
        font-size: 1.05rem;
        position: relative;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        padding: 0.5rem 1rem !important;
        letter-spacing: 0.3px;
        display: inline-block; /* ensures width = text only */
    }


        .navbar-nav .nav-link:hover {
            color: var(--primary) !important;
            transform: translateY(-2px);
        }

        .navbar-nav .nav-link.active {
            color: var(--primary) !important;
        }

            .navbar-nav .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                height: 3px;
                width: 100%; /* underline equal to text width */
                background: var(--primary);
                border-radius: 2px 2px 0 0;
                animation: slide-in-bottom 0.3s ease-out;
            }

/* ================================
   FOOTER
   ================================ */
.glass-footer {
    background: rgba(250, 247, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 2.5rem 0 1.5rem 0 !important;
    position: relative;
    z-index: 1;
}

.logo-footer {
    height: 3.5rem;
    width: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: hsla(345, 45%, 55%, 0.1);
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .social-icon:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

.contact-info p {
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info i {
    font-size: 1.1rem;
}

/* ================================
   GLASS EFFECT
   ================================ */
.glass-effect {
    background: hsl(30, 25%, 95%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .glass-effect:hover {
        background: hsl(30, 28%, 93%);
        border-color: var(--primary);
    }

.bg-gradient-light {
    background: linear-gradient(135deg, hsl(345, 45%, 55%, 0.05) 0%, hsl(345, 35%, 65%, 0.05) 100%);
}

/* ================================
   ICON STYLES
   ================================ */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.icon-circle-lg {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-effect .icon-circle-lg {
    cursor: pointer;
}

.glass-effect:hover .icon-circle-lg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(217, 70, 166, 0.5));
}

    .glass-effect:hover .icon-circle-lg i {
        color: hsl(345, 45%, 55%);
    }

.icon-circle-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.bg-primary-light {
    background: hsla(345, 45%, 55%, 0.1);
}

.icon-large {
    font-size: 3rem;
    color: var(--primary);
    display: inline-block;
    line-height: 1;
}

    .icon-large i {
        display: inline-block;
        line-height: 1;
    }

/* ================================
   CARDS & SECTIONS
   ================================ */
.feature-card {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid hsl(30, 20%, 85%);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(217, 70, 166, 0) 0%, rgba(217, 70, 166, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: 0;
    }

    .feature-card:hover::before {
        opacity: 1;
    }

    .feature-card > * {
        position: relative;
        z-index: 1;
    }

    .feature-card:hover {
        background: hsl(30, 28%, 93%) !important;
        border-color: hsl(345, 45%, 55%) !important;
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 20px 45px rgba(217, 70, 166, 0.2), 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .feature-card .icon-large {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform-origin: center;
        font-size: 3.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .feature-card:hover .icon-large {
        transform: scale(1.3) rotate(10deg);
        filter: drop-shadow(0 0 15px rgba(217, 70, 166, 0.6));
    }

    .feature-card i {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .feature-card:hover i {
        color: hsl(345, 45%, 55%) !important;
    }

    .feature-card h5 {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        color: var(--text-dark);
    }

    .feature-card:hover h5 {
        color: hsl(345, 45%, 55%);
    }

    .feature-card p {
        transition: all 0.3s ease;
    }

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: hsl(30, 25%, 95%);
}

/* ================================
   SECTIONS
   ================================ */
.hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.features-section {
    padding: 3rem 0;
}

.cta-section {
    padding: 3rem 0;
}

.about-hero {
    padding: 3rem 0;
}

.values-section {
    padding: 3rem 0;
    background: rgba(217, 70, 166, 0.02);
}

.stats-section {
    padding: 3rem 0;
}

.contact-hero {
    padding: 3rem 0;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 6s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* ================================
   BADGES
   ================================ */
.badge-primary {
    display: inline-block;
    background: rgba(217, 70, 166, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ================================
   FORMS
   ================================ */
.form-control,
.form-select,
textarea.form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus,
    textarea.form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(217, 70, 166, 0.1);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.transition-all {
    transition: all 0.3s ease;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.bullet-point {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
}

.container-lg {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.inset-0 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-gradient {
    background: var(--gradient);
}

/* ================================
   CONTACT LINK STYLES
   ================================ */
.contact-link {
    transition: all 0.3s ease;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: -1rem;
}

    .contact-link:hover {
        background: hsla(345, 45%, 55%, 0.05);
    }

        .contact-link:hover .icon-circle-sm {
            background: var(--primary) !important;
            color: white !important;
        }

        .contact-link:hover p:first-child {
            color: var(--primary) !important;
        }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem !important;
    }

    .feature-card {
        min-height: 260px;
    }

        .feature-card .icon-large {
            font-size: 3.2rem;
        }
}

@media (max-width: 992px) {
    .navbar-brand img.logo-img {
        height: 4rem;
    }

    .navbar-nav {
        margin-top: 0.75rem;
    }

        .navbar-nav .nav-link {
            font-size: 1rem;
            padding: 0.5rem 0.75rem !important;
        }

    .feature-card {
        min-height: 240px;
    }

        .feature-card .icon-large {
            font-size: 2.8rem;
            width: 70px;
            height: 70px;
        }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand img.logo-img {
        height: 3.5rem !important;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

        .navbar-nav .nav-link {
            font-size: 0.95rem;
            padding: 0.5rem 0.6rem !important;
            letter-spacing: 0.2px;
        }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .hero-section,
    .features-section,
    .cta-section,
    .about-hero,
    .contact-hero {
        padding: 2rem 0;
    }

    .glass-effect {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem !important;
        min-height: 220px;
    }

        .feature-card .icon-large {
            font-size: 2.5rem;
            width: 60px;
            height: 60px;
            margin-bottom: 0.75rem;
        }

        .feature-card h5 {
            font-size: 1rem;
        }

        .feature-card p {
            font-size: 0.85rem;
        }
}

@media (max-width: 640px) {
    .navbar-brand img.logo-img {
        height: 3rem !important;
    }

    .navbar-nav {
        gap: 0;
    }

        .navbar-nav .nav-link {
            font-size: 0.9rem;
            padding: 0.5rem 0.5rem !important;
            letter-spacing: 0.1px;
        }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem 0.75rem !important;
        min-height: 200px;
    }

        .feature-card .icon-large {
            font-size: 2.2rem;
            width: 55px;
            height: 55px;
            margin-bottom: 0.5rem;
        }

        .feature-card h5 {
            font-size: 0.95rem;
        }

        .feature-card p {
            font-size: 0.8rem;
        }

    .container-lg {
        padding: 0 0.75rem;
    }
}

/* ================================
   DARK MODE (if needed in future)
   ================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f5f5f5;
        --text-muted: #a0a0a0;
        --background: #0f0f0f;
        --surface: #1a1a1a;
        --border: #333333;
    }

    body {
        background-color: var(--background);
        color: var(--text-dark);
    }

    .glass-effect {
        background: rgba(30, 30, 30, 0.7);
        border-color: rgba(217, 70, 166, 0.2);
    }
}
