:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --success: #059669;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-muted: #f1f5f9;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Navbar ========== */
#mainNav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

#mainNav.scrolled {
    box-shadow: var(--shadow);
    padding: 0.65rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.03em;
}

.brand-icon {
    color: var(--accent);
    margin-right: 4px;
}

.text-accent {
    color: var(--accent) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.45rem 0.9rem !important;
    color: var(--text-muted) !important;
    border-radius: 8px;
}

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

.btn-accent {
    background: var(--accent);
    color: #fff !important;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1.25rem;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-outline-accent {
    border: 1.5px solid var(--accent);
    color: var(--accent) !important;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff !important;
}

.btn-lg {
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
    color: var(--primary);
}

.hero h1 span {
    color: var(--accent);
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.8rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
}

.stat-item h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.1rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 11px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border);
    animation: float 3.5s ease-in-out infinite;
}

.floating-card.card-1 {
    bottom: 24px;
    left: -12px;
}

.floating-card.card-2 {
    top: 28px;
    right: -10px;
    animation-delay: 1.2s;
}

.floating-card i {
    color: var(--accent);
    font-size: 1.15rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== Sections ========== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2.8rem;
}

.section-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 50px;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ========== Service Cards ========== */
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.85rem;
    height: 100%;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 1.15rem;
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 0;
}

/* ========== About ========== */
.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.experience-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.experience-card:hover {
    border-color: #bfdbfe;
    background: #fff;
}

.experience-card .year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.experience-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.skill-bar {
    margin-bottom: 1.15rem;
}

.skill-bar .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-bar .progress {
    height: 7px;
    border-radius: 10px;
    background: var(--bg-muted);
}

.skill-bar .progress-bar {
    background: var(--accent);
    border-radius: 10px;
}

/* ========== Portfolio Live Preview ========== */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 2.4rem;
}

.filter-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.portfolio-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

/* Live iframe preview */
.preview-frame {
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.preview-frame iframe {
    width: 1280px;
    height: 900px;
    border: 0;
    transform: scale(0.28);
    transform-origin: top left;
    pointer-events: auto;
    background: #fff;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(15,23,42,0.03));
    pointer-events: none;
}

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

.portfolio-cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.3rem;
}

.portfolio-body h5 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.portfolio-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    flex-grow: 1;
}

.portfolio-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.portfolio-link:hover {
    color: var(--accent-hover);
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    padding: 60px 0;
    border-radius: 24px;
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
}

/* ========== Contact ========== */
.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: var(--bg-soft);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.contact-info-card {
    background: linear-gradient(145deg, #1e40af, #2563eb);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.2rem;
    height: 100%;
}

.contact-info-card h3 {
    color: #fff;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.contact-info-item .icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item a {
    color: rgba(255,255,255,0.9);
}

.contact-info-item a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
    background: #0f172a !important;
    color: #e2e8f0;
}

.footer h5, .footer h6 {
    color: #ffffff !important;
}

.footer p,
.footer .text-muted {
    color: #94a3b8 !important;
}

.footer-links a,
.footer-contact a {
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #60a5fa !important;
}

.footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
}

.footer .social-link:hover {
    background: var(--accent);
    color: #fff;
}

.footer hr {
    border-color: rgba(255,255,255,0.1) !important;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse-wa 2.2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff !important;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #fff;
    color: var(--primary);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========== Page Header ========== */
.page-header {
    background: var(--bg-soft);
    padding: 70px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    color: var(--primary);
}

.page-header p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0.6rem auto 0;
}

.breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--accent);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Privacy */
.privacy-content h2 {
    font-size: 1.3rem;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}

.privacy-content p,
.privacy-content ul {
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 70px 0 50px;
        text-align: center;
    }
    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons, .hero-stats {
        justify-content: center;
    }
    .floating-card {
        display: none;
    }
    .hero-image {
        margin-top: 2rem;
        max-height: 360px;
    }
    .preview-frame {
        height: 180px;
    }
    .preview-frame iframe {
        transform: scale(0.22);
    }
}

@media (max-width: 575px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 1.55rem;
    }
    .cta-section {
        border-radius: 18px;
        margin: 0 8px;
    }
}
