/* =====================================================
   ARISE IT MEDIA — MAIN STYLESHEET
   ===================================================== */

:root {
    --primary: #2563EB;
    --secondary: #06B6D4;
    --accent: #8B5CF6;
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --success: #10B981;
    --warning: #F59E0B;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #2563EB 100%);

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --light-bg: #0F172A;
    --text-dark: #F1F5F9;
    --text-light: #94A3B8;
    --white: #1E293B;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

.text-primary-custom { color: var(--primary) !important; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-dark-custom { background: var(--dark-bg); }

.section-padding { padding: 100px 0; }
@media (max-width: 768px) { .section-padding { padding: 60px 0; } }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); font-size: 17px; max-width: 600px; }

/* ---------- Buttons ---------- */
.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4); color: #fff; }

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline-custom:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------- Glassmorphism ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Header ---------- */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}
.main-header.scrolled {
    padding: 12px 0;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .main-header.scrolled { background: rgba(15, 23, 42, 0.85); }

.navbar-brand img { height: 42px; }
.main-header .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 14px;
    position: relative;
    padding: 8px 0 !important;
}
.main-header.scrolled .nav-link,
.main-header:not(.scrolled) .nav-link { color: var(--text-dark); }
.main-header:not(.scrolled) .navbar-light .nav-link { color: #fff; }

.main-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}
.main-header .nav-link:hover::after,
.main-header .nav-link.active::after { width: 100%; }

.theme-toggle-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(100,116,139,0.2);
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    color: #fff;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.35), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.3), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.25), transparent 40%);
}
.hero-section .badge-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}
.hero-section h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); line-height: 1.15; }
.hero-section p.lead { color: rgba(255,255,255,0.75); font-size: 18px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stats .stat-label { color: rgba(255,255,255,0.6); font-size: 14px; }

.hero-visual { position: relative; z-index: 2; }
.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ---------- Cards ---------- */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    height: 100%;
    border: 1px solid rgba(100,116,139,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    margin-bottom: 20px;
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.portfolio-card img { width: 100%; height: 280px; object-fit: cover; transition: var(--transition); }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h5 { color: #fff; margin-bottom: 4px; }
.portfolio-overlay span { color: var(--secondary); font-size: 13px; font-weight: 600; }

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 2px solid rgba(100,116,139,0.08);
    transition: var(--transition);
    height: 100%;
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card .price { font-size: 42px; font-weight: 800; }
.pricing-card .price span { font-size: 16px; color: var(--text-light); font-weight: 500; }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    height: 100%;
}
.testimonial-card .stars { color: var(--warning); font-size: 14px; }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

.blog-card { border-radius: var(--radius-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-category-tag { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }

.stat-counter-box { text-align: center; padding: 30px 20px; }
.stat-counter-box .num { font-size: 48px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.process-step { text-align: center; position: relative; padding: 0 16px; }
.process-step .step-num {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; margin: 0 auto 20px;
}

.client-logo-box { display: flex; align-items: center; justify-content: center; padding: 20px; filter: grayscale(1) opacity(0.6); transition: var(--transition); }
.client-logo-box:hover { filter: none; }

/* ---------- Footer ---------- */
.main-footer { background: var(--dark-bg); color: rgba(255,255,255,0.7); padding-top: 80px; }
.main-footer h5 { color: #fff; margin-bottom: 20px; }
.main-footer a { color: rgba(255,255,255,0.6); }
.main-footer a:hover { color: var(--secondary); }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 8px; color: #fff;
}
.footer-social a:hover { background: var(--gradient-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; margin-top: 60px; font-size: 14px; }

/* ---------- Floating UI ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.back-to-top {
    position: fixed; bottom: 24px; right: 94px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.call-float {
    position: fixed; bottom: 94px; right: 24px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--gradient-primary); color: #fff;
    display: none; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: var(--shadow-md);
}
@media (max-width: 768px) { .call-float { display: flex; } }

/* ---------- Loading Screen ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark-bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(37,99,235,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Newsletter Popup ---------- */
.newsletter-popup-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.7); z-index: 9998;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.newsletter-popup-overlay.show { display: flex; }
.newsletter-popup-box {
    background: var(--white); border-radius: var(--radius-lg);
    max-width: 480px; width: 100%; padding: 40px; position: relative;
    box-shadow: var(--shadow-lg);
}
.newsletter-popup-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-light); }

/* ---------- Forms ---------- */
.form-control-custom {
    border: 2px solid rgba(100,116,139,0.15);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
}
.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
    outline: none;
}

/* ---------- Misc ---------- */
.page-banner {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-banner h1 { color: #fff; }
.breadcrumb-custom a { color: rgba(255,255,255,0.7); }
.breadcrumb-custom .active { color: #fff; }

.filter-btn {
    border: 2px solid rgba(100,116,139,0.15);
    background: transparent;
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin: 4px;
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.cursor-pointer { cursor: pointer; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 10px; }
