/* CSS Variables - Design System */
:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 263 70% 50%;
    --primary-foreground: 0 0% 98%;
    --primary-glow: 263 70% 65%;
    --primary-dark: 263 70% 35%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 263 70% 50%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 263 70% 50%;
    --radius: 0.75rem;

    /* Custom gradients and shadows */
    --gradient-primary: linear-gradient(135deg, hsl(263 70% 50%) 0%, hsl(280 70% 60%) 50%, hsl(300 70% 50%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(240 5% 96%) 0%, hsl(263 10% 95%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(263 70% 50% / 0.1) 0%, hsl(280 70% 60% / 0.1) 100%);
    --shadow-glow: 0 0 50px hsl(263 70% 50% / 0.2);
    --shadow-soft: 0 10px 30px hsl(0 0% 0% / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --gradient-secondary: linear-gradient(135deg, hsl(240 10% 5%) 0%, hsl(263 20% 10%) 100%);
    --shadow-glow: 0 0 50px hsl(263 70% 50% / 0.3);
    --shadow-soft: 0 10px 30px hsl(0 0% 0% / 0.3);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid system */
.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)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-primary { color: hsl(var(--primary)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-card { background-color: hsl(var(--card)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-border { border-color: hsl(var(--border)); }

/* Gradients */
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Shadows */
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-8 { top: 2rem; }
.top-20 { top: 5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-20 { bottom: 5rem; }
.left-8 { left: 2rem; }
.left-20 { left: 5rem; }
.right-8 { right: 2rem; }
.right-20 { right: 5rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; }
.w-96 { width: 24rem; }
.h-full { height: 100%; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Border radius */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* Transforms */
.rotate-45 { transform: rotate(45deg); }
.translate-x-1 { transform: translateX(0.25rem); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.scale-110 { transform: scale(1.1); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Opacity and blur */
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.blur-sm { filter: blur(4px); }
.blur-md { filter: blur(12px); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Transitions */
.transition-all { transition: all 0.15s ease-in-out; }
.transition-colors { transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out; }
.transition-transform { transition: transform 0.15s ease-in-out; }
.transition-opacity { transition: opacity 0.15s ease-in-out; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Other utilities */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.hidden { display: none; }
.block { display: block; }

/* Mobile navigation improvements */
@media (max-width: 767px) {
    .header {
        padding: 0.5rem 0;
    }

    .header .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .mobile-menu {
        background: hsl(var(--background) / 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid hsl(var(--border));
        padding: 1rem;
    }

    .mobile-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid hsl(var(--border) / 0.3);
        display: block;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background: hsl(var(--accent));
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

/* Input */
.input {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Textarea */
.textarea {
    display: flex;
    min-height: 6rem;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition-smooth);
    resize: vertical;
}

.textarea:focus {
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Form styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-label.required::after {
    content: " *";
    color: hsl(var(--destructive));
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.form-error {
    font-size: 0.75rem;
    color: hsl(var(--destructive));
    margin-top: 0.25rem;
}

.form-success {
    display: none;
    padding: 1rem;
    background: hsl(120 50% 95%);
    border: 1px solid hsl(120 50% 80%);
    border-radius: var(--radius);
    color: hsl(120 50% 30%);
    margin-top: 1rem;
}

.dark .form-success {
    background: hsl(120 50% 10%);
    border-color: hsl(120 50% 30%);
    color: hsl(120 50% 70%);
}

/* Mobile form adjustments */
@media (max-width: 767px) {
    .form-grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Component-specific styles */

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    height: 70px;
    width: auto;
    margin-right: 20px;
}

.header .logo img {
    height: 100%;
    width: auto;
}

.header nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.header nav a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.header nav a:hover {
    color: hsl(var(--primary));
}

.header .desktop-buttons {
    display: none;
    align-items: center;
    gap: 1rem;
}

.header .mobile-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
    flex-direction: column;
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

.mobile-menu a:hover {
    color: hsl(var(--primary));
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
}

.hero-decorative-1 {
    position: absolute;
    top: 5rem;
    right: 5rem;
    width: 16rem;
    height: 16rem;
    background: var(--gradient-primary);
    border-radius: 9999px;
    opacity: 0.2;
    filter: blur(64px);
}

.hero-decorative-2 {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    width: 24rem;
    height: 24rem;
    background: var(--gradient-primary);
    border-radius: 9999px;
    opacity: 0.1;
    filter: blur(64px);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-visual {
    width: 100%;
    background: var(--gradient-accent);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.hero-visual-circle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 6rem;
    height: 6rem;
    border: 1px solid hsl(var(--primary));
    border-radius: 9999px;
}

.hero-visual-square {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 4rem;
    height: 4rem;
    background-color: hsl(var(--primary) / 0.3);
    border-radius: 0.5rem;
    transform: rotate(45deg);
}

.hero-visual-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.75rem;
    font-weight: 700;
    color: hsl(var(--primary) / 0.3);
}

/* About section */
.about {
    padding: 5rem 0;
}

.about-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--gradient-accent);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: default;
}

.about-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-glow);
}

.about-card-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.about-card:hover .about-card-icon {
    transform: scale(1.1);
}

/* Portfolio section */
.portfolio {
    padding: 5rem 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-glow);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 500ms ease;
}

.project-card:hover::after {
    opacity: 0.1;
}

/* Services section */
.services {
    padding: 5rem 0;
    background: var(--gradient-accent);
}

.service-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: hsl(var(--card) / 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-glow);
}

.service-card-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--gradient-secondary);
    border-top: 1px solid hsl(var(--border));
    padding: 4rem 0;
}

.footer .logo {
    height: 60px;
    width: auto;
}

.footer .logo img {
    height: 100%;
    width: auto;
}

.footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Theme toggle */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-icon {
    width: 1rem;
    height: 1rem;
    transition: var(--transition-smooth);
}

.dark .sun-icon {
    transform: rotate(-90deg) scale(0);
}

.dark .moon-icon {
    transform: rotate(0deg) scale(1);
}

.sun-icon {
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    position: absolute;
    transform: rotate(90deg) scale(0);
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Process cards specific styles (for thank you page) */
.process-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
}

.process-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-glow);
}

.process-number {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.process-features {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.process-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.process-features li:before {
    content: "✓";
    color: hsl(var(--primary));
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* Success section (for thank you page) */
.success-section {
    background: var(--gradient-accent);
    padding: 4rem 0;
    text-align: center;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design */

/* Mobile-first responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .header .logo {
        height: 56px;
        width: auto;
    }

    .footer .logo {
        height: 50px;
        width: auto;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-decorative-1 {
        display: none;
    }

    .hero-decorative-2 {
        display: none;
    }

    /* Improve mobile typography */
    .text-5xl {
        font-size: 3.2rem;
        line-height: 1.2;
    }

    .text-xl {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .text-4xl {
        font-size: 2.3rem;
        line-height: 1.3;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 1.4;
    }

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

    /* Mobile stats layout */
    .flex-sm-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* Stats grid for mobile */
    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        text-align: center;
    }

    .mobile-stats-grid > div {
        padding: 0.5rem;
    }

    .mobile-stats-grid .text-3xl {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .mobile-stats-grid .text-sm {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Mobile cards adjustments */
    .about-card {
        padding: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .project-card .p-8 {
        padding: 1.5rem;
    }

    /* Mobile button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Mobile footer adjustments */
    .footer {
        padding: 2rem 0;
    }

    .grid-md-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .grid-lg-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile spacing adjustments */
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

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

    .gap-8 {
        gap: 1rem;
    }

    .gap-12 {
        gap: 2rem;
    }

    .gap-16 {
        gap: 2rem;
    }

    .process-card {
        padding: 1.5rem;
    }

    .process-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

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

    .hero {
        padding-top: 140px;
    }

    .header nav {
        display: flex;
    }

    .header .desktop-buttons {
        display: flex;
    }

    .header .mobile-buttons {
        display: none;
    }

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

    .text-md-5xl {
        font-size: 3rem;
        line-height: 1;
    }

    .text-md-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .flex-sm-row {
        flex-direction: row;
    }

    .mobile-stats-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .mobile-stats-grid > div {
        padding: 0;
        text-align: center;
    }

    .mobile-stats-grid .text-3xl {
        font-size: 1.875rem;
    }

    .mobile-stats-grid .text-sm {
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 60px;
    }

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

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

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

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

    .text-lg-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }

    .text-lg-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

/* Logo switching for dark mode */
.logo-light { display: block; }
.logo-dark { display: none; }

.dark .logo-light { display: none; }
.dark .logo-dark { display: block; }

@media (min-width: 768px) {
    .md-block { display: block; }
    .md-flex { display: flex; }
    .md-hidden { display: none; }
}