/* =========================
   THEME VARIABLES
========================= */
:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --card: #f8fafc;
    --border: #e5e7eb;
    --primary: #ff8800;
    /* ORANGE */
    --gradient: linear-gradient(90deg, #ff8800, #ffb347);
    --hamburger-color: #0f172a;
    --mobile-font: 'Montserrat', sans-serif;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --card: #111827;
    --border: #1f2933;
    --primary: #ff8800;
    --gradient: linear-gradient(90deg, #ff8800, #ffb347);
    --hamburger-color: #ffb347;
    /* Make visible in dark mode */
}

/* =========================
   GLOBAL
========================= */
body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--mobile-font);
    margin: 0;
    padding: 0;
}

/* =========================
   TEMP DATA TOAST
========================= */
.toast-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 320px;
    width: 90%;
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
    z-index: 9999;
}

.toast-notification span {
    flex: 1;
}

.toast-notification .close-toast {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    margin-left: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.toast-notification .close-toast:hover {
    transform: scale(1.2);
}

/* Slide in from right */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade out after delay */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .toast-notification {
        top: 0.8rem;
        right: 0.8rem;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}


/* =========================
   NAVBAR
========================= */
.navbar {
    background: var(--card);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--mobile-font);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav li.nav-item {
    line-height: normal;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-family: var(--mobile-font);
}

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

/* =========================
   NAV LINK LETTER ROLL
========================= */
.nav-animate {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    height: 1em;
}

.nav-animate span {
    position: relative;
    display: block;
    line-height: 1em;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-animate span::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    color: var(--primary);
}

.nav-link.nav-animate:hover span {
    transform: translateY(-100%);
}

/* =========================
   CONTACT BUTTON
========================= */
.btn-contact {
    background: var(--bg);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--primary);
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--mobile-font);
}

.btn-contact i {
    font-size: 1rem;
    vertical-align: middle;
}

.btn-contact:hover {
    background: var(--gradient);
    color: var(--bg);
    border-color: var(--primary);
}

/* =========================
   THEME TOGGLE BUTTON
========================= */
.theme-btn {
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    position: relative;
}

.theme-btn:hover {
    transform: rotate(20deg) scale(1.15);
    background: var(--primary);
    color: var(--card);
}

.theme-btn .sun-icon,
.theme-btn .moon-icon {
    position: absolute;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

/* =========================
   HAMBURGER ICON
========================= */
.navbar-toggler {
    position: fixed;
    top: 1rem;
    right: 1rem;
    border: none;
    outline: none;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.hamburger-bar {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--hamburger-color);
    /* theme-aware */
    border-radius: 2px;
    transition: transform 0.5s ease, opacity 0.3s ease, background 0.3s ease;
    transform-origin: center;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Active X animation */
.navbar-toggler.active .hamburger-bar:nth-child(1) {
    transform: translateY(9.4px) rotate(45deg);
    background: var(--hamburger-color);
    /* ensures visible in X */
}

.navbar-toggler.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9.4px) rotate(-45deg);
    background: var(--hamburger-color);
    /* ensures visible in X */
}

/* Hide the old <i> icon */
.navbar-toggler i {
    display: none;
}

/* Hide hamburger on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
    position: fixed;
    /* FIXED to cover screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 100;
}

.mobile-menu.show {
    height: 100vh;
    opacity: 1;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 1rem 0;
    text-transform: uppercase;
    font-family: var(--mobile-font);
}

.mobile-menu .nav-link:hover {
    color: var(--primary);
}

.mobile-menu .btn-contact,
.mobile-menu .theme-btn {
    margin-top: 1.5rem;
}

/* =========================
   HERO
========================= */
.hero-section {
    padding: 7rem 1rem 6rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--mobile-font);
}

/* =========================
   TYPING ANIMATION
========================= */
.hero-subtitle {
    font-size: 18px;
    margin-top: 1.2rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--mobile-font);
    height: 1.2em;
    /* prevents jump on change */
    overflow: hidden;
    white-space: nowrap;
}

.typing-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-right: 2px;
}

.typing-text .cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--primary);
    animation: blink 0.7s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Blink caret */
@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}


/* =========================
   HERO BUTTON (MATCH CONTACT)
========================= */
.hero-btn {
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 20px 36px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    font-family: var(--mobile-font);
}

/* Hover */
.hero-btn:hover {
    background: var(--gradient);
    color: var(--bg);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 136, 0, 0.35);
}

/* Active */
.hero-btn:active {
    transform: scale(0.97);
    border: 0px;
}

/* =========================
   PROFILE IMAGE
========================= */
.profile-image-wrapper {
    width: 380px;
    height: 450px;
    flex-shrink: 0;
    border-radius: 10%;
    border: 0px;
    overflow: hidden;
    position: relative;
    /* for pseudo-elements */
    transition: transform 0.35s ease;
}

/* Subtle dotted ring overlay */
.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 20%;
    border: 0px;
    pointer-events: none;
    opacity: 0.1;
}

/* Extreme bottom fog for profile image */
.profile-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;

    /* PNG overlay + gradient for smooth fog */
    background:
        linear-gradient(to top, var(--bg) 0%, rgba(255, 255, 255, 0) 40%),
        /* vertical fog */
        url('/images/fog.png') no-repeat center bottom;
    background-size: cover;
    background-blend-mode: lighten;
    opacity: 1;
    /* stronger fog */

    /* Mask to completely fade bottom AND right */
    mask-image:
        linear-gradient(to top, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%)
        /* vertical fade */
        ,
        linear-gradient(to left, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
    /* horizontal right fade */
    -webkit-mask-image:
        linear-gradient(to top, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(to left, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 0) 100%);

    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
}


/* Image inside wrapper */
.profile-image {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    object-fit: cover;
    display: block;
    border: 0px;
    border-radius: 20%;
}


/* Adjust text on smaller screens */
@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 1rem 4rem;
    }

    .profile-image-wrapper {
        width: 320px;
        height: 400px;
    }
}



/* =========================
   PROJECTS
========================= */
.projects-section {
    padding: 5rem 1rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--mobile-font);
}

/* =========================
   PROJECT CARDS
========================= */
.project-wide-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.project-wide-card {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-wide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(255, 136, 0, 0.35);
}

.project-wide-card-wrapper.image-left .project-image {
    order: 0;
}

.project-wide-card-wrapper.image-left .project-content {
    order: 1;
}

.project-wide-card-wrapper.image-right .project-image {
    order: 1;
}

.project-wide-card-wrapper.image-right .project-content {
    order: 0;
}

.project-image {
    flex: 1 1 50%;
    min-height: 320px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-wide-card:hover img {
    transform: scale(1.08);
}

.project-content {
    flex: 1 1 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--mobile-font);
}

.project-content p {
    margin: 1.2rem 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--mobile-font);
}

.view-link {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    font-family: var(--mobile-font);
}

/* =========================
   CONTACT (THEME AWARE)
========================= */
.contact-section {
    padding: 80px 0;
    background: var(--bg);
}

.contact-form {
    background: var(--card);
    padding: 36px;
    border-radius: 22px;
    border: 1px solid var(--border);
    color: inherit;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(255, 136, 0, 0.35);
}

/* Labels */
.contact-form .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

/* Inputs & textarea */
.contact-form .form-control {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.9rem;
    transition: border 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Placeholder */
.contact-form .form-control::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

/* Focus effect */
.contact-form .form-control:focus {
    background: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 136, 0, 0.15);
    outline: none;
    color: var(--text);
}

/* Textarea resize */
.contact-form textarea {
    resize: none;
}

/* =========================
   CONTACT BUTTON
========================= */
.contact-form .btn-primary {
    background: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover */
.contact-form .btn-primary:hover {
    background: var(--gradient);
    color: var(--bg);
    border: 2px solid var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 136, 0, 0.35);
}

/* Active */
.contact-form .btn-primary:active {
    transform: scale(0.97);
}

/* =========================
   DARK MODE TWEAKS
========================= */

[data-theme="dark"] .contact-form .form-control {
    background: #0b1220;
}



/* =========================
   FOOTER
========================= */
.footer-modern {
    background: var(--card);
    color: var(--muted);
    padding: 2rem 1rem;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--mobile-font);
}

/* Footer Links - Base */
.footer-modern a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Hover Effect - Smooth underline */
.footer-modern a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    /* distance from text */
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.35s ease;
    border-radius: 1px;
}

.footer-modern a:hover {
    color: var(--gradient-start, var(--primary));
    /* optional gradient color */
}

.footer-modern a:hover::after {
    width: 100%;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .footer-modern a {
    color: var(--primary);
}

[data-theme="dark"] .footer-modern a:hover {
    color: var(--gradient-start, var(--primary));
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .project-wide-card {
        flex-direction: column;
    }

    .project-image {
        min-height: 240px;
    }
}

/* =========================
   MOBILE RESPONSIVE HERO SUBTITLE
========================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 16px;
        /* smaller, fits mobile */
        letter-spacing: 0.1em;
        /* adjust spacing for readability */
    }

    .project-wide-card {
        flex-direction: column;
    }

    .project-image {
        min-height: 240px;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 14px;
        /* fits very small screens */
        letter-spacing: 0.08em;
    }

    .profile-image-wrapper {
        width: 260px;
        height: 320px;
    }
}


/* =========================
   SCROLL REVEAL ANIMATIONS
========================= */

/* Base hidden state — elements start small + invisible */
.reveal {
    opacity: 0;
    transform: scale(0.88) translateY(28px);
    transition:
        opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Stagger children inside a reveal group */
.reveal-group>* {
    opacity: 0;
    transform: scale(0.88) translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Triggered state — springs to natural size */
.reveal.in-view,
.reveal-group.in-view>* {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Stagger delays for reveal-group children */
.reveal-group.in-view>*:nth-child(1) {
    transition-delay: 0.00s;
}

.reveal-group.in-view>*:nth-child(2) {
    transition-delay: 0.10s;
}

.reveal-group.in-view>*:nth-child(3) {
    transition-delay: 0.20s;
}

.reveal-group.in-view>*:nth-child(4) {
    transition-delay: 0.30s;
}

.reveal-group.in-view>*:nth-child(5) {
    transition-delay: 0.40s;
}

.reveal-group.in-view>*:nth-child(6) {
    transition-delay: 0.50s;
}

/* Slower, more dramatic reveal for hero elements */
.reveal-hero {
    opacity: 0;
    transform: scale(0.80) translateY(36px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-hero.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Section title pop */
.reveal-title {
    opacity: 0;
    transform: scale(0.82) translateY(20px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-title.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-group>*,
    .reveal-hero,
    .reveal-title {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================
   ERROR TOAST
========================= */
.toast-notification.toast-error {
    background: #dc2626;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 6s forwards;
}

/* =========================
   PHONE PICKER
========================= */
.phone-picker-wrapper {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.phone-picker-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 136, 0, 0.15);
}

.phone-country-select {
    background: var(--card);
    color: var(--text);
    border: none;
    border-right: 1.5px solid var(--border);
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--mobile-font);
    cursor: pointer;
    outline: none;
    min-width: 130px;
    max-width: 140px;
    appearance: auto;
    flex-shrink: 0;
}

.phone-country-select:focus {
    outline: none;
}

.phone-local-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--bg) !important;
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.phone-local-input:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

[data-theme="dark"] .phone-country-select {
    background: #111827;
    color: var(--text);
    border-right-color: var(--border);
}

/* =========================
   PHONE PICKER — CUSTOM ARROW FIX
========================= */
/* Wrap the select in a relative div so we can fake the arrow */
.phone-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card);
    border-right: 1.5px solid var(--border);
    flex-shrink: 0;
}

.phone-select-wrapper::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary);
    pointer-events: none;
}

.phone-country-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    padding: 12px 32px 12px 12px !important;
    /* right padding for arrow */
    min-width: 130px;
    max-width: 145px;
    cursor: pointer;
}

[data-theme="dark"] .phone-select-wrapper {
    background: #111827;
}

/* =========================
   WHATSAPP FLOATING BUTTON
========================= */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
    animation: fabPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.whatsapp-fab svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.whatsapp-fab:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab:active {
    transform: scale(0.96);
}

/* Tooltip label */
.whatsapp-fab::before {
    content: 'Chat on WhatsApp';
    position: absolute;
    right: 68px;
    background: #111827;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--mobile-font);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-fab:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse ring */
.whatsapp-fab::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: waPulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    70% {
        transform: scale(1.55);
        opacity: 0;
    }

    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@keyframes fabPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .whatsapp-fab {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
}