/* ===== CSS VARIABLES ===== */
:root {
    /* darkened primary for stronger button appearance */
    --color-primary: #008f4f;
    --color-secondary: #0088cc;
    /* Hero background used across portfolio files */
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%, #ffffff 100%);
    --gradient-primary: linear-gradient(135deg, #008f4f 0%, #0088cc 100%);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --z-max: 9999;
    --footer-gradient: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
    --primary: #008f4f;
    --secondary: #0088cc;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MISSING TAILWIND UTILITY CLASSES ===== */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.lg\:grid-cols-3 {
    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-3 {
    gap: 0.75rem;
}

.gap-8 {
    gap: 2rem;
}

.lg\:gap-10 {
    @media (min-width: 1024px) {
        gap: 2.5rem;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

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

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

.items-start {
    align-items: flex-start;
}

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

.justify-between {
    justify-content: space-between;
}

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

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

.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.text-primary-600 {
    color: #16a34a;
}

.text-primary-700 {
    color: #15803d;
}

.text-secondary-600 {
    color: #2563eb;
}

.bg-primary-50 {
    background-color: #f0fdf4;
}

.bg-primary-100 {
    background-color: #dcfce7;
}

.bg-secondary-100 {
    background-color: #dbeafe;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary-50 {
    --tw-gradient-from: #f0fdf4;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 253, 244, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.hover\:from-primary-100:hover {
    --tw-gradient-from: #dcfce7;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(220, 252, 231, 0));
}

.border {
    border-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-primary-200 {
    border-color: #bbf7d0;
}

.border-primary-300 {
    border-color: #86efac;
}

.border-primary-500 {
    border-color: #22c55e;
}

.border-secondary-200 {
    border-color: #c7d2fe;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-r-lg {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-1\.5 {
    margin-bottom: 0.375rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-11 {
    margin-left: 2.75rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-14 {
    width: 3.5rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-14 {
    height: 3.5rem;
}

.h-full {
    height: 100%;
}

.h-4 {
    height: 1rem;
}

.h-3 {
    height: 0.75rem;
}

.min-w-0 {
    min-width: 0px;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.fixed {
    position: fixed;
}

.top-0 {
    top: 0px;
}

.left-0 {
    left: 0px;
}

.right-0 {
    right: 0px;
}

.bottom-0 {
    bottom: 0px;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.-top-1 {
    top: -0.25rem;
}

.-right-1 {
    right: -0.25rem;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.pointer-events-none {
    pointer-events: none;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:border-primary-300:hover {
    border-color: #86efac;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:bg-secondary-600:hover {
    background-color: #2563eb;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-light {
    font-weight: 300;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.md\:text-5xl {
    @media (min-width: 768px) {
        font-size: 3rem;
        line-height: 1;
    }
}

.md\:text-xl {
    @media (min-width: 768px) {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flex-wrap {
    flex-wrap: wrap;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-filter {
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.md\:py-24 {
    @media (min-width: 768px) {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.text-transparent {
    color: transparent;
}

.from-primary-600 {
    --tw-gradient-from: #16a34a;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(22, 163, 74, 0));
}

.to-secondary-600 {
    --tw-gradient-to: #2563eb;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.min-h-0 {
    min-height: 0px;
}

.opacity-0 {
    opacity: 0;
}

.pr-2 {
    padding-right: 0.5rem;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== CUSTOM ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes shimmer {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes heroShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== ANIMATION CLASSES ===== */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-load.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-load:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-on-load:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-on-load:nth-child(3) {
    animation-delay: 0.5s;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-in--delay-1 {
    animation-delay: 0.2s;
}

.animate-in--delay-2 {
    animation-delay: 0.4s;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-max);
    height: clamp(60px, 8vh, 80px);
    transition: background 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease, transform 180ms ease;
    background: var(--footer-gradient);
    color: #ffffff;
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    background: var(--footer-gradient);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    transform: translateY(-4px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
}

/* Logo Styles */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: translateY(-2px);
}

.navbar-logo:hover .navbar-logo-icon {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 143, 79, 0.15), 0 8px 25px rgba(0, 143, 79, 0.25);
}

.navbar-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 143, 79, 0.15);
    transition: all 0.3s ease;
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.navbar-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    position: relative;
}

.navbar-link-anchor {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-link.active .navbar-link-anchor,
.navbar-link-anchor:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Social Links */
.navbar-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.navbar-social-link {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.95);
    background: none;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navbar-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 1;
}

.navbar-social-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.navbar-social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 143, 79, 0.15);
}

.navbar-social-link i {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.navbar-social-link:hover i {
    transform: scale(1.1);
}

/* CTA Button */
.navbar-cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.navbar-cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: white;
}

/* Mobile Menu Toggle */
.navbar-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-hamburger-line {
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: calc(var(--z-max) - 1);
    overflow-y: auto;
    padding-top: 80px;
}

.mobile-menu.active {
    left: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    padding: 2rem;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 1rem;
}

.mobile-menu-link {
    display: block;
    padding: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(0, 143, 79, 0.1);
    color: #00b96b;
    transform: translateX(0.5rem);
}

/* ===== HERO SECTION STYLES ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

#home {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(0, 143, 79, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 136, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#home::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: heroShimmer 8s linear infinite;
    pointer-events: none;
}

/* ===== HERO INTRO MINI TEXT ===== */
.hero-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-intro.intro-visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-name {
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(0, 185, 107, 0.09), rgba(37, 99, 235, 0.08));
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

/* Make intro-name adapt on small screens */
@media (max-width: 767px) {
    .intro-name {
        display: inline-block;
        padding: 5px 10px;
        font-size: 0.9rem;
        margin: 4px 6px;
        box-shadow: 0 8px 20px rgba(2, 6, 23, 0.05);
    }
}

@media (max-width: 767px) {
    .hero-intro {
        font-size: 0.85rem;
    }
}

/* Keep hero CTA buttons inline on narrow screens */
@media (max-width: 480px) {

    .hero-content-wrapper .btn-primary,
    .hero-content-wrapper .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.92rem;
    }

    .hero-content-wrapper .flex-row {
        gap: 0.5rem;
        justify-content: flex-start;
        padding-left: 0.5rem;
        /* small indent so buttons align with hero text */
    }
}

/* make intro appear when page loads via small JS hook (CSS only fallback remains) */

/* ===== HERO GRID LAYOUT ===== */
.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-auto-rows: auto;
}

.hero-content-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.hero-content-wrapper {
    max-width: 100%;
    width: 100%;
}

.hero-chat-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.chat-wrapper {
    width: 100%;
    max-width: 100%;
}

/* ===== HERO RESPONSIVE BREAKPOINTS ===== */

/* Mobile Portrait: Stack layout, full width */
@media (max-width: 767px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #home {
        padding-top: 80px;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-content-col,
    .hero-chat-col {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(1.95rem, 6.5vw, 2.75rem);
        text-align: center;
    }

    .chat-wrapper {
        max-width: 100%;
    }

    .chat-container {
        height: clamp(280px, 40vh, 400px);
    }

    .chat-messages {
        height: clamp(160px, 26vh, 280px);
    }
}

/* Tablet Portrait: Stack layout, centered content */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    #home {
        padding-top: 90px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        text-align: center;
    }

    .hero-content-col,
    .hero-chat-col {
        text-align: center;
    }

    .chat-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .chat-container {
        height: clamp(350px, 45vh, 480px);
    }

    .chat-messages {
        height: clamp(230px, 32vh, 360px);
    }
}

/* Small Laptop: Balanced two-column layout */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
        max-width: 1000px;
        margin: 0 auto;
    }

    #home {
        padding-top: 100px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 3.5vw, 3.6rem);
    }

    .hero-content-wrapper {
        max-width: 520px;
    }

    .chat-wrapper {
        max-width: 420px;
    }

    .chat-container {
        height: clamp(380px, 48vh, 520px);
    }

    .chat-messages {
        height: clamp(260px, 36vh, 400px);
    }
}

/* Standard Laptop: Comfortable two-column */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 4rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    #home {
        padding-top: 110px;
    }

    .hero-title {
        font-size: clamp(2.75rem, 3.1vw, 3.9rem);
    }

    .hero-content-wrapper {
        max-width: 600px;
    }

    .chat-wrapper {
        max-width: 480px;
    }

    .chat-container {
        height: clamp(420px, 52vh, 580px);
    }

    .chat-messages {
        height: clamp(300px, 40vh, 460px);
    }
}

/* Large Desktop: Spacious layout */
@media (min-width: 1400px) {
    .hero-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 5rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    #home {
        padding-top: 120px;
    }

    .hero-title {
        font-size: clamp(3rem, 2.8vw, 4.4rem);
    }

    .hero-content-wrapper {
        max-width: 700px;
    }

    .chat-wrapper {
        max-width: 540px;
    }

    .chat-container {
        height: clamp(460px, 55vh, 640px);
    }

    .chat-messages {
        height: clamp(340px, 43vh, 520px);
    }
}

/* ===== COMPONENT STYLES ===== */
.availability-badge {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid rgba(16, 120, 68, 0.2);
    box-shadow: 0 4px 15px rgba(16, 120, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.availability-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: slideShine 3s ease-in-out infinite;
}

.hero-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.feature-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 185, 107, 0.2);
}

.feature-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: 0 4px 12px rgba(0, 143, 79, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 143, 79, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 143, 79, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 143, 79, 0.35), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 143, 79, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 143, 79, 0.2), 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Make navbar CTA use the same primary gradient look but smaller */
.navbar-cta-button.btn-primary,
.navbar-cta-button.btn-primary i,
.navbar-cta-button.btn-primary span {
    /* inherit colors from btn-primary */
    color: inherit;
}

.navbar-cta-button.btn-primary {
    padding: 0.45rem 0.9rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 143, 79, 0.18);
    border-radius: 8px;
    font-weight: 600;
}

.navbar-cta-button.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 143, 79, 0.28);
}

/* Hero-centered CTAs should use slightly larger padding but same style */
.hero-cta {
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
}

/* Project demo buttons: same gradient but compact */
.project-demo {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

.project-demo i {
    /* keep icon spacing */
    margin-right: 0.5rem;
}

/* ===== CHAT INTERFACE STYLES ===== */
.chat-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.chat-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    border-radius: 16px 16px 0 0;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 143, 79, 0.5), transparent);
}

.chat-body {
    background: transparent;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 143, 79, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.chat-messages {
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 143, 79, 0.3) transparent;
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
}

.chat-input-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 143, 79, 0.3), transparent);
}

.quick-action-btn {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 143, 79, 0.3), transparent);
    transition: left 0.5s ease;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #00b96b 0%, #0088cc 100%);
    border-color: rgba(0, 143, 79, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 185, 107, 0.3);
}

.chat-input {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.chat-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 185, 107, 0.1);
    outline: none;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-send-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 185, 107, 0.3);
    cursor: pointer;
}

.chat-send-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 185, 107, 0.4);
}

.profile-image {
    border: 2px solid rgba(0, 185, 107, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(0, 185, 107, 0.1);
}

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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 185, 107, 0.3);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 185, 107, 0.5);
}

.message {
    animation: slideInMessage 0.3s ease-out;
}

.typing-indicator {
    animation: pulse 1.5s infinite;
}

.online-indicator {
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Enhanced message styling */
.bot-message {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== ABOUT SECTION STYLES ===== */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #16a34a #f3f4f6;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #15803d 0%, #1d4ed8 100%);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.shimmer-effect:hover::before {
    transform: translateX(100%);
}

.gradient-header {
    background: linear-gradient(135deg, #16a34a 0%, #2563eb 100%);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

.focus-ring:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ===== INSPIRATION SECTION STYLES ===== */
.inspiration-section {
    padding: 3rem 0 4rem;
    background: white;
    position: relative;
    overflow: hidden;
}

.inspiration-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Background Elements */
.bg-quote {
    position: absolute;
    font-family: Georgia, serif;
    font-size: 6rem;
    pointer-events: none;
    user-select: none;
    opacity: 0.08;
    z-index: 1;
    color: var(--primary);
}

.bg-quote--left {
    top: 1.25rem;
    left: 1.25rem;
}

.bg-quote--right {
    bottom: 1.25rem;
    right: 1.25rem;
    transform: rotate(180deg);
    color: var(--secondary);
}

.bg-shape {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.bg-shape--1 {
    background: var(--gradient);
    top: -9rem;
    left: -9rem;
}

.bg-shape--2 {
    background: linear-gradient(135deg, var(--secondary) 0%, #8b5cf6 100%);
    bottom: -9rem;
    right: -9rem;
    animation-delay: 3s;
}

/* Cards Layout */
.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 1.5rem 1.5rem 0 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Quote Card */
.quote-card {
    padding: 2rem;
    text-align: center;
}

.quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quote-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.quote-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-style: normal;
}

.quote-author-name {
    color: var(--text-primary);
    font-weight: 600;
}

.quote-decoration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--gradient);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.quote-label {
    font-size: 0.75rem;
    color: var(--text-primary);
    /* use small-caps for a refined typographic feel */
    font-variant: small-caps;
    text-transform: none;
    letter-spacing: 0.12em;
    display: inline-block;
    background: rgba(17, 24, 39, 0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.quote-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

/* Follow Card */
.follow-card {
    padding: 2rem;
    text-align: center;
}

.follow-title {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.follow-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    color: white;
    min-width: 140px;
    justify-content: center;
}

.social-link::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;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
}

.social-link:hover::before {
    left: 100%;
}

.social-link--twitter {
    background: #1a1a1a;
}

.social-link--linkedin {
    background: #0077b5;
}

.social-link--github {
    background: #333;
}

.social-link--medium {
    background: #000;
}

.social-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.follow-note {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== WORK & INSIGHTS SECTION STYLES ===== */
.gradient-ai {
    background: var(--gradient-primary);
}

.tech-tag {
    background: rgba(0, 185, 107, 0.1);
    color: var(--color-primary);
    font-weight: 500;
}

.blog-tag {
    background: rgba(0, 136, 204, 0.1);
    color: var(--color-secondary);
    font-weight: 500;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--footer-gradient);
    color: white;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.footer-description {
    color: #e5e7eb;
    margin-bottom: 1rem;
    max-width: 350px;
    font-size: 0.875rem;
    line-height: 1.5;
}

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

.footer-social-link {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.footer-section h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    /* allow wrapping on narrow widths */
}

.footer-links li {
    margin-bottom: 0;
    /* horizontal layout removes vertical spacing */
}

/* Small screens: revert to vertical stack for better readability */
@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-bottom p {
    color: #e5e7eb;
}

/* Elegant footer credit */
.footer-credit {
    font-family: 'Playfair Display', serif;
    /* Playfair already loaded in index.html */
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #d1d5db;
    /* slightly lighter gray */
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    margin: 0;
    line-height: 1.4;
}

.footer-link,
.footer-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    .footer-credit {
        font-size: 16px;
    }
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.back-to-top {
    background: none;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #ffffff;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .navbar-mobile-menu-toggle {
        display: flex;
    }

    /* Hide social links and contact button on mobile */
    .navbar-social {
        display: none !important;
    }

    .navbar-cta-button {
        display: none !important;
    }

    .navbar-mobile-menu-toggle.active .navbar-hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-mobile-menu-toggle.active .navbar-hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .navbar-mobile-menu-toggle.active .navbar-hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
    .navbar-social {
        display: none !important;
    }

    .navbar-cta-button {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .navbar-container {
        padding: 0 2rem;
    }

    .quote-card,
    .follow-card {
        padding: 3rem;
    }

    .quote-attribution {
        flex-direction: row;
        justify-content: center;
    }

    .social-links {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }

    .navbar-container {
        padding: 0 2.5rem;
    }

    /* Keep footer bottom centered on large screens as well */
    .footer-bottom {
        flex-direction: row;
        justify-content: center;
        /* center items horizontally */
        text-align: center;
    }

    .footer-bottom .footer-credit {
        margin-right: 1rem;
        /* small gap between credit and button */
    }
}

@media (max-width: 640px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Performance Optimizations */
.card,
.social-link,
.footer-social-link {
    will-change: transform;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}