/* ========================================
   Portfolio Pro — Maël Grosa
   Adaptive Light/Dark based on OS setting
   v2 — All audit fixes applied
   ======================================== */

/* --- Light Mode (Default) --- */
:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --text: #374151;
    --text-heading: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-bg: rgba(79, 70, 229, 0.06);
    --accent-shadow: rgba(79, 70, 229, 0.2);
    --green: #059669;
    --green-bg: rgba(5, 150, 105, 0.08);
    --featured-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(139, 92, 246, 0.04));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: 0.3s ease;
    --container: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* --- Dark Mode (Windows Dark Theme) --- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111114;
        --bg-alt: #1a1a1f;
        --bg-card: #1e1e23;
        --bg-card-hover: #25252b;
        --border: #2d2d35;
        --border-hover: #3d3d45;
        --text: #d1d5db;
        --text-heading: #f3f4f6;
        --text-muted: #9ca3af;
        --text-light: #6b7280;
        --accent: #818cf8;
        --accent-light: #a5b4fc;
        --accent-bg: rgba(129, 140, 248, 0.08);
        --accent-shadow: rgba(129, 140, 248, 0.2);
        --green: #34d399;
        --green-bg: rgba(52, 211, 153, 0.1);
        --featured-bg: linear-gradient(135deg, rgba(129, 140, 248, 0.06), rgba(167, 139, 250, 0.06));
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
        --nav-bg: rgba(17, 17, 20, 0.85);
    }
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--accent);
    color: white;
}

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

.container {
    max-width: var(--container);
    width: 90%;
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    transition: var(--transition);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-dot {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-heading);
    background: var(--accent-bg);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* --- Hero --- */
.hero {
    padding: 130px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 380px;
}

.hero-card {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    transition: transform 0.5s ease;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-1 {
    width: 320px;
    height: 210px;
    top: 0;
    right: 0;
    z-index: 2;
    transform: rotate(2deg);
}

.hero-card-2 {
    width: 300px;
    height: 200px;
    bottom: 20px;
    left: 0;
    z-index: 1;
    transform: rotate(-3deg);
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.03);
    z-index: 10;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
}

/* --- Trust Bar --- */
.trust {
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.trust-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
}

.trust-item strong {
    font-size: 0.85rem;
    color: var(--text-heading);
    display: block;
}

.trust-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- Section Styles --- */
section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--accent-bg);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

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

/* --- About --- */
.about {
    padding: 80px 0;
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content .section-tag {
    margin-bottom: 0.75rem;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-card {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
}

.value-card h4 {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Services --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 1rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.service-card.featured {
    background: var(--featured-bg);
    border-color: var(--accent);
}

.service-card.featured:hover {
    box-shadow: 0 10px 30px var(--accent-shadow);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

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

.service-features {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--green);
    font-size: 0.75rem;
}

/* --- Portfolio --- */
.portfolio {
    padding: 80px 0;
    background: var(--bg-alt);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.portfolio-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.04);
}

.portfolio-body {
    padding: 1.5rem;
}

.portfolio-type {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--accent-bg);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.portfolio-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.portfolio-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    gap: 0.6rem;
}

/* --- Testimonials --- */
.testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.testimonial-card>p {
    font-size: 0.92rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
}

.testimonial-author strong {
    color: var(--text-heading);
    font-size: 0.88rem;
    display: block;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* --- Process --- */
.process {
    padding: 80px 0;
    background: var(--bg-alt);
}

.process-steps {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 0;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    flex: 1;
    max-width: 260px;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.process-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-heading);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-shadow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: auto;
}

.form-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aside-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.aside-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.aside-card h4 {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.aside-card p,
.aside-card a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.aside-card a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* --- Floating CTA --- */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 6px 25px var(--accent-shadow);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s ease;
}

.floating-cta.show {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px var(--accent-shadow);
}

/* --- Toast --- */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xs);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Scroll Reveal --- */
.reveal-el {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-el.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
    transform: scale(1.05);
}

/* Manual dark mode override */
[data-theme="dark"] {
    --bg: #111114;
    --bg-alt: #1a1a1f;
    --bg-card: #1e1e23;
    --bg-card-hover: #25252b;
    --border: #2d2d35;
    --border-hover: #3d3d45;
    --text: #d1d5db;
    --text-heading: #f3f4f6;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --accent: #818cf8;
    --accent-light: #a5b4fc;
    --accent-bg: rgba(129, 140, 248, 0.08);
    --accent-shadow: rgba(129, 140, 248, 0.2);
    --green: #34d399;
    --green-bg: rgba(52, 211, 153, 0.1);
    --featured-bg: linear-gradient(135deg, rgba(129, 140, 248, 0.06), rgba(167, 139, 250, 0.06));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(17, 17, 20, 0.85);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --border: #e5e7eb;
    --border-hover: #d1d5db;
    --text: #374151;
    --text-heading: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-bg: rgba(79, 70, 229, 0.06);
    --accent-shadow: rgba(79, 70, 229, 0.2);
    --green: #059669;
    --green-bg: rgba(5, 150, 105, 0.08);
    --featured-bg: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(139, 92, 246, 0.04));
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

/* --- Animated Counter --- */
.stat strong {
    font-variant-numeric: tabular-nums;
}

/* --- Hero Parallax --- */
.hero-card-1 {
    animation: floatCard1 6s ease-in-out infinite;
}

.hero-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
}

@keyframes floatCard1 {

    0%,
    100% {
        transform: rotate(2deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-12px);
    }
}

@keyframes floatCard2 {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(-3deg) translateY(8px);
    }
}

.hero-card:hover {
    animation-play-state: paused;
}

/* --- Image Lazy Placeholder --- */
.portfolio-img img {
    background: var(--bg-alt);
}

.portfolio-img img[loading="lazy"] {
    transition: opacity 0.4s ease, transform 0.5s ease;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        transform: rotate(90deg);
        padding: 0.75rem 0;
        margin-top: 0;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .floating-cta span {
        display: none;
    }

    .floating-cta {
        padding: 0.85rem;
        border-radius: 50%;
    }
}

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

    .about-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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