/* ============================================================
   GRAFIKARE AGENCY - Ana Stil Dosyasi
   CSS Degiskenleri admin panelden dinamik olarak gelir.
   Bu dosya sabit yapisal stilleri icerir.
   ============================================================ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif);
    color: var(--text-color, #333);
    background: var(--body-bg, #fff);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary, #ec1f50);
    color: #fff;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1.5px solid var(--primary, #ec1f50);
    color: var(--primary, #ec1f50);
    background: rgba(236, 31, 80, 0.06);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title span,
.text-primary-custom {
    color: var(--primary, #ec1f50);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #777;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Top Gradient Bar ─── */
.gradient-bar {
    background: linear-gradient(90deg, var(--primary, #dc3545), var(--accent, #ffc107), #20c997, #0d6efd);
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
    height: 4px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── Navbar ─── */
.navbar-main {
    transition: all 0.35s ease;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1050;
}

.navbar-main.floating {
    max-width: 1320px;
    width: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--navbar-radius, 25px);
    margin-top: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar-main.fixed-bar {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-main .nav-link {
    position: relative;
    padding: 0.4rem 1rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.85) !important;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    width: 60%;
}

/* Navbar Scroll Effect */
.navbar-main.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.navbar-main.scrolled.floating {
    margin-top: 8px;
    border-radius: 18px;
    max-width: 1320px;
    width: calc(100% - 40px);
}

/* ─── Sections ─── */
section {
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: 5rem 0;
}

.section-dark {
    background: var(--secondary, #1e1e2d);
    color: #fff;
}

.section-light {
    background: #f8f9fb;
}

/* ─── Hero / Slider ─── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
}

/* ─── Buttons ─── */
.btn-primary-custom {
    background: var(--primary, #ec1f50);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    background: var(--primary-dark, #c91740);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 31, 80, 0.35);
}

.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary, #ec1f50);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ─── Cards ─── */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary, #ec1f50);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: rgba(236, 31, 80, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    background: rgba(236, 31, 80, 0.08);
    color: var(--primary, #ec1f50);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary, #ec1f50);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* ─── Portfolio Grid ─── */
.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: rgba(236, 31, 80, 0.15);
}

.portfolio-item .portfolio-media {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.portfolio-item .portfolio-media img,
.portfolio-item .portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-media img,
.portfolio-item:hover .portfolio-media video {
    transform: scale(1.06);
}

.portfolio-item .portfolio-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item .portfolio-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.portfolio-item .portfolio-body p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.75rem;
    flex: 1;
}

/* Keep overlay only for hover-reveal badges on the image */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ─── Team Cards (index.php - circular avatars) ─── */
.team-card-circle {
    text-align: center;
    transition: all 0.4s ease;
}

.team-card-circle .team-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    margin: 0 auto 1.25rem;
    display: block;
}

.team-card-circle:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(236, 31, 80, 0.2);
    border-color: var(--primary, #ec1f50);
}

/* ─── Team Cards (teams.php - full cards) ─── */
.team-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #ec1f50), #ff6b35);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 31, 80, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(236, 31, 80, 0.1);
    background: rgba(255,255,255,0.05);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card .team-image {
    position: relative;
    overflow: hidden;
}

.team-card .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

.team-card .team-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    pointer-events: none;
}

.team-card .team-image-social {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    z-index: 3;
    display: flex;
    gap: 8px;
    transition: all 0.4s ease;
}

.team-card:hover .team-image-social {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.team-card .team-image-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.team-card .team-image-social a:hover {
    background: var(--primary, #ec1f50);
    border-color: var(--primary, #ec1f50);
    transform: translateY(-3px);
}

.team-card .team-body {
    padding: 1.5rem;
    text-align: center;
}

.team-card .team-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.team-card .team-body .team-position {
    color: var(--primary, #ec1f50);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.team-card .team-body .team-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.team-card .team-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.team-card .team-profile-btn:hover {
    background: var(--primary, #ec1f50);
    border-color: var(--primary, #ec1f50);
    color: #fff;
    transform: translateX(4px);
}

/* Team social for index page (inline) */
.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f6f9;
    color: #555;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.team-social a:hover {
    background: var(--primary, #ec1f50);
    color: #fff;
    transform: translateY(-3px);
}

/* Team social in dark sections */
.section-dark .team-social a {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.section-dark .team-social a:hover {
    background: var(--primary, #ec1f50);
    color: #fff;
    border-color: var(--primary, #ec1f50);
}

/* ─── Client Logos ─── */
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.client-logo-item img {
    max-height: 50px;
    max-width: 120px;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
}

.client-logo-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.client-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* ─── Stats / Counters ─── */
.stat-box {
    text-align: center;
    padding: 1.5rem;
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary, #ec1f50);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Contact Section ─── */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 31, 80, 0.08);
    color: var(--primary, #ec1f50);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ─── Footer ─── */
.footer-main {
    background: var(--footer-bg, #1a1a2e);
    color: #fff;
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #dc3545), var(--accent, #ffc107), #20c997, #0d6efd);
}

.footer-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.footer-link:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary, #ec1f50);
    color: #fff;
    transform: translateY(-3px);
}

/* ─── WhatsApp & Back to Top ─── */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 90px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary, #ec1f50);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(236, 31, 80, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: #fff;
}

/* ─── Animations ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ─── Experience Badge ─── */
.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary, #ec1f50);
    color: #fff;
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(236, 31, 80, 0.35);
    z-index: 2;
}

.experience-badge h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.experience-badge p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ─── Divider ─── */
.divider-center {
    width: 60px;
    height: 3px;
    background: var(--primary, #ec1f50);
    margin: 1rem auto;
    border-radius: 3px;
}

/* ─── Floating Shapes (Background Decoration) ─── */
.bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary, #ec1f50);
    top: -100px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.bg-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent, #ffc107);
    bottom: -50px;
    left: -50px;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 20px); }
    75% { transform: translate(15px, 10px); }
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .navbar-main.floating {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin-top: 8px;
        border-radius: 18px;
    }

    .navbar-collapse {
        background: rgba(0,0,0,0.15);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .nav-link {
        padding: 0.6rem 0 !important;
        font-size: 1rem !important;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 2.5rem 0;
    }

    .experience-badge {
        bottom: -5px;
        right: -5px;
        padding: 0.75rem;
    }

    .experience-badge h3 {
        font-size: 1.5rem;
    }
}

/* ─── About Section ─── */
.about-image-wrapper {
    position: relative;
    padding: 30px;
}

.about-image-wrapper .main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-image-wrapper .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-wrapper .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(236, 31, 80, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.about-image-wrapper .dots-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--primary, #ec1f50) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: -1;
}

.about-image-wrapper .circle-pattern {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(236, 31, 80, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* About Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(236, 31, 80, 0.1);
    border-color: rgba(236, 31, 80, 0.3);
    transform: translateY(-5px);
}

.stat-item .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(236, 31, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary, #ec1f50);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary, #ec1f50);
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* About Accordion */
.custom-accordion {
    border: none;
}

.custom-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: transparent;
    color: white;
    border: none;
    padding: 20px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(236, 31, 80, 0.1);
    color: white;
    box-shadow: none;
}

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

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%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");
}

.accordion-icon {
    width: 40px;
    height: 40px;
    background: rgba(236, 31, 80, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #ec1f50);
    flex-shrink: 0;
}

.custom-accordion .accordion-body {
    padding: 20px 25px 25px;
    color: rgba(255, 255, 255, 0.8);
}

/* About Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(236, 31, 80, 0.1);
}

.value-item i {
    font-size: 1.5rem;
}

/* ======= Light Theme Overrides for Standalone Pages ======= */
.section-light-page .stat-item {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.section-light-page .stat-item:hover {
    background: #fff;
    border-color: rgba(236, 31, 80, 0.3);
}
.section-light-page .stat-item .stat-label {
    color: #6c757d;
}
.section-light-page .custom-accordion .accordion-item {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.section-light-page .custom-accordion .accordion-button {
    color: #212529;
}
.section-light-page .custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(236, 31, 80, 0.06);
    color: #212529;
}
.section-light-page .custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%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");
}
.section-light-page .custom-accordion .accordion-body {
    color: #495057;
}
.section-light-page .value-item {
    background: #f1f3f5;
}
.section-light-page .value-item:hover {
    background: rgba(236, 31, 80, 0.08);
}
.section-light-page .value-item span {
    color: #212529;
}
.section-light-page .dots-pattern {
    border-color: rgba(236, 31, 80, 0.1);
}
.section-light-page .circle-pattern {
    border-color: rgba(236, 31, 80, 0.08);
}

/* Text Gradients */
.text-gradient-danger {
    background: linear-gradient(135deg, var(--primary, #ec1f50) 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Gradient Animated */
.bg-gradient-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    opacity: 0.9;
}

/* Enhanced Buttons */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(236, 31, 80, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(236, 31, 80, 0.5);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hover-fill {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-hover-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary, #ec1f50);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-hover-fill:hover::before {
    left: 0;
}

.btn-hover-fill:hover {
    border-color: var(--primary, #ec1f50);
}

/* Hover Scale */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Gradient Animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── CTA Section ─── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary, #dc3545), #ff6b35, #fdcc49, #20c997, #0d6efd);
    background-size: 400% 400%;
    animation: gradient 12s ease infinite;
    opacity: 0.85;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #ec1f50);
}

/* ─── Preloader ─── */
.preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--primary, #ec1f50);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
