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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #163A2B, #217346);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    position: relative;
    animation: loadingGlow 3s ease-in-out infinite alternate;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: spin 1.2s linear infinite;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top: 2px solid;
    border-radius: 50%;
    background: linear-gradient(135deg, #217346, #33A65C);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: spin 1.2s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    animation: loadingGlow 2s ease-in-out infinite alternate;
}

@keyframes loadingGlow {
    0% { 
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
        opacity: 0.9;
    }
    100% { 
        text-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(40, 48, 74, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(40, 48, 74, 0.4);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Color Variables — Excel-inspired palette */
:root {
    --primary-dark: #163A2B;
    --primary-green: #217346;
    --secondary-green: #33A65C;
    --bg-light-green: #F3F8F5;
    --bg-neutral: #F8FAF9;
    --text-dark: #17231D;
    --text-secondary: #59675F;
    --white: #FFFFFF;
    --border: #DCE6E0;
    --accent-subtle: #DFF2E6;
    /* Legacy aliases */
    --primary-navy: #163A2B;
    --primary-indigo: #17231D;
    --charcoal: #17231D;
    --accent-blue: #217346;
    --background: #F3F8F5;
    --text-main: #17231D;
    --text-muted: #59675F;
}

body {
    font-family: 'Inter', 'Manrope', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-neutral);
    position: relative;
}

/* Dotted grid overlay for subtle finance-style texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle, #d3dae6 1px, transparent 1.5px),
                      radial-gradient(circle, #d3dae6 1px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
}

/* Ensure main content is above the pattern */
body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    margin: 0;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(40, 48, 74, 0.04);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Profile Section in Navbar */
.profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: 2rem;
}

.profile-info {
    text-align: right;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
    display: block;
    line-height: 1.2;
}

.profile-photo-container {
    display: flex;
    align-items: center;
}

.profile-photo-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(40, 48, 74, 0.15);
    transition: all 0.3s ease;
}

.profile-photo-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 48, 74, 0.25);
}

/* Digital Ali ID Card */
.digital-id-card {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(40, 48, 74, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.digital-id-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.digital-id-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.digital-id-card::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.id-card-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.id-photo {
    flex-shrink: 0;
}

.id-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-navy);
    box-shadow: 0 4px 12px rgba(40, 48, 74, 0.15);
}

.id-info {
    flex: 1;
}

.id-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.id-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-indigo);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.id-bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.id-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.id-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.id-btn-primary {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
}

.id-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 48, 74, 0.3);
}

.id-btn-secondary {
    background: var(--background);
    color: var(--primary-navy);
    border: 1px solid var(--border);
}

.id-btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-1px);
}

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

.fun-fact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.fun-fact i {
    color: var(--primary-indigo);
    font-size: 0.9rem;
}

#fun-fact-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.qr-code {
    width: 32px;
    height: 32px;
    background: var(--background);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-code:hover {
    background: var(--primary-navy);
    color: var(--white);
}

.qr-code i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.qr-code:hover i {
    color: var(--white);
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-indigo));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Chat with Ali Navigation Link */
.chat-nav-link {
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(40, 48, 74, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.chat-nav-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -8px;
    right: -8px;
    bottom: -2px;
    background: linear-gradient(135deg, #2563eb, #a855f7, #ec4899);
    border-radius: 20px;
    opacity: 0.15;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.chat-nav-link:hover::before {
    opacity: 0.25;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(40, 48, 74, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(40, 48, 74, 0.5);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bar {
    width: 22px;
    height: 2.5px;
    background: #333;
    margin: 2.5px 0;
    transition: 0.3s ease;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 4rem;
        min-height: calc(100vh - 4rem);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

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

@keyframes internaiBounce {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3), 0 2px 10px rgba(168, 85, 247, 0.2);
    }
    50% { 
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4), 0 4px 15px rgba(168, 85, 247, 0.3);
    }
}



.btn {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 0.95rem;
    }
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 48, 74, 0.12);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

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

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.8s ease-out forwards, float 6s ease-in-out infinite 0.8s;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation: cardAppear 0.8s ease-out 0.1s forwards, float 6s ease-in-out infinite 0.9s;
}

.floating-card:nth-child(2) {
    top: 0;
    right: 0;
    animation: cardAppear 0.8s ease-out 0.2s forwards, float 6s ease-in-out infinite 1s;
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 0;
    animation: cardAppear 0.8s ease-out 0.3s forwards, float 6s ease-in-out infinite 1.1s;
}

.floating-card:nth-child(4) {
    bottom: 0;
    right: 0;
    animation: cardAppear 0.8s ease-out 0.4s forwards, float 6s ease-in-out infinite 1.2s;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.floating-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.floating-card p {
    font-size: 0.9rem;
    color: #64748b;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-navy);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--background);
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight i {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-top: 0.25rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.highlight h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.highlight p {
    color: #64748b;
    line-height: 1.6;
}

.about-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* Experience Section - Multi-row Horizontal Timeline */
.experience {
    padding: 5rem 0;
    background: var(--background);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Timeline connection lines */
.timeline-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-navy) 10%, 
        var(--primary-navy) 90%, 
        transparent 100%);
    z-index: 1;
    opacity: 0.3;
}

.timeline-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(40, 48, 74, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-card:nth-child(1) { animation-delay: 0.1s; }
.timeline-card:nth-child(2) { animation-delay: 0.2s; }
.timeline-card:nth-child(3) { animation-delay: 0.3s; }
.timeline-card:nth-child(4) { animation-delay: 0.4s; }
.timeline-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--primary-indigo));
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(40, 48, 74, 0.12);
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 2px 8px rgba(40, 48, 74, 0.15);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-meta::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    background: var(--primary-indigo);
    border-radius: 50%;
    margin: 0.5rem 0.25rem 0 0;
}

.achievements {
    list-style: none;
    margin-bottom: 1.5rem;
}

.achievements li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-indigo);
    font-weight: bold;
}

.key-lesson {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--primary-indigo);
    font-style: italic;
    line-height: 1.5;
}

/* Responsive Design */
@media (min-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .timeline-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-grid::before {
        display: none;
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    .card-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .card-header {
        padding-right: 2.5rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .job-meta {
        font-size: 0.8rem;
    }
    
    .achievements li {
        font-size: 0.9rem;
    }
    
    .key-lesson {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .timeline-card {
        padding: 1.25rem;
    }
    
    .card-header {
        padding-right: 2rem;
    }
    
    .job-title {
        font-size: 1rem;
    }
    
    .achievements li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background: var(--background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 1400px;
    }
}

.skill-category {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-navy);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--primary-navy);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    background: var(--white);
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}

.contact-item i {
    color: var(--primary-navy);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-navy);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
}

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

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bfc8d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Chat with Ali Section - Modern Chat Interface */
.chat-with-ali {
    padding: 5rem 0 4rem 0;
    background: var(--background);
}

.chat-interface {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(40, 48, 74, 0.08);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.chat-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    z-index: 1;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
}

.ai-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chat-title h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.chat-title p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Chat Messages */
.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(40, 48, 74, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 48, 74, 0.3);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: messageSlideIn 0.3s ease-out;
}

.message:last-child {
    margin-bottom: 0;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
}

.user-message .message-avatar {
    background: var(--accent-blue);
    color: var(--white);
}

.message-content {
    flex: 1;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(40, 48, 74, 0.06);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.2s ease;
}

.message-content:hover {
    box-shadow: 0 4px 12px rgba(40, 48, 74, 0.1);
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 400;
}

.ai-message .message-content {
    background: var(--primary-navy);
    border-left: 4px solid var(--primary-indigo);
    color: var(--white);
}

.ai-message .message-content p {
    color: var(--white) !important;
}

.user-message .message-content {
    background: var(--white);
    color: var(--text-main);
    border-left: 4px solid var(--accent-blue);
}

.user-message .message-content p {
    color: var(--text-main) !important;
}

/* Chat Input */
.chat-input-container {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.chat-input-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 3px rgba(40, 48, 74, 0.1);
}

.chat-input-wrapper:focus-within::before {
    opacity: 1;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 120px;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-button {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 48, 74, 0.2);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing indicator for AI responses */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(40, 48, 74, 0.06);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-indigo);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.send-button i {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-interface {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .chat-header {
        padding: 1.25rem 1.5rem;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .chat-title h3 {
        font-size: 1.2rem;
    }
    
    .chat-title p {
        font-size: 0.85rem;
    }
    
    .chat-messages {
        padding: 1.25rem 1.5rem;
        max-height: 350px;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .message-content {
        padding: 0.875rem 1rem;
    }
    
    .chat-input-container {
        padding: 1.25rem 1.5rem;
    }
    
    .chat-input {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .chat-interface {
        margin: 0 0.5rem;
    }
    
    .chat-header {
        padding: 1rem 1.25rem;
    }
    
    .chat-messages {
        padding: 1rem 1.25rem;
        max-height: 300px;
    }
    
    .chat-input-container {
        padding: 1rem 1.25rem;
    }
    
    .message {
        gap: 0.75rem;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        display: none;
    }
    
    .digital-id-card {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 320px;
        margin: 0;
        z-index: 10000;
    }
    
    .digital-id-card.show {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .digital-id-card::before {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transform: translateY(-20px);
        opacity: 0;
    }

    .nav-menu.active {
        left: 0;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu .nav-item {
        padding: 10px 0;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 0.8rem 2rem;
        display: block;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: -0.01em;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .floating-card h3 {
        font-size: 1rem;
    }

    .floating-card p {
        font-size: 0.8rem;
    }

    /* Hide floating elements on mobile */
    .referral-widget-btn {
        display: none;
    }

    /* Hide InternAI badge under hero text on mobile */
    .hero-internai-badge {
        display: none;
    }

    .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }

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

    .experience-card {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .card-meta {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Specific mobile breakpoints */
@media (max-width: 414px) {
    .hero-title {
        font-size: 1.9rem;
        letter-spacing: -0.03em;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 0.6rem;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        animation: none;
    }

    .hero-visual {
        height: auto;
    }
    
    /* Improve chat section on mobile */
    .chat-interface {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
    
    .chat-header {
        padding: 0.8rem;
    }
    
    .ai-avatar {
        width: 35px;
        height: 35px;
    }
    
    .chat-title h3 {
        font-size: 1.1rem;
    }
    
    .chat-title p {
        font-size: 0.85rem;
    }
    
    .chat-messages {
        max-height: 300px;
        padding: 0.5rem;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .message-content {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-input-container {
        padding: 0.8rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.95);
        margin: 0 0.5rem;
    }
    
    .chat-input {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .send-button {
        padding: 10px;
        font-size: 0.9rem;
        min-width: 80px;
        margin-right: 12px;
        border-radius: 8px;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .experience-card {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .experience-card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .skill-category {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .skill-category.animate {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Testimonials Section */
.testimonials {
    padding: 4rem 0 3rem 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(40,48,74,0.08);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    border: 1.5px solid var(--border);
    min-height: 200px;
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}

.testimonial-name {
    font-size: 1.08rem;
    color: var(--primary-navy);
}

.testimonial-title {
    font-size: 0.98rem;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonial-text {
    font-size: 1.08rem;
    color: var(--primary-indigo);
    font-style: italic;
    line-height: 1.6;
    margin-top: 0.5rem;
    text-align: center;
}

/* Remove logo/icon rules */
.testimonial-logo, .testimonial-icon {
    display: none !important;
}

@media (max-width: 600px) {
    .testimonials {
        padding: 2rem 0 1.5rem 0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .testimonial-card {
        padding: 1.25rem 0.75rem 1rem 0.75rem;
    }
} 


.referral-widget-btn:hover, .referral-widget-btn:focus {
    background: linear-gradient(135deg, #1d4ed8, #23272f);
    box-shadow: 0 8px 24px rgba(40,48,74,0.22);
    transform: translateY(-2px) scale(1.07);
}
@media (max-width: 600px) {
    .referral-widget-btn {
        bottom: 14px;
        right: 14px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}
.referral-widget-btn i {
    font-size: inherit;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

/* Referral Tooltip */
.referral-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(30, 34, 51, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
    animation: referralTooltipPulse 4s ease-in-out infinite;
    z-index: 1001;
}

.referral-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: rgba(30, 34, 51, 0.95);
}

.referral-widget-btn:hover .referral-tooltip,
.referral-widget-btn:focus .referral-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes referralTooltipPulse {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
}

.referral-modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(30,34,51,0.18);
    align-items: flex-end;
    justify-content: flex-end;
    transition: background 0.2s;
}
.referral-modal.open {
    display: flex;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.referral-modal-content {
    background: var(--white);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 8px 32px rgba(40,48,74,0.16);
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    width: 100%;
    max-width: 410px;
    margin: 0 2.2rem 2.2rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: slideUp 0.25s cubic-bezier(.4,2,.6,1);
}
@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.referral-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-navy);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.referral-modal-close:hover {
    opacity: 1;
}

.referral-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

#referral-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
#referral-form label {
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
#referral-form input[type="text"] {
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: #f7f8fa;
    color: var(--primary-navy);
    margin-top: 0.1rem;
    transition: border 0.2s;
}
#referral-form input[type="text"]:focus {
    border: 1.5px solid var(--accent-blue);
    outline: none;
}
.referral-tone-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.2rem;
    font-size: 1rem;
}
.referral-tone-group label {
    font-weight: 400;
    color: var(--primary-navy);
    margin-bottom: 0;
    gap: 0.2rem;
}

.referral-result {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.referral-result-label {
    font-size: 1rem;
    color: var(--primary-navy);
    font-weight: 600;
}
.referral-result-text {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: #f7f8fa;
    color: var(--primary-navy);
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
    resize: none;
}
.referral-copy-btn {
    width: 100%;
    font-size: 1rem;
}

.referral-example {
    margin-top: 1.2rem;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font-size: 0.98rem;
    color: var(--text-muted);
}
.referral-example-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.2rem;
}
.referral-example-box {
    font-style: italic;
    color: var(--primary-indigo);
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .referral-widget-btn {
        bottom: 1.1rem;
        right: 1.1rem;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .referral-tooltip {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .referral-widget-btn::before {
        right: auto;
        left: 0;
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .referral-widget-btn::after {
        right: auto;
        left: 20px;
    }
    
    .referral-modal-content {
        max-width: 98vw;
        margin: 0 0.5rem 0.5rem 0;
        padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    }
} 

/* Experience Grid Polishing */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.experience-card {
    min-height: 370px;
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-meta {
    margin-bottom: 1.1rem;
}
.meta-line {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Company and testimonial logo polish */
.company-logo, .testimonial-logo {
    display: block;
    max-width: 80px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(40,48,74,0.06);
    flex-shrink: 0;
    margin-right: 1rem;
    margin-left: 0;
}
.card-header, .testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 48px;
}
.testimonial-icon {
    color: var(--primary-indigo);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-logo {
    max-width: 80px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(40,48,74,0.06);
    flex-shrink: 0;
    margin-right: 0.7rem;
    margin-left: 0;
    display: flex;
    align-items: center;
}
.experience-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    align-items: stretch;
    justify-items: center;
    margin-top: 2.5rem;
}
.experience-card, .testimonial-card {
    min-height: 370px;
    width: 100%;
    max-width: 410px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .experience-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .experience-card, .testimonial-card {
        max-width: 98vw;
    }
}

/* Enhanced background: add subtle diagonal lines overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.10;
    background-image: repeating-linear-gradient(135deg, #e3e7ef 0 2px, transparent 2px 32px);
} 

/* Career Pathway Section */
.career-pathway {
    padding: 5rem 0;
    background: var(--background);
    position: relative;
}

/* Removed vertical gradient path to fix visual glitch */

/* Timeline Path */
.pathway-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Removed main timeline line to fix visual glitch */

.pathway-card {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.8s ease forwards;
}

.pathway-card:nth-child(1) { animation-delay: 0.1s; }
.pathway-card:nth-child(2) { animation-delay: 0.2s; }
.pathway-card:nth-child(3) { animation-delay: 0.3s; }
.pathway-card:nth-child(4) { animation-delay: 0.4s; }
.pathway-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed date labels and impact banners for cleaner design */

/* Card Content with Gradient Accents */
.card-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 8px 32px rgba(40, 48, 74, 0.08);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Gradient accent edges based on progression */
.pathway-card:nth-child(1) .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.pathway-card:nth-child(2) .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.pathway-card:nth-child(3) .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.pathway-card:nth-child(4) .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.pathway-card:nth-child(5) .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--primary-indigo));
}

.card-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(40, 48, 74, 0.12);
}

/* Job Header - Updated Layout */
.job-header {
    margin-bottom: 0.5rem;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0;
    line-height: 1.3;
}

.company-name {
    font-size: 1rem;
    color: var(--primary-indigo);
    font-weight: 500;
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Achievements */
.achievements {
    list-style: none;
    margin-bottom: 1.5rem;
}

.achievements li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-indigo);
    font-weight: bold;
}

.key-lesson {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--primary-indigo);
    font-style: italic;
    line-height: 1.5;
}

/* InternAI Section */
.internai-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.internai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Particle Background */
.internai-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

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

.internai-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.internai-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.internai-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.internai-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: pulse 2s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.internai-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
}

.internai-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
    }
}

.badge-text {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.internai-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.internai-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.internai-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.internai-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.internai-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.internai-feature i {
    font-size: 1.2rem;
    color: #fbbf24;
}

.internai-feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Feature Tooltip */
.internai-feature {
    position: relative;
}

.feature-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    pointer-events: none;
}

.feature-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.feature-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.internai-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.internai-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--white);
    text-decoration: none;
    animation: buttonBounce 0.6s ease;
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(-2px) scale(1.02);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Responsive Design for InternAI */
@media (max-width: 768px) {
    .internai-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .internai-title {
        font-size: 1.8rem;
    }
    
    .internai-description {
        font-size: 1.1rem;
    }
    
    .internai-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .internai-feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .internai-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .internai-badge {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .internai-card {
        padding: 1.5rem;
    }
    
    .internai-title {
        font-size: 1.5rem;
    }
    
    .internai-description {
        font-size: 1rem;
    }
    
    .internai-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* AI Assistant Section */
.ai-assistant {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecf3 100%);
}

.ai-assistant-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.ai-preview-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(40, 48, 74, 0.1);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.ai-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(40, 48, 74, 0.15);
}

.ai-preview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.ai-preview-header i {
    color: var(--primary-indigo);
    font-size: 1.5rem;
}

.ai-preview-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ai-preview-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.launch-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.launch-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 48, 74, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .pathway-timeline::before {
        display: none;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .pathway-card {
        margin-bottom: 2rem;
    }
    
    .card-content {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    

    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .company-name {
        font-size: 0.95rem;
    }
    
    .job-meta {
        font-size: 0.8rem;
    }
    
    .achievements li {
        font-size: 0.9rem;
    }
    
    .key-lesson {
        font-size: 0.8rem;
    }
    
    .ai-preview-card {
        padding: 2rem 1.5rem;
    }
    
    .ai-preview-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1.25rem 0.75rem 0.75rem 0.75rem;
    }
    

    
    .job-title {
        font-size: 1rem;
    }
    
    .achievements li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }
    
    .ai-preview-card {
        padding: 1.5rem 1rem;
    }
    
    .ai-preview-header {
        font-size: 1.1rem;
    }
    
    .ai-preview-text {
        font-size: 1rem;
    }
} 

/* Centered Chat Page Layout */
.chat-centered-body {
    min-height: 100vh;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.chat-main-centered {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.chat-box-outer {
    width: 100%;
    max-width: 540px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-box {
    width: 100%;
    background: #f9f9f9;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(40, 48, 74, 0.10);
    border: 1.5px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 0 0 1.5rem 0;
    min-height: 600px;
    max-height: 90vh;
    overflow: hidden;
}

.chat-box-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
}

.chat-box-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.chat-box-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.chat-box-top-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem 1rem 2rem;
}

.quick-starters-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0;
}

.quick-starters-label {
    font-weight: 600;
    color: var(--primary-navy);
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.quick-starter-btn {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.quick-starter-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

.tone-toggle-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tone-toggle-label {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
    margin-right: 0.5rem;
}
.tone-btn {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-size: 0.92rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tone-btn.active {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}
.tone-btn:hover:not(.active) {
    background: var(--border);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: transparent;
}

.message {
    display: flex;
    gap: 1rem;
    animation: messageSlideIn 0.3s ease;
}
.message:last-child { margin-bottom: 0; }
@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: 1px solid var(--border);
}
.ali-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.user-message .message-avatar {
    background: var(--primary-navy);
    color: var(--white);
}
.message-content {
    flex: 1;
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    max-width: 80%;
}
.message-content:hover {
    box-shadow: 0 2px 8px rgba(40, 48, 74, 0.1);
}
.message-content p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-main);
}
.ai-message .message-content {
    background: var(--white);
    border-left: 4px solid var(--primary-indigo);
    color: var(--text-main);
}
.user-message .message-content {
    background: var(--white);
    margin-left: auto;
}
.user-message .message-content p {
    color: var(--text-main);
}

.chat-input-container {
    padding: 1rem 2rem 0.5rem 2rem;
    background: transparent;
    border-radius: 0 0 16px 16px;
}
.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.chat-input-wrapper:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.chat-input-wrapper:focus-within::before {
    opacity: 1;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 120px;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-button {
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.send-button:hover {
    background: var(--primary-indigo);
    transform: scale(1.05);
}
.send-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.chat-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.2rem;
    padding: 0 2rem;
}
.chat-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.resume-btn {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: var(--white);
    border-color: var(--primary-navy);
}
.resume-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: underline;
}
.contact-btn {
    background: var(--background);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}
.contact-btn:hover {
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 700px) {
    .chat-box-outer {
        max-width: 100vw;
        padding: 0 0.5rem;
    }
    .chat-box {
        min-height: 400px;
        padding: 0 0 1rem 0;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .chat-box-header, .chat-box-top-controls, .chat-messages, .chat-input-container, .chat-action-buttons {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .chat-box-header {
        padding-top: 1.2rem;
        padding-bottom: 0.7rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .chat-messages {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .chat-input-container {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 1rem;
    }
    .send-button {
        margin-right: 12px;
        padding: 10px;
        border-radius: 8px;
        min-width: 80px;
    }
}
@media (max-width: 480px) {
    .chat-box-header, .chat-box-top-controls, .chat-messages, .chat-input-container, .chat-action-buttons {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .chat-box-header {
        padding-top: 0.7rem;
        padding-bottom: 0.5rem;
    }
    .chat-box-title {
        font-size: 1.3rem;
    }
    .chat-box {
        min-height: 300px;
    }
    .chat-action-btn {
        font-size: 0.92rem;
        padding: 0.5rem 1rem;
    }
    .quick-starter-btn, .tone-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }
} 

.ali-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Chat Expansion Modal */
.chat-box-outer.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    background: rgba(30,34,51,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.chat-box.expanded {
    width: 100vw;
    max-width: 700px;
    height: 90vh;
    min-height: 400px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(40,48,74,0.18);
    background: var(--white);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

/* Close button for expanded modal */
.chat-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-navy);
    cursor: pointer;
    opacity: 0.7;
    z-index: 10;
    transition: opacity 0.2s;
}
.chat-close-btn:hover {
    opacity: 1;
}

/* Message Bubbles */
.ai-message .message-content {
    background: #1f2937;
    color: #fff;
    border-left: 4px solid var(--primary-indigo);
}
.ai-message .message-content p {
    color: #fff !important;
}
.user-message .message-content {
    background: #f5f5f5;
    color: #1a1a1a;
    border-left: 4px solid var(--accent-blue);
}
.user-message .message-content p {
    color: #1a1a1a !important;
}

/* Sticky Send Button */
.chat-input-container {
    position: sticky;
    bottom: 0;
    background: var(--white);
    z-index: 5;
    padding-bottom: 1.2rem;
}

.send-button {
    min-width: 120px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-indigo));
    color: #fff;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.send-button:hover::after {
    content: 'Send your question to Ali';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #23272f;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 1;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(40,48,74,0.18);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .chat-box.expanded {
        max-width: 98vw;
        height: 98vh;
    }
}
@media (max-width: 600px) {
    .chat-box.expanded {
        max-width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .chat-close-btn {
        top: 0.7rem;
        right: 0.7rem;
        font-size: 1.5rem;
    }
}

/* Full-page immersive chat background */
.chat-fullpage-bg {
    min-height: 100vh;
    min-width: 100vw;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Manrope', sans-serif;
    font-weight: 500;
    overflow: hidden;
}

.chat-fullpage-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.chat-fullpage-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat-fullpage-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    margin: 2rem auto 0 auto;
    min-height: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    background: none;
    z-index: 1;
}

@media (max-width: 600px) {
  .chat-fullpage-container {
    padding: 1.5rem 1rem 1rem 1rem;
    min-height: 85vh;
    height: 85vh;
    max-width: 98vw;
    margin: 1rem auto 0 auto;
  }
  .chat-title-main {
    font-size: 1.4rem;
  }
  .chat-header-avatar .ali-avatar {
    width: 40px;
    height: 40px;
  }
  .chat-back-button {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .chat-bottom-actions {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.2rem;
  }
  .chat-action-card {
    max-width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
      .chat-input-row {
        max-width: 98vw;
        padding: 0.2rem;
    }
  .chat-messages {
    max-height: calc(85vh - 220px);
    min-height: 200px;
  }
  .back-button-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}

.chat-fullpage-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    width: 100%;
    position: relative;
}

.chat-back-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    font-size: 1.1rem;
}

.chat-back-button:hover {
    background: linear-gradient(135deg, #a855f7, #2563eb);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.chat-header-avatar .ali-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(37, 99, 235, 0.2);
    background: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.chat-title-main {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.5px;
}

.chat-title-desc {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.chat-messages {
    flex: 1 1 auto;
    width: 100%;
    overflow-y: auto;
    padding: 0 0.2rem 1.2rem 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    scroll-behavior: smooth;
    max-height: calc(80vh - 200px);
    min-height: 300px;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    animation: chatMessageIn 0.45s cubic-bezier(.4,2,.6,1);
    transition: background 0.3s, box-shadow 0.3s;
}
@keyframes chatMessageIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-message .message-avatar {
    margin-bottom: 0.2rem;
}

.ai-message .message-content {
    background: linear-gradient(135deg, #2563eb, #a855f7);
    color: #fff;
    border-radius: 18px 18px 18px 6px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    max-width: 80%;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    word-break: break-word;
    margin-left: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}
.ai-message .message-content p {
    color: #fff !important;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.ai-message .message-avatar img.ali-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.user-message {
    flex-direction: row-reverse;
}
.user-message .message-content {
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 18px 18px 6px 18px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    max-width: 80%;
    box-shadow: 0 2px 12px rgba(40,48,74,0.06);
    border: 2px solid transparent;
    background: linear-gradient(#f0f0f0, #f0f0f0) padding-box,
                linear-gradient(135deg, #2563eb, #a855f7, #ec4899) border-box;
    word-break: break-word;
    margin-right: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.3s, color 0.3s;
}
.user-message .message-content p {
    color: #1a1a1a !important;
    margin: 0;
}
.user-message .message-avatar {
    margin-bottom: 0.2rem;
}

/* Chat input fixed at bottom */
.chat-input-form {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
    z-index: 200;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}
.chat-input-row {
    width: 100%;
    max-width: 700px;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}
.chat-input {
    flex: 1 1 auto;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.8rem;
    font-size: 1rem;
    background: transparent;
    color: #1f2937;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 50px;
}
.chat-input:focus {
    background: rgba(255, 255, 255, 0.1);
}


.send-button {
    min-width: 120px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #a855f7);
    color: #fff;
    border-radius: 50px;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    height: 50px;
    white-space: nowrap;
}
.send-button:hover {
    background: linear-gradient(135deg, #a855f7, #2563eb);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Bottom action cards */
.chat-bottom-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}
.chat-action-card {
    flex: 1 1 0;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1f2937;
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.chat-action-card:hover {
    background: rgba(255, 255, 255, 1);
    color: #2563eb;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

@media (max-width: 900px) {
    .chat-fullpage-container {
        max-width: 95vw;
        min-height: 90vh;
        height: 90vh;
        border-radius: 1.5rem;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        margin: 1.5rem auto 0 auto;
    }
    .chat-title-main {
        font-size: 1.6rem;
    }
    .chat-header-avatar .ali-avatar {
        width: 44px;
        height: 44px;
    }
    .chat-back-button {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .chat-bottom-actions {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .chat-action-card {
        font-size: 1rem;
        padding: 1rem 1.2rem;
        max-width: 200px;
    }
    .chat-input-row {
        max-width: 95vw;
        padding: 0.2rem;
    }
    .chat-messages {
        max-height: calc(90vh - 250px);
        min-height: 250px;
    }
}

.stat-tooltip-parent {
    position: relative;
    display: inline-block;
}
.stat-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    min-width: 240px;
    background: linear-gradient(135deg, #23272f 85%, #2563eb 100%);
    color: #fff;
    font-size: 1.04rem;
    font-weight: 500;
    padding: 1.1em 1.3em 1.1em 1.1em;
    border-radius: 16px;
    box-shadow: 0 10px 36px rgba(40,48,74,0.22), 0 2px 8px rgba(37,99,235,0.10);
    white-space: pre-line;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(.4,0,.2,1), transform 0.28s cubic-bezier(.4,0,.2,1);
    line-height: 1.6;
    border-left: 5px solid #2563eb;
    animation: none;
}
.stat-tooltip-parent:hover .stat-tooltip,
.stat-tooltip-parent:focus-within .stat-tooltip {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1.04);
    animation: statTooltipFadeSlide 0.45s cubic-bezier(.4,0,.2,1);
}
.stat-tooltip-parent .stat-number:focus + .stat-label + .stat-tooltip {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1.04);
    animation: statTooltipFadeSlide 0.45s cubic-bezier(.4,0,.2,1);
}
@keyframes statTooltipFadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px) scale(0.96);
    }
    60% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.04);
    }
}
@media (max-width: 600px) {
    .stat-tooltip {
        min-width: 160px;
        font-size: 0.97rem;
        padding: 0.8em 0.7em 0.8em 0.8em;
        border-radius: 12px;
    }
}

/* InternAI Beta Banner */
.internai-beta-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #2563eb, #a855f7, #ec4899);
    color: #fff;
    padding: 0.8rem 1.5rem 0.8rem 1.2rem;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    min-width: 350px;
    max-width: 90vw;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bannerSlideUp 0.8s cubic-bezier(0.68,-0.55,0.27,1.55) forwards, bannerGlow 3s ease-in-out infinite alternate, bannerPulse 4s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes bannerSlideUp {
    0% { transform: translateX(-50%) translateY(100px); opacity: 0; }
    80% { transform: translateX(-50%) translateY(-8px); opacity: 1; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes bannerGlow {
    0% { 
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25);
        border-color: rgba(255, 255, 255, 0.2);
    }
    100% { 
        box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

@keyframes bannerPulse {
    0%, 100% { 
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% { 
        transform: translateX(-50%) translateY(0) scale(1.02);
    }
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.banner-text {
    text-align: left;
    font-weight: 600;
}

.banner-learn-more {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.banner-learn-more:hover {
    opacity: 1;
    transform: translateX(3px);
    text-decoration: none;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.banner-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .internai-beta-banner {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem 0.7rem 1rem;
        gap: 0.8rem;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        max-width: 85vw;
        bottom: 12px;
        border-radius: 1rem;
    }
    .banner-content {
        gap: 0.15rem;
    }
    .banner-learn-more {
        font-size: 0.75rem;
    }
    .banner-close {
        font-size: 1rem;
        align-self: flex-end;
        margin-top: -0.4rem;
    }
}

@media (max-width: 480px) {
    .internai-beta-banner {
        bottom: 8px;
        padding: 0.6rem 1rem 0.6rem 0.8rem;
        font-size: 0.8rem;
        max-width: 80vw;
        border-radius: 0.8rem;
    }
    .banner-learn-more {
        font-size: 0.7rem;
    }
    .banner-close {
        font-size: 0.9rem;
    }
}

/* InternAI Card Shimmer Border */
.shimmer-border {
    position: relative;
    z-index: 2;
    overflow: visible;
}
.shimmer-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    padding: 0;
    background: linear-gradient(120deg, #fff 10%, #a5b4fc 40%, #6366f1 60%, #fff 90%);
    background-size: 200% 200%;
    filter: blur(2px) brightness(1.2);
    opacity: 0.7;
    z-index: -1;
    transition: opacity 0.3s;
    pointer-events: none;
    animation: shimmerGlow 2.5s linear infinite;
    opacity: 0;
}
.shimmer-border:hover::before {
    opacity: 1;
}
@keyframes shimmerGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* InternAI Sparkle Background */
.internai-sparkle-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.internai-sparkle-bg::before, .internai-sparkle-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #fffbe6 0%, #fbbf24 60%, transparent 100%);
    opacity: 0.7;
    animation: sparkleMove 12s linear infinite;
}
.internai-sparkle-bg::before {
    width: 10px; height: 10px; left: 12%; top: 18%; animation-delay: 0s;
}
.internai-sparkle-bg::after {
    width: 7px; height: 7px; left: 80%; top: 60%; animation-delay: 4s;
}
@keyframes sparkleMove {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* Extra sparkles */
.internai-sparkle-bg .sparkle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #a5b4fc 60%, transparent 100%);
    opacity: 0.5;
    animation: sparkleDrift 18s linear infinite;
}
.internai-sparkle-bg .sparkle1 { width: 6px; height: 6px; left: 30%; top: 80%; animation-delay: 2s; }
.internai-sparkle-bg .sparkle2 { width: 8px; height: 8px; left: 60%; top: 30%; animation-delay: 6s; }
.internai-sparkle-bg .sparkle3 { width: 5px; height: 5px; left: 75%; top: 10%; animation-delay: 10s; }
@keyframes sparkleDrift {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-40px) scale(1.3); opacity: 0.8; }
    100% { transform: translateY(0) scale(1); opacity: 0.5; }
}

/* InternAI Mascot */
.internai-mascot-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}
.internai-mascot {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e42 100%);
    box-shadow: 0 2px 12px rgba(251,191,36,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    animation: mascotFloat 3.5s ease-in-out infinite;
}
.internai-mascot img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}
@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.mascot-bubble {
    position: absolute;
    left: 110%;
    top: 10%;
    min-width: 120px;
    max-width: 180px;
    background: #fff;
    color: #23272f;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(40,48,74,0.10);
    opacity: 0.95;
    animation: bubbleAppear 1.2s cubic-bezier(0.68,-0.55,0.27,1.55);
    z-index: 4;
    pointer-events: none;
}
@keyframes bubbleAppear {
    0% { transform: scale(0.7) translateY(-10px); opacity: 0; }
    80% { transform: scale(1.05) translateY(2px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 0.95; }
}

/* InternAI Voice Button */
.internai-voice-btn {
    margin-left: 1rem;
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: background 0.2s, opacity 0.2s;
}
.voice-badge {
    font-size: 0.85em;
    color: #fbbf24;
    margin-left: 0.3em;
}

/* InternAI Waitlist Form */
.internai-waitlist-form {
    margin-top: 2rem;
    text-align: left;
}
.internai-waitlist-form label {
    font-weight: 600;
    color: #23272f;
    margin-bottom: 0.5rem;
    display: block;
}
.waitlist-fields {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.waitlist-fields input[type="email"],
.waitlist-fields input[type="text"] {
    flex: 1 1 180px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
}
.waitlist-fields input:focus {
    border: 1.5px solid #6366f1;
    outline: none;
}
.waitlist-fields button {
    flex: 0 0 auto;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #a5b4fc 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.waitlist-fields button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.waitlist-success {
    margin-top: 1rem;
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}
@media (max-width: 600px) {
    .waitlist-fields {
        flex-direction: column;
        gap: 0.5rem;
    }
    .internai-voice-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* --- Chat with Ali Card Enhancements --- */
.chat-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(40, 48, 74, 0.18), 0 1.5px 8px rgba(37,99,235,0.08);
  border: 4px solid;
  border-image: linear-gradient(135deg, #2563eb 10%, #a855f7 90%) 1;
  position: relative;
  overflow: hidden;
  animation: chatCardPopIn 1s cubic-bezier(0.23, 1, 0.32, 1);
  background-image: repeating-linear-gradient(135deg, #f7f8fa 0 2px, transparent 2px 32px);
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s;
}
.chat-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 64px rgba(40, 48, 74, 0.22), 0 2px 12px #a855f733;
  border-image: linear-gradient(135deg, #a855f7 10%, #2563eb 90%) 1;
}
@keyframes chatCardPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(40px); }
  80% { opacity: 1; transform: scale(1.04) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-card-content {
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.chat-card-icon {
  font-size: 3.5rem;
  color: #a855f7;
  margin-bottom: 1.2rem;
  animation: chatIconBounce 2.2s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
  filter: drop-shadow(0 2px 8px #a855f7aa);
  transition: color 0.3s;
}
.chat-card:hover .chat-card-icon {
  color: #2563eb;
  filter: drop-shadow(0 4px 16px #2563eb99);
}
@keyframes chatIconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px) scale(1.08); }
}
.chat-card-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.7rem;
  letter-spacing: -1px;
}
.chat-card-content p {
  font-size: 1.15rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.chat-launch-btn {
  font-size: 1.15rem;
  padding: 0.95rem 2.2rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb 0%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 18px #a855f766, 0 1px 4px #2563eb33;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  margin-top: 0.5rem;
}
.chat-launch-btn:hover, .chat-launch-btn:focus {
  background: linear-gradient(90deg, #a855f7 0%, #2563eb 100%);
  color: #fff;
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 32px #2563eb44, 0 2px 8px #a855f744;
}
@media (max-width: 600px) {
  .chat-card {
    max-width: 98vw;
    border-width: 2.5px;
    padding: 0.5rem;
  }
  .chat-card-content {
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
  }
  .chat-card-content h3 {
    font-size: 1.25rem;
  }
  .chat-card-icon {
    font-size: 2.2rem;
  }
  .chat-launch-btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
}



/* Hero InternAI Badge */
.hero-internai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #2563eb, #a855f7);
  color: white !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3), 0 2px 10px rgba(168, 85, 247, 0.2);
  animation: internaiBounce 3s ease-in-out infinite;
  margin: 1.5rem 0;
  flex-shrink: 0;
}

.hero-internai-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hero-internai-badge:hover::before {
  left: 100%;
}

.hero-internai-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4), 0 3px 8px rgba(168, 85, 247, 0.3);
}

.hero-internai-badge i {
  font-size: 0.9rem;
  animation: robotPulse 1.5s ease-in-out infinite;
}

/* InternAI Coming Soon Button */
.internai-coming-soon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563eb, #a855f7);
  color: white !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(168, 85, 247, 0.2);
  animation: internaiGlow 2s ease-in-out infinite alternate;
}

.internai-coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.internai-coming-soon:hover::before {
  left: 100%;
}

.internai-coming-soon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(168, 85, 247, 0.3);
}

.internai-coming-soon i {
  font-size: 1rem;
  animation: robotPulse 1.5s ease-in-out infinite;
}

@keyframes internaiGlow {
  0% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(168, 85, 247, 0.2);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 2px 12px rgba(168, 85, 247, 0.4);
  }
}

@keyframes robotPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}





/* --- InternAI Beta Modal Popup Styles --- */
.internai-modal {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  pointer-events: auto;
  animation: fadeInModalBg 0.4s cubic-bezier(0.23,1,0.32,1);
}
.internai-modal-overlay {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,34,51,0.32);
  backdrop-filter: blur(6px);
  z-index: 1;
  animation: fadeInModalBg 0.4s cubic-bezier(0.23,1,0.32,1);
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.internai-modal-content {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 12px 48px rgba(40,48,74,0.18), 0 2px 12px #2563eb22;
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: inherit;
  animation: modalPopIn 0.5s cubic-bezier(0.23,1,0.32,1);
}
@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.92) translateY(40px); }
  80% { opacity: 1; transform: scale(1.04) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.internai-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.internai-modal-close {
  margin-top: 0.5rem;
  padding: 0.85em 2.2em;
  border-radius: 12px;
  background: linear-gradient(90deg, #2563eb 0%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 2px 8px #a855f733, 0 1px 4px #2563eb22;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.internai-modal-close:hover, .internai-modal-close:focus {
  background: linear-gradient(90deg, #a855f7 0%, #2563eb 100%);
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 6px 24px #2563eb33, 0 2px 8px #a855f744;
}
@media (max-width: 600px) {
  .internai-modal-content {
    width: 98vw;
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .internai-modal-title {
    font-size: 1.05rem;
  }
  .internai-modal-close {
    font-size: 1rem;
    padding: 0.7em 1.2em;
  }
}

/* --- Enhanced Mobile Responsiveness --- */
@media (max-width: 900px) {
  .navbar {
    padding: 0.7rem 0;
  }
  .nav-container {
    padding: 0 8px;
  }
  .nav-menu {
    gap: 1.1rem;
  }
}
@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 2000;
    height: 56px;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(40,48,74,0.06);
    display: flex;
    align-items: center;
    padding: 0;
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    width: 100%;
    padding: 0;
  }
  .site-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #23272f;
    margin-left: 1rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }
  .hamburger {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: static;
  }
  .hero, .about, .skills, .career-pathway, .testimonials, .contact, .footer {
    padding-top: 56px !important;
  }
  .hero-title {
    margin-top: 0 !important;
  }
  .hero-subtitle {
    margin-bottom: 0.5rem !important;
  }
  .hero-description {
    margin-bottom: 0.7rem !important;
  }
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    margin-bottom: 0.7rem !important;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.6rem 0.2rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    margin: 0;
    transition: none !important;
    pointer-events: none !important;
  }
  .stat-tooltip-parent,
  .stat,
  .stat:hover,
  .stat-tooltip-parent:hover,
  .stat-tooltip {
    pointer-events: none !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
  }
  .stat-number {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: #23272f;
  }
  .stat-label {
    font-size: 0.8rem !important;
    color: #64748b;
    font-weight: 500;
  }
  .hero-buttons {
    gap: 0.4rem !important;
    margin-bottom: 0.4rem !important;
  }
  .section-title {
    margin-bottom: 1.1rem !important;
  }
  .container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  .about, .skills, .career-pathway, .testimonials, .contact, .footer {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0.3rem 0;
  }
  .nav-menu {
    gap: 0.2rem;
    font-size: 0.98rem;
  }
  .nav-link {
    font-size: 0.98rem;
    padding: 0.6em 0.1em;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: unset;
    padding-top: 50px;
    padding-bottom: 1rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.8rem;
  }
  .hero-content {
    text-align: center;
    padding: 0.3rem 0;
  }
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  .hero-stats {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
  .hero-internai-badge {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem;
    margin: 0.8rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .hero-visual {
    height: auto;
    min-height: 160px;
    margin-top: 1rem;
  }
  .floating-card {
    position: relative;
    margin-bottom: 0.7rem;
    animation: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 1rem;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .hero-stats {
    gap: 0.5rem;
  }
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .hero-visual {
    min-height: 100px;
  }
  .floating-card {
    padding: 0.7rem;
    font-size: 0.93rem;
  }
  .nav-menu {
    font-size: 0.85rem;
    padding: 0.8rem 0;
  }
  .nav-link, .tools-link, .chat-nav-link {
    font-size: 0.9rem;
    padding: 0.6em 0;
  }
}
@media (max-width: 768px) {
  .internai-section {
    padding: 2rem 0 1.5rem 0;
  }
  .internai-card {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    border-radius: 14px;
  }
  .internai-header {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .internai-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .internai-title {
    font-size: 1.1rem;
  }
  .internai-description {
    font-size: 0.98rem;
  }
  .internai-features {
    flex-direction: column;
    gap: 0.5rem;
  }
  .internai-feature {
    font-size: 0.98rem;
    padding: 0.5rem 0.7rem;
  }
  .internai-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    top: -6px;
    right: -6px;
  }
}
@media (max-width: 600px) {
  .internai-section {
    padding: 1.2rem 0 0.7rem 0;
  }
  .internai-card {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    border-radius: 10px;
  }
  .internai-title {
    font-size: 0.98rem;
  }
  .internai-description {
    font-size: 0.93rem;
  }
}
@media (max-width: 768px) {
  .internai-section::after {
    opacity: 0.08 !important;
    background-size: 80px 40px !important;
  }
}
@media (max-width: 480px) {
  .internai-section::after {
    opacity: 0.04 !important;
    background-size: 40px 20px !important;
  }
}
@media (max-width: 768px) {
  body::before {
    opacity: 0.08 !important;
    background-size: 16px 16px, 8px 8px !important;
  }
  body::after {
    opacity: 0.05 !important;
    background-size: 32px 16px !important;
  }
}
@media (max-width: 480px) {
  body::before {
    opacity: 0.03 !important;
    background-size: 8px 8px, 4px 4px !important;
  }
  body::after {
    opacity: 0.02 !important;
    background-size: 16px 8px !important;
  }
}

@media (max-width: 768px) {
  .floating-card,
  .hero-visual {
    display: none !important;
  }
  body::before,
  body::after,
  .internai-section::after {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 0.9rem;
    padding: 1rem 0 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-link, .tools-link, .chat-nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7em 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    background: none;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }
  .nav-link::after, .tools-link::after, .chat-nav-link::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    bottom: 0.2em;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-indigo));
    transition: width 0.3s ease;
  }
  .nav-link.active::after, .tools-link.active::after, .chat-nav-link.active::after {
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-link.active, .tools-link.active, .chat-nav-link.active {
    color: var(--accent-blue) !important;
  }
  .nav-link:hover::after, .tools-link:hover::after, .chat-nav-link:hover::after {
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-link:hover, .tools-link:hover, .chat-nav-link:hover {
    color: var(--accent-blue);
  }
  .chat-nav-link {
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: none;
    animation: none;
    margin: 0;
    padding: 0.85em 0;
    font-size: 1rem;
  }
}

/* --- Enhanced Mobile Responsiveness & Touch Optimization --- */
@media (max-width: 768px) {
  /* Navigation Menu Improvements */
  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 0.95rem;
    padding: 1.5rem 0;
    width: 100%;
  }
  
  .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
  }
  
  .nav-link, .tools-link, .chat-nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: none;
    position: relative;
    z-index: 1;
    min-height: 44px; /* Touch target minimum */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix underline spacing and prevent overlap */
  .nav-link::after, .tools-link::after, .chat-nav-link::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-indigo));
    transition: width 0.3s ease;
    position: absolute;
  }
  
  .nav-link.active::after, .tools-link.active::after, .chat-nav-link.active::after {
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-link.active, .tools-link.active, .chat-nav-link.active {
    color: var(--accent-blue) !important;
  }
  
  .nav-link:hover::after, .tools-link:hover::after, .chat-nav-link:hover::after {
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-link:hover, .tools-link:hover, .chat-nav-link:hover {
    color: var(--accent-blue);
  }
  
  /* Tools Dropdown Mobile Optimization */
  .nav-tools-dropdown {
    position: relative;
    width: 100%;
  }
  
  .tools-link {
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: none;
    animation: none;
    margin: 0;
    padding: 1rem 0;
    font-size: 1rem;
  }
  
  .tools-dropdown {
    position: static;
    display: none;
    width: 100%;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: blur(8px);
  }
  
  .nav-tools-dropdown.open .tools-dropdown {
    display: block;
  }
  
  .tools-dropdown li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    min-height: 44px;
    transition: background-color 0.2s ease;
  }
  

  
  .dropdown-link i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
  }
  
  .dropdown-link:hover, .dropdown-link:focus {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-indigo);
  }
  
  /* Hide "Coming Soon" badge on mobile */
  .coming-soon .soon-label {
    display: none;
  }
  
  /* Chat with Ali mobile optimization */
  .chat-nav-link {
    font-weight: 700;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: none;
    animation: none;
    margin: 0;
    padding: 1rem 0;
    font-size: 1rem;
  }
  
  /* Mobile Hero InternAI Badge */
  .hero-internai-badge {
    background: linear-gradient(135deg, #2563eb, #a855f7);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0.3rem 0 0.8rem 0;
    text-align: center;
    justify-content: center;
    min-height: 40px;
    animation: internaiGlow 2s ease-in-out infinite alternate;
  }
  
  .hero-internai-badge i {
    font-size: 0.8rem;
    animation: robotPulse 1.5s ease-in-out infinite;
  }
  
  /* Mobile InternAI Button */
  .internai-coming-soon {
    background: linear-gradient(135deg, #2563eb, #a855f7);
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: center;
    justify-content: center;
    min-height: 44px;
    animation: internaiGlow 2s ease-in-out infinite alternate;
  }
  
  .internai-coming-soon i {
    font-size: 0.9rem;
    animation: robotPulse 1.5s ease-in-out infinite;
  }
  
  /* Hide upward arrow button on mobile */
  .scroll-to-top {
    display: none !important;
  }
  
  /* Hero Section Mobile Improvements */
  .hero {
    padding: 2rem 1rem 3rem 1rem;
    min-height: auto;
  }
  
  .hero-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }
  
  .hero-content {
    text-align: center;
    padding: 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat {
    padding: 0.8rem;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  /* InternAI Section Mobile Optimization */
  .internai-section {
    padding: 2rem 1rem;
  }
  
  .internai-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
    margin: 0 0.5rem;
  }
  
  .internai-header {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }
  
  .internai-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  
  .internai-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  
  .internai-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .internai-features {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .internai-feature {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide InternAI badge on mobile */
  .internai-badge {
    display: none !important;
  }
  
  /* Chat Card Mobile Optimization */
  .chat-card {
    max-width: 100%;
    margin: 1rem 0.5rem;
    border-radius: 20px;
  }
  
  .chat-card-content {
    padding: 1.5rem 1.2rem;
  }
  
  .chat-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .chat-card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .chat-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .chat-launch-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
  
  /* General Layout Improvements */
  .container {
    padding: 0 1rem;
  }
  
  /* Ensure no horizontal scrolling */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Improve text readability on mobile */
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding: 0 0.5rem;
  }
  
  /* About Section Mobile */
  .about {
    padding: 1.5rem 0.8rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .about-intro {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 0.3rem;
  }
  
  /* Experience Section Mobile */
  .experience {
    padding: 1.5rem 0.8rem;
  }
  
  .timeline-grid {
    gap: 1.2rem;
  }
  
  .timeline-card {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .card-header {
    margin-bottom: 0.8rem;
  }
  
  .job-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .job-meta {
    font-size: 0.85rem;
    margin-top: 0.4rem;
  }
  
  .achievements li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
  }
  
  /* Skills Section Mobile */
  .skills {
    padding: 1.5rem 0.8rem;
  }
  
  .skills-grid {
    gap: 0.8rem;
  }
  
  .skill-category {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .skill-category h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .skill-item {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    min-height: 40px;
  }
  
  /* Contact Section Mobile */
  .contact {
    padding: 1.5rem 0.8rem;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .contact-item {
    padding: 0.6rem 0;
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  
  .contact-item i {
    font-size: 1rem;
    margin-right: 0.7rem;
  }
  
  .contact-form {
    padding: 1.2rem;
    border-radius: 12px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
    min-height: 40px;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Modal Mobile Optimization */
  .internai-modal-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .internai-modal-title {
    font-size: 1.3rem;
    line-height: 1.4;
  }
  
  .internai-modal-close {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    min-height: 44px;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
    padding: 0 0.3rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .internai-card {
    padding: 1.2rem 0.8rem;
    margin: 0 0.3rem;
  }
  
  .internai-title {
    font-size: 1.1rem;
  }
  
  .internai-description {
    font-size: 0.9rem;
  }
  
  .chat-card {
    margin: 0.8rem 0.3rem;
  }
  
  .chat-card-content {
    padding: 1.2rem 1rem;
  }
  
  .btn {
    max-width: 260px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 0.8rem;
  }
  
  .about, .experience, .skills, .contact {
    padding: 1.5rem 0.8rem;
  }
}

/* Mobile-only utility classes and mobile nav/footer styles */
@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
  .mobile-hide {
    display: none !important;
  }
  .mobile-fixed-name {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 2002;
    background: #fff;
    color: #23272f;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    padding: 0.85rem 0 0.7rem 0;
    box-shadow: 0 2px 12px rgba(40,48,74,0.07);
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.01em;
  }
  .navbar {
    top: 2.5rem;
  }
  .mobile-footer-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(40,48,74,0.07);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.7rem 0 0.5rem 0;
    z-index: 2002;
    font-size: 1.08rem;
  }
  .mobile-footer-nav a {
    color: #23272f;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-footer-nav a:active, .mobile-footer-nav a:focus {
    background: #f3f4f6;
    color: #2563eb;
  }
  .skills-summary-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(40,48,74,0.08);
    padding: 1.5rem 1.2rem;
    margin: 1.5rem 0 2.5rem 0;
    text-align: left;
    border: 1px solid #e5e7eb;
  }
  .skills-summary-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #23272f;
  }
  .skills-summary-card ul {
    margin: 0;
    padding-left: 1.1em;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
  }
  .skills-summary-card li {
    margin-bottom: 0.4em;
  }
  .hero-visual.mobile-hide {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-hide-navbar {
    display: none !important;
  }
  .hero {
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  .hero-title {
    margin-bottom: 0.5rem !important;
  }
  .hero-subtitle {
    margin-bottom: 0.7rem !important;
  }
  .hero-description {
    margin-bottom: 1rem !important;
  }
  .hero-stats {
    margin-bottom: 1rem !important;
    gap: 0.7rem !important;
  }
  .hero-buttons {
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .section-title {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 0.7rem !important;
    margin-bottom: 1rem !important;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .stat {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.7rem 0.3rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    margin: 0;
    transition: none !important;
  }
  .stat-tooltip-parent,
  .stat,
  .stat:hover,
  .stat-tooltip-parent:hover {
    pointer-events: none !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border-color: #e5e7eb !important;
  }
  .stat-number {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #23272f;
  }
  .stat-label {
    font-size: 0.85rem !important;
    color: #64748b;
    font-weight: 500;
  }
}

@media (max-width: 768px) {
  .navbar-row {
    display: flex;
    align-items: center;
    height: 56px;
    width: 100%;
    padding: 0 0.7rem;
    background: transparent;
  }
  .hamburger {
    position: static;
    margin-right: 0.7rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
  }
  .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #23272f;
    flex: 1;
    text-align: left;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero {
    padding-top: 56px !important;
  }
  .hero-title {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 769px) {
  .site-title {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .navbar-spacer {
    display: block;
    height: 56px;
    width: 100vw;
  }
  /* Legacy spacer rule disabled — sticky header no longer needs zeroed section padding */
}
@media (min-width: 769px) {
  .navbar-spacer {
    display: none !important;
  }
}

/* ============================================
   Service Website — Excel-Inspired Design v2
   ============================================ */

/* Focus & accessibility */
:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
}

/* Section rhythm */
.section-white { background: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-light-green); padding: clamp(56px, 7vw, 88px) 0; }

/* Sticky header & navigation layout */
.site-header.navbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 1000;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.site-header .nav-container {
    width: min(1120px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.site-header .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 2.5vw, 36px);
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    transform: none;
    opacity: 1;
    left: auto;
    top: auto;
    flex-direction: row;
    text-align: left;
}

.site-header .nav-item {
    margin: 0;
    padding: 0;
    border: none;
}

.site-header .nav-link {
    color: var(--primary-dark);
}

.nav-link.active { color: var(--primary-green) !important; }
.nav-link.active::after { background: var(--primary-green) !important; width: 100% !important; }

.nav-cta {
    justify-self: end;
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--primary-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(33, 115, 70, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-cta-mobile {
    display: none;
}

section[id] {
    scroll-margin-top: 88px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 58, 43, 0.2);
}
.btn-secondary {
    color: var(--primary-dark);
    border-color: var(--border);
    background: var(--white);
}
.btn-secondary:hover {
    background: var(--accent-subtle);
    color: var(--primary-dark);
    border-color: var(--primary-green);
}
.btn-full { width: 100%; }

/* Hero */
.hero { min-height: auto; padding: 3.5rem 0 3rem; }
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-title {
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.65;
    max-width: 520px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.hero-trust-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}
.hero-trust-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.hero-trust-points i {
    color: var(--primary-green);
    font-size: 0.75rem;
}

/* Hero dashboard mockup */
.hero-dashboard { position: relative; }
.dash-label {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    z-index: 2;
}
.dash-window {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(22, 58, 43, 0.08);
}
.dash-titlebar {
    background: var(--primary-dark);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dash-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}
.dash-filename {
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    margin-left: 0.5rem;
    font-family: monospace;
}
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light-green);
    border-bottom: 1px solid var(--border);
}
.dash-kpi {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
}
.dash-kpi-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dash-kpi-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.dash-kpi-accent { border-color: var(--primary-green); background: var(--accent-subtle); }
.dash-kpi-accent .dash-kpi-val { color: var(--primary-green); }
.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 70px;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.dash-bar {
    flex: 1;
    background: var(--accent-subtle);
    border-radius: 3px 3px 0 0;
    min-height: 8px;
}
.dash-bar-accent { background: var(--primary-green); }
.dash-table { padding: 0.5rem 0.75rem; font-size: 0.72rem; }
.dash-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.6fr;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.dash-row-head { font-weight: 600; color: var(--text-dark); background: var(--bg-light-green); }
.dash-status {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.65rem;
}
.dash-status-warn { color: #b45309; }
.dash-footer {
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-light-green);
}
.dash-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--secondary-green);
}

/* Section titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.section-intro {
    text-align: center;
    max-width: 560px;
    margin: 10px auto 32px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Problems — compact */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
}
.problem-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.problem-item i {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}
.problem-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}
.problem-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Services — compact cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: none;
    transition: border-color 0.2s, background 0.2s;
}
.service-card:hover {
    border-color: var(--primary-green);
    background: var(--accent-subtle);
    transform: none;
    box-shadow: none;
}
.service-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--accent-subtle);
    color: var(--primary-green);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.service-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
}
.service-link:hover { text-decoration: underline; }

/* Portfolio — compact cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.portfolio-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: none;
}
.portfolio-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-light-green);
    overflow: hidden;
}
.portfolio-image-wrap .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background: rgba(22, 58, 43, 0.94);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0.42rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(22, 58, 43, 0.22);
    max-width: calc(100% - 24px);
    white-space: nowrap;
}
.portfolio-modal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-green);
    background: var(--accent-subtle);
    border: 1px solid rgba(33, 115, 70, 0.18);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    margin-bottom: 0.75rem;
}
.portfolio-body { padding: 1rem; }
.portfolio-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.portfolio-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}
.portfolio-tools {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* How it works — connected process timeline */
.process-timeline {
    position: relative;
    margin-top: 0.5rem;
}

.process-line {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.process-line-track,
.process-line-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.process-line-track {
    background: var(--border);
}

.process-line-fill {
    background: var(--primary-green);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.process-timeline.is-in-view .process-line-fill {
    transform: scaleX(1);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.process-step {
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
    background: none;
    border: none;
}

.step-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    transition: border-color 400ms ease, color 400ms ease, background-color 400ms ease, box-shadow 400ms ease;
}

.process-step.is-active .step-number,
.process-timeline.is-in-view .process-step.is-active .step-number {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: var(--accent-subtle);
    box-shadow: 0 0 0 4px rgba(33, 115, 70, 0.08);
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.step-content p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* Desktop horizontal connector behind numbers */
@media (min-width: 801px) {
    .process-line {
        top: 19px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
    }
}

@media (max-width: 800px) {
    .process-timeline {
        padding-left: 0;
    }

    .process-line {
        top: 20px;
        bottom: 20px;
        left: 19px;
        width: 2px;
        right: auto;
        height: auto;
    }

    .process-line-fill {
        transform-origin: top center;
        transform: scaleY(0);
    }

    .process-timeline.is-in-view .process-line-fill {
        transform: scaleY(1);
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .process-step {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 0.85rem;
        text-align: left;
        align-items: start;
        padding: 0;
    }

    .step-number {
        margin-bottom: 0;
    }
}

/* Project quote CTA */
.quote-section {
    padding: clamp(64px, 7vw, 88px) 0;
    background: var(--primary-dark);
    color: #ffffff;
}

.quote-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}

.quote-content {
    max-width: 680px;
}

.quote-section .section-label {
    color: var(--accent-subtle);
}

.quote-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 16px;
}

.quote-section p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin: 0;
}

.quote-action {
    max-width: 300px;
    text-align: left;
    display: flex;
    align-items: center;
    align-self: center;
}

.btn-quote {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-quote:hover {
    background: var(--accent-subtle);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* About section */
.about-section {
    padding: clamp(72px, 8vw, 104px) 0;
}
.about-section.section-alt {
    padding: clamp(72px, 8vw, 104px) 0;
}
.about-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 88px);
    align-items: center;
}
.about-image-column {
    display: flex;
    justify-content: flex-start;
}
.about-photo-wrapper {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(22, 58, 43, 0.08);
}
.about-photo-wrapper img,
.about-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 18%;
}
.about-content {
    max-width: 680px;
}
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 8px;
}
.about-section-label {
    margin-bottom: 6px;
}
.about-content > .about-intro:first-of-type {
    margin-top: 0;
}
.about-intro {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 14px;
    max-width: 650px;
}
.about-intro:last-of-type {
    margin-bottom: 0;
}
.about-facts {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
    display: grid;
    gap: 12px;
}
.about-fact {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.about-fact i {
    margin-top: 3px;
    color: var(--primary-green);
    font-size: 0.85rem;
    text-align: center;
}
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}
.contact-location,
.contact-service-area {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.footer-service-area {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* Testimonials — compact, equal-height cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: none;
    margin: 0;
}
.testimonial-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.testimonial-text {
    flex: 1 1 auto;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.85rem;
}
.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: auto;
}
.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: normal;
}
.testimonial-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Contact */
.contact-section,
.contact.section-alt {
    padding: clamp(56px, 7vw, 84px) 0;
}
.contact-intro {
    max-width: 520px;
    margin-bottom: 28px;
}
.contact-layout {
    width: min(600px, calc(100% - 48px));
    margin: 0 auto;
    display: block;
}
.contact-form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
}
.multi-step-form {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(22, 58, 43, 0.07);
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-progress {
    margin-bottom: 1rem;
}
.form-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.form-progress-header span:first-child {
    font-weight: 600;
    color: var(--primary-dark);
}
.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.form-step {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.form-step[hidden] {
    display: none !important;
}
.form-step.is-active:not([hidden]) {
    display: grid;
    gap: 18px;
    animation: formStepIn 0.25s ease;
}
@keyframes formStepIn {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}
.form-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    float: none;
    width: 100%;
}
.field-help {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0.35rem 0 0;
    line-height: 1.45;
}
.field-help--privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.field-help--privacy i {
    color: var(--primary-green);
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}
.form-navigation--start {
    justify-content: flex-end;
}
.form-navigation .btn {
    min-width: 120px;
}
.review-summary {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
.review-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.review-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    grid-column: 1;
}
.review-value {
    font-size: 0.9rem;
    color: var(--text-dark);
    grid-column: 1;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}
.review-edit {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}
.review-edit:hover {
    color: var(--primary-dark);
}
.review-edit:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}
.form-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light-green);
    border-radius: 8px;
}
.form-status[hidden],
.form-error[hidden],
.form-success-view[hidden] {
    display: none !important;
}
.form-error {
    font-size: 0.88rem;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.form-success-view {
    text-align: center;
    padding: 0.5rem 0;
}
.form-success-icon {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.form-success-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem;
}
.form-success-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.form-success-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 1rem 0 0;
}
.form-success-email a {
    color: var(--primary-green);
    font-weight: 500;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}
.multi-step-form .form-group {
    margin-bottom: 0;
}
.multi-step-form .form-row {
    gap: 0.85rem;
}
.multi-step-form .field-error {
    min-height: 0;
}
.required { color: var(--primary-green); }
.optional { color: var(--text-secondary); font-weight: 400; font-size: 0.8rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(33, 115, 70, 0.12);
}
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc2626;
}
.field-error {
    display: block;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.25rem;
    min-height: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
}
.form-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 0.15rem;
    accent-color: var(--primary-green);
}
.form-checkbox label {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .form-step.is-active:not([hidden]) {
        animation: none;
    }
    .progress-fill {
        transition: none;
    }
}

@media (max-width: 800px) {
    .contact-layout {
        width: min(600px, calc(100% - 32px));
        text-align: left;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-navigation {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .form-navigation .btn-primary {
        order: -1;
    }
    .form-navigation .btn {
        width: 100%;
        min-width: 0;
        min-height: 46px;
    }
}

@media (max-width: 700px) {
    .footer-main {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .portfolio-badge {
        font-size: 0.68rem;
        padding: 0.38rem 0.6rem;
        top: 10px;
        left: 10px;
    }

    .hero-trust-points li {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .portfolio-summary {
        font-size: 0.84rem;
    }

    .service-card {
        padding: 1.1rem 1rem;
    }

    .container,
    .contact-layout,
    .footer-main,
    .footer-bottom {
        width: calc(100% - 28px);
    }
}

/* Footer — dark green, compact */
.site-footer,
.footer {
    background: var(--primary-dark);
    padding: 48px 0 24px;
    color: #fff;
}
.footer-main {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.footer-brand h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #fff;
}
.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}
.footer-brand p + p {
    margin-top: 0.25rem;
}
.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}
.footer-links a,
.privacy-trigger {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.footer-links a:hover,
.privacy-trigger:hover {
    color: var(--secondary-green);
}
.footer-bottom {
    width: min(1120px, calc(100% - 48px));
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}
.footer-bottom p {
    margin: 0;
}

/* Privacy dialog */
.privacy-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.privacy-dialog[hidden] {
    display: none !important;
}
.privacy-dialog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 58, 43, 0.55);
}
.privacy-dialog-content {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 32px));
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 16px 40px rgba(22, 58, 43, 0.18);
}
.privacy-dialog-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-right: 1.5rem;
}
.privacy-dialog-content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.privacy-dialog-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
}
.privacy-dialog-close:hover {
    color: var(--text-dark);
}
body.privacy-open {
    overflow: hidden;
}

/* Scroll to top */
.scroll-to-top {
    background: var(--primary-green);
    box-shadow: 0 4px 12px rgba(22, 58, 43, 0.25);
}
.scroll-to-top:hover { background: var(--primary-dark); }

/* Portfolio modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.portfolio-modal[hidden] { display: none; }
.portfolio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 58, 43, 0.55);
}
.portfolio-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    padding: 1.75rem;
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    z-index: 1;
    border: 1px solid var(--border);
}
.portfolio-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}
.portfolio-modal-close:hover { color: var(--text-dark); }
.portfolio-modal-content h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}
.modal-detail { margin-bottom: 1rem; }
.modal-detail dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-green);
    margin-bottom: 0.2rem;
}
.modal-detail dd {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 0.75rem;
}

/* Scroll reveal — progressive enhancement only when JS is enabled.
   Target [data-reveal] directly so hiding does not depend on an extra class. */
.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .hero-enter {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--hero-delay, 0ms);
    will-change: opacity, transform;
}

.js-enabled .hero-enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* How It Works progress line — stronger desktop motion */
.process-line-fill {
    background: var(--primary-green);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.how-it-works.is-visible .process-line-fill,
.process-timeline.is-in-view .process-line-fill {
    transform: scaleX(1);
}

@media (max-width: 800px) {
    .process-line-fill {
        transform-origin: top center;
        transform: scaleY(0);
    }

    .how-it-works.is-visible .process-line-fill,
    .process-timeline.is-in-view .process-line-fill {
        transform: scaleY(1);
    }
}

.process-step .step-number {
    border-color: var(--border);
    color: var(--text-secondary);
    background: var(--white);
}

.process-step.is-active .step-number {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: var(--accent-subtle);
    box-shadow: 0 0 0 4px rgba(33, 115, 70, 0.1);
}

@media (max-width: 600px) {
    .js-enabled [data-reveal] {
        transform: translateY(14px);
        transition-duration: 500ms;
        transition-delay: 0ms !important;
    }

    .js-enabled .hero-enter {
        transform: translateY(10px);
        transition-duration: 480ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-enabled [data-reveal],
    .js-enabled [data-reveal].is-visible,
    .js-enabled .hero-enter,
    .js-enabled .hero-enter.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    .process-line-fill {
        transform: none !important;
        transition: none !important;
    }
}

/* Legacy class kept visible for safety */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}
.animate-on-scroll.animate { opacity: 1; transform: none; }

@media (max-width: 800px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .about-image-column {
        display: flex;
        justify-content: center;
    }
    .about-content {
        max-width: 680px;
        margin: 0 auto;
    }
    .about-photo-wrapper {
        max-width: 270px;
    }
}

/* Mobile navigation & quote section */
@media (max-width: 900px) {
    .site-header .nav-container {
        position: relative;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 16px;
        min-height: 64px;
    }

    .site-header .hamburger {
        display: flex;
    }

    .site-header .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        display: block;
        pointer-events: none;
    }

    .site-header .nav-cta--desktop {
        display: none;
    }

    .site-header .nav-cta-mobile {
        display: block;
        padding: 12px 16px 16px;
        border-top: 1px solid var(--border);
        margin-top: 4px;
    }

    .site-header .nav-cta-mobile .nav-cta {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .site-header .nav-menu {
        position: relative;
        left: auto;
        top: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0.5rem 0 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.08);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: auto;
    }

    .site-header .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-header .nav-menu .nav-item {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .site-header .nav-menu .nav-link {
        display: block;
        text-align: left;
    }

    .quote-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .quote-action {
        max-width: none;
    }

    section[id] {
        scroll-margin-top: 72px;
    }
}

@media (min-width: 901px) {
    .site-header .hamburger {
        display: none;
    }
}

/* Mobile nav CTA in menu */
@media (max-width: 768px) {
    .hero { padding: 3rem 0 2rem !important; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-dashboard { margin-top: 1rem; }
    .problems-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .process-steps { flex-direction: column; gap: 1.25rem; }
    .process-steps::before { display: none; }
    .process-step { text-align: left; display: flex; gap: 0.75rem; padding: 0; }
    .step-number { flex-shrink: 0; margin-bottom: 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .contact-layout { width: min(600px, calc(100% - 28px)); margin: 0 auto; }
    .form-row { grid-template-columns: 1fr; }
    .section-white, .section-alt { padding: 2.25rem 0; }
    .about-section.section-alt { padding: clamp(48px, 8vw, 68px) 0; }
    .quote-section { padding: clamp(44px, 7vw, 60px) 0; }
    .footer-main { flex-direction: column; gap: 24px; text-align: left; align-items: flex-start; }
    .problems-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .about-photo-wrapper { max-width: 240px; }
    .about-actions .btn { width: 100%; justify-content: center; }
    .btn-quote {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .container {
        width: min(100% - 28px, 1120px);
    }
    .contact-layout {
        width: min(100% - 28px, 600px);
    }
}

/* Responsive layout refinements */
.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

img,
.portfolio-image {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-dashboard {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

}

@media (max-width: 640px) {
    .multi-step-form {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .form-navigation {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-navigation .btn {
        width: 100%;
        min-height: 44px;
    }

    .form-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

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

@media (max-width: 768px) {
    .process-steps::before {
        top: 18px;
        bottom: 18px;
        left: 17px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .site-header .nav-link,
    .site-header .nav-cta-mobile .nav-cta {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .site-header .hamburger {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
}

body.nav-open {
    overflow: hidden;
}

/* ============================================
   Mobile layout overrides (final cascade)
   Neutralize legacy mobile rules that fight the
   current service-site layout.
   ============================================ */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    html,
    body {
        overflow-x: visible !important;
        max-width: 100%;
    }

    .site-header.navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 64px;
        display: block !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 1px 0 var(--border) !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 0 !important;
        z-index: 1000 !important;
    }

    /* Kill legacy mobile navbar offset meant for removed fixed name bar */
    .navbar {
        top: 0 !important;
    }

    /* Offset page content for fixed header */
    main {
        padding-top: 64px !important;
    }

    .site-header .nav-container {
        width: min(1120px, calc(100% - 28px)) !important;
        min-height: 64px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .site-header .nav-brand {
        font-size: 1rem;
        max-width: calc(100vw - 88px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header .nav-cta--desktop {
        display: none !important;
    }

    .site-header .hamburger {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .site-header .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: block !important;
        pointer-events: none;
        z-index: 1001;
    }

    body.nav-open .site-header .nav-links {
        pointer-events: auto;
    }

    .site-header .nav-menu {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 0.5rem 0 0 !important;
        transform: translateY(-8px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        max-height: min(80vh, 560px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .site-header .nav-cta-mobile {
        display: block !important;
    }

    .site-header .nav-cta-mobile .nav-cta {
        display: flex !important;
        width: calc(100% - 32px);
        margin: 8px 16px 16px;
        justify-content: center;
        box-sizing: border-box;
    }

    section[id] {
        scroll-margin-top: 72px;
    }

    .hero,
    .about,
    .skills,
    .career-pathway,
    .testimonials,
    .contact,
    .footer {
        padding-top: revert !important;
    }

    .section-white,
    .section-alt,
    .about-section.section-alt,
    .testimonials.section-white {
        padding: clamp(48px, 8vw, 72px) 0 !important;
    }

    .contact-section,
    .contact.section-alt {
        padding: clamp(48px, 7vw, 68px) 0 !important;
    }

    .hero.section-alt,
    .hero {
        padding: clamp(28px, 6vw, 40px) 0 clamp(40px, 8vw, 56px) !important;
        min-height: auto !important;
    }

    .hero-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        width: min(1120px, calc(100% - 28px)) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .hero-content {
        text-align: left !important;
        padding: 0 !important;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8.2vw, 2.35rem) !important;
        line-height: 1.15 !important;
        margin: 0 0 0.85rem !important;
        padding: 0 !important;
    }

    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin: 0 0 1.25rem !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
        width: 100%;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .about-actions .btn,
    .btn-quote {
        width: 100% !important;
        max-width: none !important;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }

    .hero-trust-points {
        align-items: flex-start;
    }

    .hero-dashboard {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .dash-window {
        width: 100%;
    }

    .dash-kpis {
        gap: 0.4rem;
        padding: 0.6rem;
    }

    .dash-kpi {
        padding: 0.4rem 0.25rem;
        min-width: 0;
    }

    .dash-kpi-label {
        font-size: 0.58rem;
    }

    .dash-kpi-val {
        font-size: 0.82rem;
    }

    .dash-row {
        gap: 0.35rem;
        font-size: 0.68rem;
    }

    .container {
        width: min(1120px, calc(100% - 28px)) !important;
        max-width: none !important;
        margin-inline: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .problems-grid,
    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.1rem !important;
    }

    .quote-container {
        grid-template-columns: 1fr !important;
        width: min(1120px, calc(100% - 28px));
        margin: 0 auto;
        gap: 1.5rem;
    }

    .quote-section {
        padding: clamp(48px, 8vw, 64px) 0 !important;
    }

    .about-container {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        width: min(1120px, calc(100% - 28px));
        margin: 0 auto;
    }

    .about-photo-wrapper {
        max-width: 240px;
        margin: 0 auto;
    }

    .contact-layout {
        display: block !important;
        width: min(600px, calc(100% - 28px)) !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .contact-form {
        padding: 0 !important;
        width: 100%;
    }

    .multi-step-form {
        width: 100% !important;
        max-width: none !important;
        padding: 20px 16px !important;
        box-sizing: border-box;
    }

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

    .form-navigation {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .form-navigation .btn-primary {
        order: -1;
    }

    .form-navigation .btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* prevent iOS zoom */
        min-height: 44px;
        box-sizing: border-box;
    }

    .site-footer,
    .footer {
        padding: 40px 0 22px !important;
    }

    .footer-main {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: min(1120px, calc(100% - 28px));
        margin: 0 auto;
    }

    .footer-links {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .footer-bottom {
        width: min(1120px, calc(100% - 28px));
        margin: 24px auto 0;
        text-align: left;
    }

    .portfolio-modal-content {
        width: min(720px, calc(100vw - 24px)) !important;
        max-height: calc(100vh - 24px);
        padding: 1.25rem !important;
    }
}

@media (max-width: 380px) {
    .dash-kpis {
        grid-template-columns: 1fr;
    }

    .site-header .nav-brand {
        font-size: 0.95rem;
    }
}

/* ============================================
   Mobile-only refinements (desktop unchanged)
   ============================================ */

@media (max-width: 768px) {
    .hero-container {
        gap: 24px !important;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 0.7rem !important;
    }

    .hero-description {
        margin-bottom: 1rem !important;
        font-size: 0.98rem !important;
    }

    .hero-buttons {
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-buttons .btn {
        min-height: 46px;
    }

    .hero-trust-points {
        gap: 0.35rem !important;
    }

    .hero-dashboard {
        max-width: 420px;
        margin-inline: auto;
        transform: scale(0.96);
        transform-origin: top center;
    }

    .problems-grid,
    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .problem-item,
    .service-card {
        padding: 1rem 0.95rem !important;
    }

    .service-icon {
        margin-bottom: 0.45rem;
    }

    .portfolio-image-wrap {
        aspect-ratio: 16 / 9;
    }

    .portfolio-badge {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        padding: 0.45rem 0.72rem !important;
        letter-spacing: 0.045em;
    }

    .portfolio-body {
        padding: 0.9rem !important;
    }

    .portfolio-view-btn,
    .portfolio-body .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .process-steps {
        flex-direction: column !important;
        gap: 0.85rem !important;
    }

    .process-step {
        gap: 0.65rem !important;
        padding: 0 !important;
    }

    .quote-section {
        padding: 44px 0 !important;
    }

    .quote-container {
        gap: 1.25rem !important;
    }

    .btn-quote {
        width: 100%;
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .about-container {
        gap: 22px !important;
    }

    .about-photo-wrapper {
        max-width: 240px !important;
        margin: 0 auto !important;
    }

    .about-content {
        text-align: left !important;
    }

    .about-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .about-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .testimonial-card {
        height: auto !important;
        min-height: 0 !important;
        padding: 1rem !important;
    }

    .testimonial-text {
        flex: 0 1 auto !important;
        margin-bottom: 0.7rem !important;
    }

    .contact-section,
    .contact.section-alt {
        padding: 48px 0 !important;
    }

    .contact-intro {
        margin-bottom: 1.1rem !important;
    }

    .section-title {
        margin-bottom: 0.4rem !important;
    }

    .section-intro {
        margin: 8px auto 1.25rem !important;
    }
}

@media (max-width: 700px) {
    .footer-brand {
        display: none !important;
    }

    .site-footer,
    .footer {
        padding: 30px 0 20px !important;
    }

    .footer-main {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        text-align: center !important;
        width: min(1120px, calc(100% - 28px));
        margin: 0 auto;
    }

    .footer-links {
        justify-content: center !important;
        gap: 24px !important;
        width: 100%;
    }

    .footer-bottom {
        margin-top: 20px !important;
        padding-top: 16px !important;
        text-align: center !important;
        width: min(1120px, calc(100% - 28px));
    }
}

@media (max-width: 600px) {
    .section-white,
    .section-alt,
    .about-section.section-alt,
    .contact-section,
    .contact.section-alt,
    .testimonials.section-white {
        padding: 48px 0 !important;
    }

    .quote-section {
        padding: 40px 0 !important;
    }

    .hero.section-alt,
    .hero {
        padding: 24px 0 36px !important;
    }

    .multi-step-form {
        padding: 22px 18px !important;
        border-radius: 14px !important;
    }

    .form-progress {
        margin-bottom: 0.85rem !important;
    }

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

    .form-navigation {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .form-navigation .btn,
    .form-navigation button {
        width: 100% !important;
        min-height: 46px;
    }

    .contact-layout {
        width: calc(100% - 28px) !important;
    }
}

@media (max-width: 520px) {
    .hero-dashboard,
    .hero-visual {
        display: none !important;
    }

    .hero-container {
        gap: 0 !important;
    }

    .about-photo-wrapper {
        max-width: 220px !important;
    }

    .portfolio-modal-content {
        width: min(720px, calc(100vw - 20px)) !important;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
    }

    .portfolio-badge {
        font-size: 0.7rem !important;
        top: 10px;
        left: 10px;
    }
}


/* ============================================
   About preview, trust excerpt, About page
   ============================================ */

.about-preview {
    padding: clamp(48px, 6vw, 72px) 0;
}

.about-preview-container {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.about-preview-photo {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.about-preview-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.about-preview-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.about-preview-points li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.about-preview-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-green);
}

.about-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.trust-excerpt {
    padding: clamp(40px, 5vw, 64px) 0;
}

.trust-excerpt-inner {
    max-width: 720px;
    text-align: left;
}

.trust-quote {
    margin: 0.75rem 0 1rem;
}

.trust-quote p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
    margin: 0 0 0.85rem;
}

.trust-quote footer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.trust-quote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
}

.trust-quote span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-more-link {
    display: inline-flex;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.trust-more-link:hover {
    border-bottom-color: var(--primary-green);
}

.about-page-hero {
    padding: clamp(48px, 7vw, 80px) 0;
}

.about-page-hero-inner {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.about-page-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    display: block;
}

.about-page-title {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.about-page-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.35rem;
}

.about-page-copy {
    max-width: 760px;
}

.about-page-copy p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 1rem;
}

.about-page-facts {
    margin-top: 1.5rem;
}

.about-recommendations .testimonial-card {
    height: auto;
}

.page-about .site-header .nav-link.active {
    color: var(--primary-green);
}

@media (max-width: 800px) {
    .about-preview-container,
    .about-page-hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1.5rem;
    }

    .about-preview-image,
    .about-page-photo-wrap {
        display: flex;
        justify-content: center;
    }

    .about-preview-photo {
        max-width: 160px;
    }

    .about-page-photo {
        max-width: 220px;
    }

    .about-preview-actions,
    .about-page-intro .about-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .about-preview-actions .btn,
    .about-page-intro .about-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Keep process timeline overrides ahead of legacy mobile flex rules */
@media (max-width: 900px) {
    .process-steps {
        display: grid !important;
        grid-template-columns: 1fr !important;
        flex-direction: unset !important;
    }

    .process-steps::before {
        display: none !important;
    }

    .process-step {
        display: grid !important;
        grid-template-columns: 40px 1fr !important;
        text-align: left !important;
        gap: 0.85rem !important;
        padding: 0 !important;
    }
}

@media (min-width: 801px) {
    .process-steps {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .process-step {
        display: block !important;
        text-align: center !important;
    }
}

body.page-about {
    opacity: 1;
}
