/* =============================================
   ShamsCreative — Premium Design System
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    /* Primary colors */
    --primary: #715df4;
    --primary-dark: #5e4cd4;
    --primary-light: #8d7df7;
    --secondary: #ffd1d8;
    --secondary-dark: #f0b8c2;
    --accent: #ff8fa3;

    /* Dark theme (default) */
    --bg-dark: #0A0E27;
    --bg-darker: #060919;
    --surface: #141833;
    --surface-light: #1E2346;
    --surface-lighter: #282D54;
    --border-color: rgba(113, 93, 244, 0.15);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;

    /* Status */
    --success: #48BB78;
    --warning: #F6AD55;
    --danger: #FC8181;
    --info: #63B3ED;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #715df4 0%, #ffd1d8 100%);
    --gradient-dark: linear-gradient(135deg, #141833 0%, #0A0E27 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 24, 51, 0.8) 0%, rgba(10, 14, 39, 0.9) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(113, 93, 244, 0.1) 0%, rgba(255, 209, 216, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(113, 93, 244, 0.3);
    --shadow-glow-sm: 0 0 10px rgba(113, 93, 244, 0.2);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --card-radius: 16px;
    --btn-radius: 10px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* --- Light Mode Theme --- */
[data-theme="light"] {
    --bg-dark: #F5F7FC;
    --bg-darker: #EBEEF6;
    --surface: #FFFFFF;
    --surface-light: #F0F2F8;
    --surface-lighter: #E8EAF2;
    --border-color: rgba(113, 93, 244, 0.12);

    --text-primary: #1A1D3B;
    --text-secondary: #4A5068;
    --text-muted: #6B7190;

    --gradient-dark: linear-gradient(135deg, #F0F2F8 0%, #F5F7FC 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 247, 252, 0.95) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(113, 93, 244, 0.06) 0%, rgba(255, 209, 216, 0.04) 100%);

    --shadow-sm: 0 2px 8px rgba(113, 93, 244, 0.06);
    --shadow-md: 0 4px 16px rgba(113, 93, 244, 0.08);
    --shadow-lg: 0 8px 32px rgba(113, 93, 244, 0.1);
    --shadow-glow: 0 0 20px rgba(113, 93, 244, 0.15);
    --shadow-glow-sm: 0 0 10px rgba(113, 93, 244, 0.1);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .navbar-collapse {
    background: #fff;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: var(--btn-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nav-cta-btn {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    padding: 8px 22px !important;
    border-radius: var(--btn-radius) !important;
    margin-left: 8px;
    font-weight: 600 !important;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff !important;
}

.nav-cta-btn.active::after {
    display: none;
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(160,174,192,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(74,80,104,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* =============================================
   THEME TOGGLE BUTTON
   ============================================= */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.theme-toggle .bx-sun,
.theme-toggle .bx-moon {
    transition: all 0.4s ease;
    position: absolute;
}

.theme-toggle .bx-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .bx-sun {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="light"] .theme-toggle .bx-moon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="light"] .theme-toggle .bx-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 10px 30px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    background: rgba(113, 93, 244, 0.1);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-sm-custom {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 12px;
    position: relative;
    padding: 0 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-label::before {
    left: -20px;
}

.section-label::after {
    right: -20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bg-dark);
    transition: background-color 0.4s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(113, 93, 244, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 209, 216, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(113, 93, 244, 0.15);
    border: 1px solid rgba(113, 93, 244, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper .hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--gradient-primary);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
}

.hero-image-wrapper img {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
}

/* =============================================
   CARDS
   ============================================= */
.premium-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(113, 93, 244, 0.3);
    box-shadow: var(--shadow-glow-sm);
}

.premium-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--surface-light);
}

.premium-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.premium-card .card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-free {
    background: rgba(72, 187, 120, 0.2);
    color: var(--success);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.badge-paid {
    background: rgba(246, 173, 85, 0.2);
    color: var(--warning);
    border: 1px solid rgba(246, 173, 85, 0.3);
}

.badge-featured {
    background: rgba(113, 93, 244, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(113, 93, 244, 0.3);
}

.badge-category {
    background: rgba(255, 209, 216, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(255, 209, 216, 0.25);
}

.premium-card .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.premium-card .card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.premium-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.premium-card .card-title a {
    color: var(--text-primary);
}

.premium-card .card-title a:hover {
    color: var(--primary-light);
}

.premium-card .card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
}

.premium-card .card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.premium-card .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.premium-card .card-price small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Card placeholder image */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    color: var(--primary);
    font-size: 3rem;
}

/* =============================================
   ABOUT PREVIEW
   ============================================= */
.about-preview-section {
    background: var(--gradient-hero);
}

.about-preview-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-preview-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-features li i {
    color: var(--success);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* =============================================
   WHY CHOOSE US
   ============================================= */
.feature-box {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-6px);
    border-color: rgba(113, 93, 244, 0.3);
    box-shadow: var(--shadow-glow-sm);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(113, 93, 244, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-box h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 36px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: rgba(113, 93, 244, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(113, 93, 244, 0.3);
}

.testimonial-stars {
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: var(--warning);
    font-size: 1rem;
    margin-right: 2px;
}

.testimonial-message {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.5;
}

.cta-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
    transition: background-color 0.4s ease;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-contact li i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
}

[data-theme="light"] .scroll-top-btn {
    box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

/* =============================================
   PAGE HEADER / BREADCRUMB
   ============================================= */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(113, 93, 244, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.page-header h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item a:hover {
    color: var(--primary-light);
}

.breadcrumb-item.active {
    color: var(--primary-light);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '›';
    color: var(--text-muted);
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 40px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--btn-radius);
    padding: 10px 16px;
    font-size: 0.95rem;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
    background: var(--surface-light);
    color: var(--text-primary);
}

.filter-bar .form-control::placeholder {
    color: var(--text-muted);
}

.filter-bar .form-select option {
    background: var(--surface);
    color: var(--text-primary);
}

/* =============================================
   DETAIL PAGE
   ============================================= */
.detail-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px;
}

.detail-content h2,
.detail-content h3,
.detail-content h4 {
    margin-top: 28px;
    margin-bottom: 16px;
}

.detail-content p {
    margin-bottom: 16px;
    line-height: 1.9;
}

.detail-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.detail-content ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.detail-sidebar {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
    position: sticky;
    top: 100px;
}

.detail-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta {
    list-style: none;
    padding: 0;
}

.detail-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.detail-meta li:last-child {
    border-bottom: none;
}

.detail-meta li .label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-meta li .value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--card-radius);
    margin-bottom: 30px;
    background: var(--surface-light);
}

.detail-banner-placeholder {
    width: 100%;
    height: 350px;
    border-radius: var(--card-radius);
    margin-bottom: 30px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
    border: 1px solid var(--border-color);
}

/* Tech tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tech-tag {
    background: rgba(113, 93, 244, 0.1);
    border: 1px solid rgba(113, 93, 244, 0.2);
    color: var(--primary-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-form .form-control,
.contact-form .form-select {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--btn-radius);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
    background: var(--surface-light);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(113, 93, 244, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-section-block {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.about-section-block:last-child {
    border-bottom: none;
}

.about-section-block h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-section-block p,
.about-section-block ul {
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-section-block ul {
    padding-left: 20px;
}

.about-section-block ul li {
    margin-bottom: 10px;
}

.about-image {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* =============================================
   TOOLS PAGE
   ============================================= */
.tool-card {
    position: relative;
}

.tool-card .card-body {
    text-align: center;
    position: relative;
    padding-top: 25px; /* Add some space if badge overlaps */
}

.tool-card .card-badge {
    left: auto;
    right: 16px;
    top: 16px;
}

.tool-card .tool-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card .tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card .tool-icon i {
    font-size: 2rem;
    color: var(--primary-light);
}

/* =============================================
   ALERTS/FLASH MESSAGES
   ============================================= */
.alert-custom {
    border-radius: var(--btn-radius);
    border: 1px solid;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.alert-success-custom {
    background: rgba(72, 187, 120, 0.1);
    border-color: rgba(72, 187, 120, 0.3);
    color: var(--success);
}

.alert-danger-custom {
    background: rgba(252, 129, 129, 0.1);
    border-color: rgba(252, 129, 129, 0.3);
    color: var(--danger);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
}

/* =============================================
   BLOG ARTICLE CONTENT
   ============================================= */
.blog-article-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

.blog-article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.blog-article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.blog-article-content p {
    margin-bottom: 16px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.blog-article-content li {
    margin-bottom: 8px;
}

.blog-article-content img {
    max-width: 100%;
    border-radius: var(--card-radius);
    margin: 20px 0;
}

.blog-article-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.blog-article-content a:hover {
    color: var(--primary);
}

.blog-article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--surface-light);
    border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-article-content pre,
.blog-article-content code {
    background: var(--surface-light);
    border-radius: 6px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

.blog-article-content code {
    padding: 2px 6px;
    color: var(--primary-light);
}

.blog-article-content pre {
    padding: 16px 20px;
    margin: 16px 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.blog-article-content pre code {
    padding: 0;
    background: none;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.blog-article-content table th,
.blog-article-content table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.blog-article-content table th {
    background: var(--surface-light);
    font-weight: 600;
    color: var(--text-primary);
}

.badge-category {
    background: var(--primary) !important;
    color: #fff !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 110px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: var(--surface);
        margin-top: 10px;
        padding: 16px;
        border-radius: var(--card-radius);
        border: 1px solid var(--border-color);
    }

    .nav-cta-btn {
        margin-left: 0 !important;
        display: inline-flex;
        width: fit-content;
        margin-top: 8px;
    }

    .page-header {
        padding: 130px 0 50px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .detail-content {
        padding: 24px;
    }

    .scroll-top-btn {
        right: 20px;
        bottom: 100px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 110px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .detail-sidebar {
        position: static;
        margin-top: 30px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.7rem;
    }

    .scroll-top-btn {
        right: 20px;
        bottom: 82px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-item h3 {
        font-size: 1.4rem;
    }

    .page-header {
        padding: 110px 0 35px;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .filter-bar {
        padding: 16px;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-light) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}