/* 
 * SuperWebTech - Premium Digital Marketing & Agency Stylesheet
 * Primary: #2563EB | Secondary: #0F172A | Accent: #22C55E | Background: #F8FAFC
 */

:root {
    --primary: #2563EB; /* Original blue */
    --primary-hover: #1d4ed8; /* Darker blue */
    --secondary: #0F172A; /* Original dark gray */
    --accent: #22c55e; /* Keep accent */
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-light: #0b0f19;
    --card-bg: #111827;
    --secondary: #f8fafc;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #1f2937;
    --glass-bg: rgba(17, 24, 39, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: var(--transition);
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar & Sticky */
.navbar-custom {
    padding: 0.8rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Brand Logo Styling */
.navbar-logo {
    max-height: 80px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

.footer-logo {
    max-height: 50px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Mega Menu */
.mega-menu {
    position: static;
}

.mega-dropdown {
    width: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 90px;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
                var(--bg-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    animation: heroBlob 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
    animation: heroBlob 10s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes heroBlob {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(30px, -30px); }
}

/* Hero Visual Dashboard */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-dashboard {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    border: 1px solid rgba(37,99,235,0.25);
    box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    padding: 28px;
}

.hero-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #22c55e, #38bdf8);
}

.dash-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dash-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dash-dot-red   { background: #ef4444; }
.dash-dot-yellow{ background: #f59e0b; }
.dash-dot-green { background: #22c55e; }

.dash-title {
    font-size: 12px;
    color: #475569;
    margin-left: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-metric {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.dash-metric-val {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dash-metric-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-chart {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    height: 120px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 80px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.dash-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.tag-blue   { background: rgba(37,99,235,0.2);  color: #60a5fa; }
.tag-green  { background: rgba(34,197,94,0.2);  color: #4ade80; }
.tag-cyan   { background: rgba(56,189,248,0.2); color: #38bdf8; }
.tag-purple { background: rgba(139,92,246,0.2); color: #a78bfa; }

/* Floating badge cards on the hero visual */
.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatCard 4s ease-in-out infinite alternate;
    z-index: 10;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.06);
}

.hero-float-card.card-left {
    left: -30px;
    bottom: 80px;
    animation-delay: 0s;
}

.hero-float-card.card-top-right {
    right: -20px;
    top: 60px;
    animation-delay: 1.5s;
    animation-direction: alternate-reverse;
}

@keyframes floatCard {
    0%   { transform: translateY(0px);  }
    100% { transform: translateY(-12px); }
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.float-icon-blue   { background: rgba(37,99,235,0.12); color: #2563eb; }
.float-icon-green  { background: rgba(34,197,94,0.12);  color: #16a34a; }

.float-text .fval  { font-size: 1rem; font-weight: 800; color: #0f172a; line-height: 1; }
.float-text .flbl  { font-size: 10px; color: #64748b; }

@media (max-width: 991px) {
    .hero-visual { height: 360px; margin-top: 40px; }
    .hero-float-card.card-left { left: 10px; bottom: -20px; }
    .hero-float-card.card-top-right { right: 10px; top: -20px; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* Gradient Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
    color: #ffffff;
}

/* Feature Cards & Glass Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #ffffff;
}

/* Stats Counter Section */
.counter-box {
    text-align: center;
    padding: 1.5rem;
}

.counter-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
}

/* Infinite Client Logo Slider */
.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.logo-slider-track {
    display: inline-flex;
    animation: scrollLogos 25s linear infinite;
}

.logo-slider img {
    height: 45px;
    margin: 0 40px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition);
}

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

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Before / After Container */
.before-after-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.before-after-wrapper img {
    width: 100%;
    display: block;
}

/* Floating Actions (WhatsApp & Top) */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-floating {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.btn-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.btn-whatsapp {
    background: #25d366;
}

.btn-back-top {
    background: var(--primary);
    display: none;
}

/* Section Title Styling */
.section-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

/* Footer Styling */
.footer-custom {
    background: var(--secondary); /* dark background */
    color: var(--text-main);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Footer text color overrides */
footer.footer-custom p,
footer.footer-custom .footer-title,
footer.footer-custom .text-muted {
    color: #ffffff !important;
}


.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Dark Mode Switcher */
.theme-switch-btn {
    cursor: pointer;
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 30px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    transition: var(--transition);
}
/* Slightly larger text for better readability */
footer.footer-custom p,
footer.footer-custom .footer-title,
footer.footer-custom .footer-links a {
    font-size: 1rem; /* increased from default */
}

/* Optional: increase body text size slightly */
body {
    font-size: 1rem;
}
