/* 
 * JFD TECH - Premium Design System
 * Modern, responsive, and performance-optimized.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Premium HSL */
    --primary-h: 210;
    --primary-s: 100%;
    --primary-l: 50%;

    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 40%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 90%);

    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 50px rgba(0, 119, 194, 0.15);

    /* Spacing & Sizes */
    --nav-height: 80px;
    --container-width: 1200px;
    --radius: 16px;

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

/* Dark Mode Tokens */
[data-theme="dark"] {
    --bg-main: #020617;
    --bg-secondary: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

/* Navigation - Glassmorphism */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    transition: var(--transition);
}

nav.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a i {
    font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

a:hover {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--primary);
}

.light-icon {
    display: none;
}

[data-theme="dark"] .light-icon {
    display: block;
}

[data-theme="dark"] .dark-icon {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 10px 20px -5px rgba(0, 119, 194, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 119, 194, 0.5);
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    padding-bottom: 80px;
    background: radial-gradient(circle at 90% 10%, hsla(var(--primary-h), 100%, 50%, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, hsla(var(--primary-h), 100%, 50%, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

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

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Portfolio Items */
.portfolio-item {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.portfolio-app-banner {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.portfolio-app-icon-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.team-img-wrapper {
    height: 240px;
    /* Adjusted for circular layout */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

.team-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    /* Perfect circle */
    transition: var(--transition);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card:hover .team-img {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 128, 255, 0.2);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.team-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary);
    color: white;
}

/* Official Social Brand Colors on Hover */
.team-social a[aria-label="LinkedIn"]:hover,
.social-links a[aria-label="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.team-social a[aria-label="GitHub"]:hover,
.social-links a[aria-label="GitHub"]:hover {
    background: #333;
    border-color: #333;
    color: white;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .footer-logo-img,
[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
}



.footer-logo p {
    color: var(--text-muted);
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-links a[aria-label="Instagram"]:hover {
    background: #e4405f;
    border-color: #e4405f;
}

.social-links a[aria-label="WhatsApp"]:hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Grids */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        min-height: auto !important;
        padding: 100px 0 80px !important;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem !important;
    }

    /* Fix flex items that should stack on mobile */
    .flex-mobile-stack {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Team Grid Tweak */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    /* Footer mobile centering */
    .footer-logo {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-links ul {
        justify-items: center;
    }
    .footer-social {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
    .footer-legal-links {
        align-items: center;
    }
    .footer-cta {
        align-items: center;
    }
    .footer-trust-list li {
        justify-content: center;
    }
    .footer-contact-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 30px 0;
    }
}

/* Hero Trust Counter Component */
.hero-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 4rem;
    padding: 1.5rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hero-stats:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Responsive adjustments for Trust Counter */
@media (max-width: 768px) {
    .hero-stats {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }

    .stat-item {
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Custom Booking/Contact Form Styling */
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-group label .optional {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 194, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.02);
}

.form-group .error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.form-group.error .error-msg {
    display: block;
}

.success-message {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    margin-top: 1.5rem;
    font-weight: 600;
}

.success-message.active {
    display: flex;
}

/* Breadcrumb Styling */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.breadcrumb-trail a {
    color: var(--text-muted);
}

.breadcrumb-trail a:hover {
    color: var(--primary);
}

.breadcrumb-trail .separator {
    font-size: 0.75rem;
    color: var(--border);
}

.breadcrumb-trail .current {
    color: var(--primary);
}

/* Tech Stack Logo Bar Styles */
.tech-bar {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.tech-bar-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tech-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.6;
    transition: var(--transition);
}

.tech-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 2rem;
}

.tech-item .badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    background: var(--border);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 800;
}

@media (max-width: 768px) {
    .tech-strip {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tech-item {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
}

/* Team Page Skill Tags Styles */
.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.skill-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-main);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.team-card:hover .skill-tag {
    border-color: var(--primary);
    color: var(--primary);
}

/* Why Work With Us Section Styles */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-icon {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}



/* WhatsApp Brand Button Styles consolidated at the end of file */

/* Contact Link Styles */
.contact-link {
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
    transition: var(--transition);
}

.contact-link:hover {
    text-decoration: underline;
}

/* Sub-page Hero modifier to override 100vh height */
.hero.hero-sub {
    min-height: auto;
    height: auto;
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 5rem;
}

/* Accessibility — Task 1: Focus Ring Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 3px !important;
}

/* Ensure focus outline respects rounded boundaries */
.btn:focus-visible,
.theme-toggle:focus-visible,
.team-social a:focus-visible,
.social-links a:focus-visible {
    border-radius: 50px !important;
}

.theme-toggle:focus-visible {
    border-radius: 50% !important;
}

/* Ensure dark mode toggle focus ring is not clipped by navbar bounds */
.theme-toggle-wrapper {
    overflow: visible !important;
}

/* Accessibility — Task 2: Skip to Content Link Styles */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 10001;
    /* Layer over navbar and mobile toggles */
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease-in-out;
}

.skip-link:focus-visible {
    top: 0;
    outline: 2px solid #ffffff !important;
    outline-offset: -4px !important;
}

/* Accessibility — Task 5: Mobile Touch Target Adjustments */
@media (max-width: 768px) {

    /* Expand theme toggle touch target */
    .theme-toggle {
        position: relative;
    }

    .theme-toggle::after {
        content: '';
        position: absolute;
        top: -2px;
        bottom: -2px;
        left: -2px;
        right: -2px;
        border-radius: 50%;
        pointer-events: auto;
        /* Force tap capture in mobile browsers */
    }

    /* Expand footer social links touch target */
    .social-links a {
        position: relative;
    }

    .social-links a::after {
        content: '';
        position: absolute;
        top: -2px;
        bottom: -2px;
        left: -2px;
        right: -2px;
        border-radius: 50%;
        pointer-events: auto;
        /* Force tap capture in mobile browsers */
    }
}

/* WhatsApp Float Wrapper */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: inline-flex;
    align-items: flex-end;
}

/* Fixed WhatsApp Float Button */
.whatsapp-float {
    position: relative;
    bottom: auto;
    right: auto;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: auto;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Close button */
.whatsapp-float-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    color: #333333;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.whatsapp-float-close:hover {
    background: #ff4444;
    color: #ffffff;
}

/* Hidden state */
.whatsapp-float-wrapper.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-float-wrapper {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Contact Page WhatsApp Button Icon Alignment */
.whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
}

.whatsapp-btn i {
    color: #25D366;
    font-size: 1.2rem;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}

/* Footer Quick Links — Two Column Layout */
.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links ul {
        grid-template-columns: 1fr;
    }
}

/* Footer Trust List — left column */
.footer-trust-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-trust-list li i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* Footer Legal Links — right column */
.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* Footer Mini CTA */
.footer-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-cta p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    width: fit-content;
}

.footer-contact-details a:hover {
    color: var(--primary);
}