/* ================================================
   Amir Hamza Portfolio — style.css FINAL
   Default: Light Mode | Full Mobile-First
   ================================================ */

/* ===== VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --secondary:     #8b5cf6;
    --accent:        #0ea5e9;
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;

    /* Gradients */
    --gradient:      linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-2:    linear-gradient(135deg, #0ea5e9, #6366f1);

    /* Dimensions */
    --nav-h:         66px;
    --radius:        14px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --font:          'Poppins', sans-serif;
    --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

    /* LIGHT MODE (default) */
    --bg:            #f7f7ff;
    --bg-2:          #eeeefc;
    --bg-3:          #e6e6f6;
    --bg-4:          #dbdbed;
    --card-bg:       #ffffff;
    --section-alt:   #ebebf9;
    --border:        rgba(99, 102, 241, 0.15);
    --glass:         rgba(99, 102, 241, 0.06);
    --input-bg:      #f1f1fc;
    --nav-bg:        rgba(247, 247, 255, 0.95);
    --text:          #1c1c38;
    --text-2:        #3e3e62;
    --text-muted:    #7070a0;
    --shadow:        0 8px 32px rgba(99, 102, 241, 0.12);
    --shadow-lg:     0 20px 60px rgba(99, 102, 241, 0.18);
}

/* DARK MODE */
[data-theme="dark"] {
    --bg:            #09090f;
    --bg-2:          #0f0f1a;
    --bg-3:          #161625;
    --bg-4:          #1e1e30;
    --card-bg:       #13131f;
    --section-alt:   #0d0d18;
    --border:        rgba(255, 255, 255, 0.09);
    --glass:         rgba(255, 255, 255, 0.05);
    --input-bg:      #1a1a2a;
    --nav-bg:        rgba(9, 9, 15, 0.95);
    --text:          #f0f0f8;
    --text-2:        #aeaec8;
    --text-muted:    #66668a;
    --shadow:        0 8px 32px rgba(99, 102, 241, 0.18);
    --shadow-lg:     0 20px 60px rgba(99, 102, 241, 0.28);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    overscroll-behavior-y: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== SCROLL OFFSET (sticky nav) ===== */
section[id] { scroll-margin-top: var(--nav-h); }

/* ===== PARTICLES ===== */
#particles-js {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.6;
}
[data-theme="light"] #particles-js { opacity: 0.25; }
@media (max-width: 767px) { #particles-js { display: none; } }

/* ===== PAGE LOADER ===== */
#pageLoader {
    position: fixed; inset: 0;
    background: var(--bg); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
    font-size: 2.8rem; font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 18px; animation: ldPulse 1s ease-in-out infinite;
}
.loader-logo img { height: 52px; width: auto; object-fit: contain; display: block; margin: 0 auto 10px; }
.loader-bar { width: 180px; height: 3px; background: var(--bg-4); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader-progress { height: 100%; background: var(--gradient); animation: ldProg 1.4s ease forwards; }
@keyframes ldProg  { to { width: 100%; } }
@keyframes ldPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== NAVBAR ===== */
#mainNav {
    padding: 12px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition); z-index: 1000;
    height: var(--nav-h);
}
#mainNav.scrolled { padding: 8px 0; box-shadow: var(--shadow); height: 58px; }

.navbar-brand { display: flex; align-items: center; }
.brand-text {
    font-size: 1.65rem; font-weight: 800; letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-dot { -webkit-text-fill-color: var(--accent); }

.navbar-nav .nav-link {
    color: var(--text-2) !important;
    font-weight: 500; font-size: 0.875rem;
    padding: 8px 12px !important; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary) !important; background: var(--glass);
}

.toggler-icon { display: flex; flex-direction: column; gap: 5px; }
.toggler-icon span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.navbar-toggler { border: none; background: none; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; outline: none; }

/* Single theme button */
.theme-btn {
    background: var(--glass); border: 1px solid var(--border);
    color: var(--text); width: 38px; height: 38px;
    border-radius: 50%; cursor: pointer; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--transition);
}
.theme-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Mobile nav collapse */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius); padding: 10px 6px;
        margin-top: 8px; max-height: 75vh; overflow-y: auto;
    }
    .navbar-nav .nav-link { padding: 10px 14px !important; color: var(--text) !important; }
    .theme-btn-mobile-wrap {
        padding: 8px 14px 4px; border-top: 1px solid var(--border); margin-top: 4px;
    }
    .theme-btn-mobile-wrap .theme-btn {
        width: 100%; height: 42px; border-radius: var(--radius-sm);
        padding: 10px 16px; gap: 8px; font-size: 0.875rem; justify-content: flex-start;
    }
    .theme-btn-mobile-wrap .theme-btn span { display: inline !important; }
}
.theme-btn-mobile-wrap { display: none; }
@media (max-width: 991px) { .theme-btn-mobile-wrap { display: block; } }

/* ===== BUTTONS ===== */
/* Primary (gradient filled) */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    color: #fff !important;
    padding: 11px 26px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.32) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.btn-primary:hover, a.btn-primary:hover, button.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45) !important;
    color: #fff !important;
}
.btn-primary:active { transform: translateY(0) !important; }

/* Secondary (ghost/outline primary) */
.btn-outline-primary,
.btn-secondary-hero,
.btn-outline-hero {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.btn-outline-primary:hover, .btn-secondary-hero:hover, .btn-outline-hero:hover {
    background: var(--primary); color: #fff; transform: translateY(-2px);
}

/* Soft/muted button */
.btn-soft {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}
.btn-soft:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Pricing outline button */
.btn-pricing-outline {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}
.btn-pricing-outline:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + 40px) 0 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass); border: 1px solid var(--border);
    color: var(--primary); padding: 7px 18px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: blink 1.5s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-name {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 800; line-height: 1.15; color: var(--text);
    margin-bottom: 12px; animation: fadeInUp 0.8s ease 0.2s backwards;
}
.name-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-typed-wrapper { font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-2); margin-bottom: 16px; animation: fadeInUp 0.8s ease 0.4s backwards; }
.typed-prefix { color: var(--accent); font-weight: 600; }
.hero-desc { font-size: 0.975rem; color: var(--text-2); max-width: 500px; margin-bottom: 28px; line-height: 1.85; animation: fadeInUp 0.8s ease 0.6s backwards; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeInUp 0.8s ease 0.8s backwards; }
.hero-social { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 1s backwards; }
.hero-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--border);
    color: var(--text-2); display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; transition: var(--transition);
}
.hero-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.hero-image-wrap { position: relative; display: flex; justify-content: center; animation: fadeInLeft 0.9s ease 0.3s backwards; }
.hero-img-container { position: relative; width: 300px; height: 300px; }
.hero-img-container::before { content: ''; position: absolute; inset: -4px; background: var(--gradient); border-radius: 50%; z-index: 0; animation: rotate 8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-img-container::after { content: ''; position: absolute; inset: 0; background: var(--bg); border-radius: 50%; z-index: 1; margin: 3px; }
.hero-profile-img { position: relative; z-index: 2; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; object-fit: cover; margin: 4px; }
.hero-img-placeholder { position: relative; z-index: 2; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; background: var(--bg-3); margin: 4px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-muted); }
.hero-img-placeholder i { font-size: 3rem; color: var(--primary); opacity: 0.4; }
.hero-float-card { position: absolute; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; animation: floatY 3s ease-in-out infinite; z-index: 5; box-shadow: var(--shadow); text-align: center; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-float-card.card-1 { bottom: 20px; left: 0; }
.hero-float-card.card-2 { top: 20px; right: 0; animation-delay: 1.5s; }
.hero-float-card .card-icon { font-size: 1.2rem; margin-bottom: 3px; }
.hero-float-card .card-value { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.hero-float-card .card-label { font-size: 0.68rem; color: var(--text-muted); }

/* ===== GENERAL SECTIONS ===== */
section { position: relative; z-index: 1; }
.section-pad { padding: 84px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge { display: inline-block; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.22); color: var(--primary); padding: 5px 16px; border-radius: 50px; font-size: 0.74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 14px; }
.section-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { color: var(--text-2); max-width: 580px; margin: 0 auto; font-size: 0.975rem; }
.divider { width: 56px; height: 4px; background: var(--gradient); border-radius: 2px; margin: 12px auto; }
.bg-section-alt { background: var(--section-alt); }

/* ===== STATS ===== */
.stats-section { background: var(--bg-2); padding: 52px 0; }
.stat-card { text-align: center; padding: 30px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.28); box-shadow: var(--shadow); }
.stat-icon { font-size: 1.8rem; margin-bottom: 12px; }
.stat-number { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { color: var(--text-2); font-size: 0.84rem; margin-top: 8px; }

/* ===== ABOUT ===== */
.about-img-wrap { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.about-img-placeholder { width: 100%; min-height: 340px; border-radius: var(--radius-lg); background: var(--bg-3); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; border: 2px solid var(--border); color: var(--text-muted); }
.about-img-placeholder i { font-size: 3.5rem; color: var(--primary); opacity: 0.4; }
.about-exp-badge { position: absolute; bottom: -16px; right: 16px; background: var(--gradient); color: #fff; padding: 12px 16px; border-radius: var(--radius); text-align: center; z-index: 3; }
.about-exp-badge .years { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.about-exp-badge .label { font-size: 0.7rem; opacity: 0.9; }
.about-info { list-style: none; }
.about-info li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.about-info li:last-child { border: none; }
.about-info .info-icon { color: var(--primary); font-size: 0.875rem; margin-top: 3px; min-width: 18px; }
.about-info .info-label { color: var(--text-muted); font-size: 0.78rem; }
.about-info .info-value { color: var(--text); font-weight: 500; font-size: 0.875rem; }

/* ===== SERVICES ===== */
.service-card { padding: 26px 22px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); transition: var(--transition); height: 100%; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); opacity: 0; transition: var(--transition); }
.service-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.25); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-icon-wrap { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; transition: var(--transition); }
.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(4deg); }
.service-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.service-card p { color: var(--text-2); font-size: 0.855rem; line-height: 1.7; margin: 0; }
.service-price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.service-price-val { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.service-price-note { font-size: 0.74rem; color: var(--text-muted); }
.service-featured-badge { position: absolute; top: 12px; right: 12px; background: var(--gradient); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 3px 9px; border-radius: 50px; }

/* ===== SKILLS ===== */
.skill-item { margin-bottom: 20px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 7px; }
.skill-name { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.skill-percent { font-weight: 700; color: var(--primary); font-size: 0.84rem; }
.skill-bar { height: 7px; background: var(--bg-4); border-radius: 4px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 4px; background: var(--gradient); width: 0; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ===== PORTFOLIO ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.filter-btn { padding: 7px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); background: var(--card-bg); color: var(--text-2); }
.filter-btn.active, .filter-btn:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.portfolio-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--card-bg); border: 1px solid var(--border); transition: var(--transition); }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99,102,241,0.22); }
.portfolio-img { width: 100%; height: 200px; object-fit: cover; }
.portfolio-img-placeholder { width: 100%; height: 200px; background: var(--bg-4); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-muted); }
.portfolio-img-placeholder i { font-size: 2.2rem; opacity: 0.4; }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,0.92), rgba(139,92,246,0.92)); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay-links { display: flex; gap: 14px; }
.portfolio-overlay-links a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.22); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: var(--transition); }
.portfolio-overlay-links a:hover { background: rgba(255,255,255,0.4); transform: scale(1.1); }
.portfolio-info { padding: 16px; }
.portfolio-category { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.portfolio-info h4 { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.portfolio-info p { font-size: 0.81rem; color: var(--text-2); margin: 0; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), transparent); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -35px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient); border: 3px solid var(--bg); box-shadow: 0 0 0 3px rgba(99,102,241,0.3); }
.timeline-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: var(--transition); }
.timeline-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: var(--shadow); }
.timeline-date { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary); background: rgba(99,102,241,0.1); padding: 3px 10px; border-radius: 50px; margin-bottom: 8px; }
.timeline-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-company { font-size: 0.84rem; color: var(--accent); font-weight: 500; margin-bottom: 6px; }
.timeline-desc { font-size: 0.835rem; color: var(--text-2); margin: 0; }
.timeline-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 26px; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--bg-2); }
.testimonial-slide { padding: 28px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; overflow: hidden; height: 100%; }
.testimonial-slide::before { content: '\201C'; position: absolute; top: -10px; left: 16px; font-size: 6rem; color: var(--primary); opacity: 0.1; font-family: serif; line-height: 1; }
.testimonial-stars { color: var(--warning); margin-bottom: 12px; font-size: 0.88rem; }
.testimonial-text { color: var(--text-2); font-size: 0.88rem; line-height: 1.8; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; overflow: hidden; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; color: var(--text); font-size: 0.875rem; }
.author-role { font-size: 0.75rem; color: var(--text-muted); }
.swiper-pagination-bullet { background: var(--primary) !important; opacity: 0.3 !important; }
.swiper-pagination-bullet-active { opacity: 1 !important; width: 20px !important; border-radius: 3px !important; }

/* ===== PRICING — REDESIGNED ===== */
.pricing-section { background: var(--bg); }

/* Pricing card base */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:not(.featured):hover {
    transform: translateY(-6px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-lg);
}

/* Featured card */
.pricing-card.featured {
    background: linear-gradient(145deg, rgba(99,102,241,0.08), var(--card-bg));
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.15), var(--shadow-lg);
    transform: translateY(-8px);
}

/* Popular badge */
.pricing-popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 0 0 12px 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Icon */
.pricing-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 16px auto 16px;
    transition: var(--transition);
}
.pricing-card:hover .pricing-icon { transform: scale(1.1) rotate(5deg); }
.pricing-card.featured .pricing-icon { background: rgba(99,102,241,0.15); }

/* Title */
.pricing-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

/* Divider line before price */
.pricing-divider {
    width: 40px; height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* Price display */
.pricing-price-wrap {
    background: var(--bg-3);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 6px;
}
.pricing-card.featured .pricing-price-wrap {
    background: rgba(99,102,241,0.1);
}
.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Features list */
.pricing-features {
    list-style: none;
    text-align: left;
    margin: 16px 0 20px;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.855rem;
    color: var(--text-2);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border: none; }
.pricing-features li .feat-icon {
    width: 18px; height: 18px;
    background: rgba(16,185,129,0.12);
    color: var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* CTA button wrapper */
.pricing-cta { margin-top: auto; }
.pricing-cta .btn-primary { width: 100%; }
.pricing-cta .btn-pricing-outline { width: 100%; }

/* Mobile swiper for pricing */
.pricing-swiper { padding-bottom: 36px !important; }
.pricing-swiper .swiper-slide { height: auto; padding: 4px 2px 4px; }
.pricing-swiper .swiper-pagination { position: relative !important; margin-top: 4px; }

/* ===== FAQ ===== */
.faq-section { background: var(--section-alt); }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: rgba(99,102,241,0.3); }
.faq-question { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 14px; user-select: none; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.faq-question:hover { color: var(--primary); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: rgba(99,102,241,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; transition: var(--transition); }
.faq-item.open .faq-icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 20px 18px; color: var(--text-2); font-size: 0.875rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ===== BLOG ===== */
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99,102,241,0.22); }
.blog-img { width: 100%; height: 192px; object-fit: cover; }
.blog-img-placeholder { width: 100%; height: 192px; background: var(--bg-4); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.blog-img-placeholder i { font-size: 2.2rem; opacity: 0.35; }
.blog-body { padding: 18px; }
.blog-category-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; color: var(--primary); background: rgba(99,102,241,0.1); padding: 3px 11px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 9px; }
.blog-title { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.5; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--primary); }
.blog-excerpt { font-size: 0.84rem; color: var(--text-2); margin-bottom: 12px; line-height: 1.7; }
.blog-meta { display: flex; gap: 14px; font-size: 0.76rem; color: var(--text-muted); flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.read-more { color: var(--primary); font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; transition: gap 0.25s; }
.read-more:hover { gap: 10px; color: var(--secondary); }

/* ===== CONTACT ===== */
.contact-info-card { padding: 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 15px; align-items: flex-start; transition: var(--transition); margin-bottom: 12px; }
.contact-info-card:hover { border-color: rgba(99,102,241,0.25); transform: translateX(4px); }
.contact-icon { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; background: rgba(99,102,241,0.1); color: var(--primary); }
.contact-info-card h6 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 3px; }
.contact-info-card p, .contact-info-card a { color: var(--text); font-weight: 500; font-size: 0.855rem; }
.contact-info-card a:hover { color: var(--primary); }
.contact-form-wrap { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.form-section-title { color: var(--text); margin-bottom: 22px; font-size: 1.2rem; font-weight: 700; }
.form-control, .form-select { background: var(--input-bg) !important; border: 1px solid var(--border) !important; color: var(--text) !important; padding: 11px 14px !important; border-radius: var(--radius-sm) !important; font-size: 0.875rem !important; transition: border-color 0.18s !important; font-family: var(--font) !important; width: 100%; }
.form-control:focus, .form-select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important; background: var(--card-bg) !important; outline: none !important; }
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label { color: var(--text-2); font-size: 0.84rem; font-weight: 500; margin-bottom: 6px; display: block; }
.map-container { border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.map-container iframe { width: 100%; height: 220px; border: none; display: block; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-2); position: relative; z-index: 1; }
.footer-top { padding: 64px 0 36px; }
.footer-bottom { padding: 16px 0; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--primary); }
.brand-text-lg { font-size: 1.8rem; font-weight: 800; display: block; margin-bottom: 12px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-logo img { height: 36px; width: auto; object-fit: contain; margin-bottom: 12px; }
.footer-desc { color: var(--text-2); font-size: 0.86rem; line-height: 1.8; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a { width: 35px; height: 35px; border-radius: 50%; background: var(--glass); border: 1px solid var(--border); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid rgba(99,102,241,0.16); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-2); font-size: 0.84rem; transition: var(--transition); display: flex; align-items: center; gap: 7px; }
.footer-links a i { font-size: 0.64rem; color: var(--primary); }
.footer-links a:hover { color: var(--primary); padding-left: 3px; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--text-2); font-size: 0.84rem; }
.footer-contact li i { color: var(--primary); margin-top: 3px; min-width: 14px; }
.footer-contact a { color: var(--text-2); transition: color 0.2s; }
.footer-contact a:hover { color: var(--primary); }
.footer-newsletter .input-group { display: flex; gap: 6px; }
.footer-newsletter .form-control { border-radius: var(--radius-sm) !important; flex: 1; min-width: 0; }
.footer-newsletter .btn { flex-shrink: 0; border-radius: var(--radius-sm) !important; padding: 10px 14px !important; white-space: nowrap; }

/* ===== FLOATING BUTTONS ===== */
#backToTop { position: fixed; bottom: 86px; right: 18px; width: 42px; height: 42px; border-radius: 50%; z-index: 999; background: var(--gradient); color: #fff; border: none; box-shadow: 0 4px 16px rgba(99,102,241,0.4); opacity: 0; transform: translateY(20px); transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 0.88rem; }
#backToTop.show { opacity: 1; transform: translateY(0); }
#backToTop:hover { transform: translateY(-3px); }
.whatsapp-float { position: fixed; bottom: 20px; right: 18px; width: 50px; height: 50px; border-radius: 50%; z-index: 999; background: #25d366; color: #fff; font-size: 1.35rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); animation: pulseWA 2s infinite; }
@keyframes pulseWA { 0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 26px rgba(37,211,102,0.7); } }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ===== BLOG LIST PAGE ===== */
.blog-list-hero { background: var(--gradient); padding: 80px 0 46px; text-align: center; }
.blog-list-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.blog-list-hero p { color: rgba(255,255,255,0.88); }
.blog-search-bar { background: var(--card-bg); border: 1px solid var(--border); border-radius: 50px; overflow: hidden; display: flex; }
.blog-search-bar input { flex: 1; background: none !important; border: none !important; padding: 11px 18px !important; font-size: 0.88rem !important; color: var(--text) !important; }
.blog-search-bar input:focus { box-shadow: none !important; }
.blog-search-bar button { background: var(--gradient); border: none; color: #fff; padding: 10px 18px; cursor: pointer; font-size: 0.88rem; border-radius: 0 50px 50px 0; }
.sidebar-widget { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.widget-title { font-size: 0.93rem; font-weight: 700; color: var(--text); margin-bottom: 13px; padding-bottom: 8px; border-bottom: 2px solid rgba(99,102,241,0.16); }
.recent-post-item { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { margin: 0; padding: 0; border: none; }
.recent-post-item img { width: 56px; height: 46px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.recent-post-placeholder { width: 56px; height: 46px; border-radius: 7px; background: var(--bg-4); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
.recent-post-item a { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.4; display: block; }
.recent-post-item a:hover { color: var(--primary); }
.recent-post-item small { color: var(--text-muted); font-size: 0.72rem; display: block; margin-top: 2px; }
.cat-link { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; color: var(--text-2); transition: color 0.2s; }
.cat-link:hover { color: var(--primary); }
.cat-link:last-child { border: none; }
.cat-count { background: rgba(99,102,241,0.1); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 16px); }

/* ===== BLOG POST PAGE ===== */
.article-hero-section { padding: calc(var(--nav-h) + 40px) 0 50px; background: var(--gradient); text-align: center; }
.article-hero-inner { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.badge-cat-hero { display: inline-block; padding: 0.3rem 0.9rem; background: rgba(255,255,255,0.2); color: #fff; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-decoration: none; margin-bottom: 1rem; backdrop-filter: blur(4px); }
.article-hero-title { font-size: clamp(1.4rem, 4vw, 2.3rem); font-weight: 800; color: #fff; margin: 0 auto 1.2rem; line-height: 1.3; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: center; color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.article-body { background: var(--card-bg); border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--border); }
.article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-content { line-height: 1.85; color: var(--text); font-size: 1rem; }
.post-content h2, .post-content h3 { color: var(--text); margin-top: 2rem; margin-bottom: 1rem; }
.post-content img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem auto; display: block; }
.post-content a { color: var(--primary); }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 2rem 0; background: rgba(99,102,241,0.06); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-2); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-content table th, .post-content table td { padding: 0.6rem 1rem; border: 1px solid var(--border); color: var(--text); }
.post-content pre { background: var(--bg-3); padding: 1rem; border-radius: 8px; overflow-x: auto; }
.share-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.share-label { font-size: 0.9rem; font-weight: 600; color: var(--text-2); }
.share-btn { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; text-decoration: none; border: none; cursor: pointer; transition: 0.3s; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0a66c2; }
.share-btn.wa { background: #25d366; }
.share-btn.cp { background: var(--primary); }
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.tag-badge { display: inline-block; padding: 0.25rem 0.75rem; background: rgba(99,102,241,0.1); color: var(--primary); border-radius: 20px; font-size: 0.8rem; margin: 0.2rem; }
.post-nav { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.post-nav-link { display: block; padding: 1rem; background: var(--bg-3); border-radius: 12px; border: 1px solid var(--border); text-decoration: none; transition: 0.3s; }
.post-nav-link:hover { border-color: var(--primary); }
.post-nav-link small { display: block; color: var(--primary); font-size: 0.75rem; margin-bottom: 0.25rem; }
.post-nav-link span { color: var(--text); font-size: 0.875rem; font-weight: 600; display: block; }
.author-box { background: var(--bg-3); border-radius: 16px; padding: 1.5rem; border: 1px solid var(--border); display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); flex-shrink: 0; font-size: 1.5rem; }
.author-info { flex: 1; min-width: 200px; }
.author-info h5 { margin: 0 0 4px; font-weight: 700; color: var(--text); }
.author-role { color: var(--primary); font-size: 0.85rem; display: block; margin-bottom: 6px; }
.author-info p { color: var(--text-2); font-size: 0.875rem; line-height: 1.6; margin-bottom: 10px; }
.author-social { display: flex; gap: 8px; }
.author-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; text-decoration: none; }
.section-mini-title { font-size: 1.1rem; font-weight: 700; color: var(--text); padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary); margin-bottom: 1.5rem; }
.comment-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border: none; }
.comment-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; font-size: 1.1rem; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.comment-header strong { color: var(--text); }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border: none; }
.toc-list a { color: var(--text-2); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.toc-list a:hover { color: var(--primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown  { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(18px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft  { from { opacity: 0; transform: translateX(24px);  } to { opacity: 1; transform: translateX(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-img-container { width: 250px; height: 250px; }
    .hero-float-card { display: none; }
    .hero-image-wrap { margin-top: 32px; }
    .section-pad { padding: 68px 0; }
    .sidebar-sticky { position: static; }
    .pricing-card.featured { transform: translateY(0); }
}

@media (max-width: 767px) {
    .hero-section { padding-top: calc(var(--nav-h) + 28px); }
    .section-pad { padding: 52px 0; }
    .section-header { margin-bottom: 36px; }
    /* Hero center on mobile */
    .hero-content { text-align: center; }
    .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-badge { margin: 0 auto 18px; display: inline-flex; }
    .hero-social { justify-content: center; }
    .hero-buttons { justify-content: center; gap: 10px; }
    /* Footer newsletter */
    .footer-newsletter .input-group { flex-direction: column; gap: 8px; }
    .footer-newsletter .btn { border-radius: var(--radius-sm) !important; width: 100%; justify-content: center; }
    /* Footer bottom center */
    .footer-bottom .row { text-align: center; }
    .footer-bottom .text-md-end { text-align: center !important; margin-top: 6px; }
    .contact-form-wrap { padding: 22px 16px; }
    .testimonial-slide { padding: 22px 16px; }
    .about-exp-badge { bottom: -10px; right: 10px; }
    .stats-section { padding: 36px 0; }
    .pricing-card { padding: 28px 20px; }
}

@media (max-width: 575px) {
    .section-title { font-size: 1.5rem !important; }
    .hero-name { font-size: clamp(1.7rem, 8vw, 2.5rem) !important; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline-hero,
    .hero-buttons .btn-secondary-hero { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); padding: 9px 10px !important; font-size: 0.8rem !important; justify-content: center; }
    .stat-number { font-size: 1.8rem; }
    .service-card { padding: 20px 16px; }
    .blog-body { padding: 14px; }
    .contact-info-card { padding: 14px; }
    .faq-question { padding: 14px 16px; font-size: 0.88rem; }
    .faq-answer-inner { padding: 0 16px 14px; }
    .footer-top { padding: 44px 0 28px; }
    .timeline { padding-left: 20px; }
    .timeline-dot { left: -28px; width: 14px; height: 14px; }
    .timeline-card { padding: 14px; }
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-social { justify-content: center; }
}

/* Prevent iOS input zoom */
@media (max-width: 767px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="url"], input[type="password"],
    textarea, select { font-size: 16px !important; }
}
