/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors - Professional Palette */
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-color: #374151;
    --text-muted: #6b7280;
    --background-color: #ffffff;
    --gray-light: #f9fafb;
    --gray-medium: #e5e7eb;
    --gray-dark: #4b5563;
    --border-color: #e5e7eb;
    --card-background: #ffffff;
    --footer-background: #f9fafb;
    --nav-background: rgba(255, 255, 255, 0.98);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-speed: 0.2s;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #111827;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --text-color: #f9fafb;
    --text-muted: #d1d5db;
    --background-color: #111827;
    --gray-light: #1f2937;
    --gray-medium: #374151;
    --gray-dark: #9ca3af;
    --border-color: #374151;
    --card-background: #1f2937;
    --footer-background: #1f2937;
    --nav-background: rgba(17, 24, 39, 0.98);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Optimize paint operations */
body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    transition: none;
    will-change: background-color, color;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* Optimize animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.animate-text.loaded {
    animation: fadeInUp 0.3s ease forwards;
}

.animate-text-delay {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.animate-text-delay.loaded {
    animation: fadeInUp 0.3s ease forwards 0.1s;
}

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

/* Optimize scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    z-index: 1;
    pointer-events: all;
    padding: 0.5rem;
    will-change: transform, opacity;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Optimize service cards */
.services {
    padding: 6rem 5%;
    background-color: var(--gray-light);
    position: relative;
    z-index: 1;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    align-items: stretch;
}

.service-card {
    background: var(--card-background);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-speed) ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
    border: none;
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    z-index: 1;
    justify-content: flex-start;
    box-sizing: border-box;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
    z-index: 2;
    border-radius: 5px 5px 0 0;
}

.service-card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-xl);
}

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

/* Optimize icons */
.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-speed) ease;
    will-change: background-color, transform;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 16px;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
    will-change: color, transform;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-weight: 700;
    width: 100%;
    text-align: center;
    letter-spacing: -0.025em;
    position: relative;
}

.service-card p {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    flex-grow: 1;
    text-align: center;
    max-width: 100%;
    font-size: 1rem;
    font-weight: 400;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

[data-theme="dark"] .service-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .service-icon {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

[data-theme="dark"] .service-icon::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
}

[data-theme="dark"] .service-icon i {
    color: var(--secondary-color);
}

[data-theme="dark"] .service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

[data-theme="dark"] .service-card:hover .service-icon i {
    color: var(--secondary-color);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .service-card::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 1;
}

/* Section Titles */
.section-title {
    position: relative;
    display: block;
    text-align: center;
    width: fit-content;
    margin: 0 auto 3rem auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    -webkit-tap-highlight-color: transparent;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

@media (hover: hover) {
    .section-title:hover::after {
        width: 100%;
    }
}

/* For touch devices */
.section-title:active::after {
    width: 100%;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Contact section specific title styling */
.contact .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 4rem;
}

.contact .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact .section-title:hover::after {
    width: 100%;
}

/* Dark mode adjustments */
[data-theme="dark"] .contact .section-title::after {
    background: var(--primary-color);
}

/* Privacy Policy Title */
.privacy-policy .section-title {
    display: block;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.privacy-policy .section-title::after {
    display: none;
}

/* Optimize form elements */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Optimize buttons */
.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-button i {
    transition: transform var(--transition-speed) ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

/* Dark mode button adjustments */
[data-theme="dark"] .submit-button {
    background: var(--primary-color);
    color: var(--secondary-color);
}

[data-theme="dark"] .submit-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Success Message Animation */
.success-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    animation: slideIn 0.5s ease forwards;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Header and Navigation */
header {
    background-color: var(--nav-background);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
}

header.scrolled {
    background-color: var(--nav-background);
    backdrop-filter: blur(12px);
    box-shadow: none !important;
    transition: none;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    gap: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: -0.025em;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.theme-toggle-wrapper {
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.025em;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    text-align: center;
    max-width: 100%;
    color: var(--primary-color);
}

.hero h1.loaded {
    animation: fadeInUp 0.3s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    text-align: center;
    max-width: 100%;
    font-weight: 500;
}

.hero-subtitle.loaded {
    animation: fadeInUp 0.3s ease forwards 0.1s;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    text-align: center;
    line-height: 1.6;
}

.hero-description.loaded {
    animation: fadeInUp 0.3s ease forwards 0.2s;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.025em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cta-button:active {
    transform: translateY(0);
}

/* About Section */
.about {
    padding: 6rem 2rem;
    position: relative;
    background-color: var(--background-color);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about h2.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.7;
    padding: 0 2rem;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: left;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-hover));
    transform: scaleY(0);
    transition: transform var(--transition-speed) ease;
}

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

.feature:hover::before {
    transform: scaleY(1);
}

.feature i {
    color: var(--accent-color);
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
}

.feature span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Dark mode adjustments */
[data-theme="dark"] .feature i {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .about {
        padding: 4rem 1rem;
    }

    .about-text {
        text-align: left;
        padding: 0 1rem;
    }

    .about-features {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }

    .feature {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 5% 5rem;
    background-color: var(--gray-light);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--border-color);
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--accent-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.025em;
    -webkit-tap-highlight-color: transparent;
}

/* FINAL: Remove all outlines, box-shadows, and borders for .email-button only */
.email-button:focus,
.email-button:focus-visible,
.email-button:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-clip: padding-box !important;
}
.email-button::-moz-focus-inner {
    border: 0 !important;
}
.email-button {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Hide .cta-button if not in viewport (safeguard against flash) */
.cta-button:not(:hover):not(:focus):not(:active) {
    opacity: 1;
    transition: opacity 0.2s;
}

.cta-button.out-of-viewport {
    opacity: 0 !important;
    pointer-events: none !important;
}

.email-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* Dark mode adjustments */
[data-theme="dark"] .contact-content {
    background: var(--card-background);
}

[data-theme="dark"] .email-button {
    background: var(--primary-color);
    color: var(--secondary-color);
}

[data-theme="dark"] .email-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 6rem 1rem;
    }

    .contact-content {
        padding: 2rem;
    }

    .email-button {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Optimize footer */
footer {
    background: var(--footer-background);
    padding: 3rem 0 2rem;
    margin-top: 0;
    transition: none;
    will-change: background-color;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
    transition: none;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.footer-section:first-child {
    padding-left: 0;
}

.footer-section:last-child {
    padding-right: 0;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-tap-highlight-color: transparent;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* Desktop hover */
@media (hover: hover) {
    .footer-section:hover h3::after {
        width: 100%;
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    .footer-section {
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section p {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .footer-links a {
        display: block;
        width: 100%;
        padding: 0.5rem;
        margin: 0;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-info p {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }
}

/* Tablet and iPad Pro styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .footer-content {
        flex-wrap: nowrap;
        gap: 2rem;
    }
    
    .footer-section {
        flex: 1;
    }
}

/* Ensure footer sections stay in one line on larger screens */
@media screen and (min-width: 1025px) {
    .footer-content {
        flex-wrap: nowrap;
    }
}

.footer-section p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: -0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    background: var(--primary-color);
    transform: translateX(5px);
}

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

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.social-link:hover {
    color: var(--secondary-color);
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link i,
.social-link svg {
    color: var(--primary-color);
}

.social-link:hover i,
.social-link:hover svg {
    color: var(--secondary-color);
}

.x-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* Mobile Navigation */
.burger {
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    margin: 0;
    border: none;
    background: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.burger div {
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 5px);
    background-color: var(--primary-color);
}

.burger.active .line2 {
    opacity: 0;
}

.burger.active .line3 {
    transform: rotate(45deg) translate(-5px, -7px);
    background-color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .burger {
        display: block; /* Show on mobile */
    }
    
    nav {
        padding: 1rem 1.5rem;
        justify-content: space-between;
        gap: 0;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
        pointer-events: none;
    }
    
    .burger {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--nav-background);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        margin: 1.5rem 0;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .theme-toggle-wrapper {
        opacity: 0;
    }

    .theme-toggle {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 0;
        margin: 1.5rem 0;
        width: auto;
        height: auto;
    }

    .theme-toggle i {
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.3s, transform 0.3s;
        line-height: 1;
    }

    .theme-toggle:hover i {
        color: var(--accent-color);
        transform: scale(1.15) rotate(-15deg);
    }

    .burger {
        display: block;
        z-index: 1001;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 2.25rem;
        text-align: center;
    }

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

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

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

    .cta-button {
        margin: 0 auto;
    }

    .services {
        text-align: center;
        padding: 6rem 1rem;
    }

    .service-card {
        text-align: center;
        align-items: center;
    }

    .service-card p {
        text-align: center;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .expertise-item {
        justify-content: center;
        text-align: center;
    }

    .about {
        padding: 6rem 1rem;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
    }

    .feature {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .feature i {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .feature span {
        text-align: center;
    }

    .contact {
        padding: 6rem 1rem;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-section p {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .copyable-email {
        margin-left: 0;
    }

    .policy-section {
        text-align: center;
        padding: 0 1rem;
    }

    .policy-section ul {
        text-align: left;
        max-width: fit-content;
        margin: 0 auto 1rem;
    }
}

/* Animation Classes */
.nav-active {
    overflow: hidden;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section with Mouse Indicator */
.section-with-mouse {
    position: relative;
    padding-bottom: 8rem; /* Increased padding for mouse indicator */
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0 2rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--card-background);
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-hover));
    transform: scaleY(0);
    transition: transform var(--transition-speed) ease;
}

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

.expertise-item:hover::before {
    transform: scaleY(1);
}

.expertise-item i {
    font-size: 1rem;
    color: var(--accent-color);
    width: 20px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.expertise-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

@media screen and (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gray-dark);
}

.contact-info i {
    font-size: 20px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.copyable-email {
    cursor: pointer;
    margin-left: 0;
}

/* Theme Toggle */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.theme-toggle i {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.theme-toggle:hover i {
    color: var(--accent-color);
    transform: scale(1.15) rotate(-15deg);
}

/* Dark Mode Optimizations */
[data-theme="dark"] header.scrolled {
    background-color: var(--nav-background);
    backdrop-filter: blur(12px);
    box-shadow: none !important;
    transition: none;
}

[data-theme="dark"] .service-card {
    background: var(--gray-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .contact-content {
    background: var(--gray-light);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-color);
}

[data-theme="dark"] .expertise-item {
    background: var(--card-background);
}

[data-theme="dark"] .social-link {
    border-color: var(--primary-color);
}

[data-theme="dark"] footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .footer-bottom {
    border-color: var(--border-color);
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 8rem 5% 5rem;
    background-color: var(--background-color);
    transition: none;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    transition: none;
    padding: 0 1rem;
}

.privacy-policy .section-title {
    display: block;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.privacy-policy .section-title::after {
    display: none;
}

.policy-section {
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.policy-section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .privacy-policy {
        padding: 6rem 0 3rem;
    }
    
    .privacy-policy .section-title {
        font-size: 2rem;
    }

    .policy-section {
        padding: 0 1rem;
    }
}

/* Optimize animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Large Screen Optimizations (32-inch and larger) */
@media screen and (min-width: 1920px) {
    body {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
        max-width: 800px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services h2 {
        font-size: 3rem;
    }
    
    .about h2.section-title {
        font-size: 3rem;
    }
    
    .service-card {
        padding: 3rem 2.5rem;
        min-height: 320px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-card p {
        font-size: 1.1rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .expertise-grid {
        gap: 1.5rem;
    }
    
    .expertise-item {
        padding: 1.25rem;
    }
    
    .expertise-item i {
        font-size: 1.25rem;
        width: 24px;
    }
    
    .expertise-item span {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1.25rem 3rem;
        font-size: 1.1rem;
        min-width: 250px;
    }
    
    .email-button {
        padding: 1.5rem 3rem;
        font-size: 1.2rem;
        min-width: 300px;
    }
    
    .about-text p {
        font-size: 1.15rem;
    }
    
    .feature {
        padding: 1.25rem 2rem;
    }
    
    .feature i {
        font-size: 1.25rem;
    }
    
    .feature span {
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    .contact-content {
        padding: 4rem;
        max-width: 700px;
    }
    
    .contact-description {
        font-size: 1.3rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 1rem;
    }
    
    .services-grid {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .about-content {
        max-width: 1200px;
    }
    
    .hero-stats {
        gap: 3rem;
    }
    
    .about-features {
        gap: 2.5rem;
    }
}

/* Optimize print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Optimize loading performance */
.loading {
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.loaded {
    opacity: 1;
}

/* Optimize image loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimize scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

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

/* Optimize focus styles */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Optimize reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Tablet-specific styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    .footer-section h3::after {
        left: 0;
        transform: none;
    }

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

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

    .contact-info p {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0;
        max-width: 800px;
    }

    .service-card {
        min-height: 280px;
        padding: 2rem;
    }
}

/* Tablet-specific styles for services */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .services {
        padding: 6rem 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0;
        max-width: 800px;
    }

    .service-card {
        min-height: 280px;
        padding: 2rem;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        text-align: left;
    }

    .service-card p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 767px) {
    .services {
        padding: 6rem 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        max-width: 400px;
    }

    .service-card {
        min-height: 240px;
    }
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Remove transitions by default for interactive elements */
.email-button,
.cta-button,
.service-card,
.feature,
.expertise-item,
.service-link,
.social-link,
.nav-links a {
    transition: none !important;
}

/* Only apply transitions on hover/active/focus */
.email-button:hover,
.cta-button:hover,
.service-card:hover,
.feature:hover,
.expertise-item:hover,
.service-link:hover,
.social-link:hover,
.nav-links a:hover {
    transition: box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s !important;
}

.email-button:active,
.cta-button:active,
.service-card:active,
.feature:active,
.expertise-item:active,
.service-link:active,
.social-link:active,
.nav-links a:active {
    transition: box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s !important;
}

/* Remove blue outline/focus ring from nav links and CTA button */
.nav-links a:focus,
.nav-links a:focus-visible,
.nav-links a:active,
.cta-button:focus,
.cta-button:focus-visible,
.cta-button:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-clip: padding-box !important;
}
.nav-links a::-moz-focus-inner,
.cta-button::-moz-focus-inner {
    border: 0 !important;
}

/* Remove blue outline/focus ring from footer navigation links */
.footer-links a:focus,
.footer-links a:focus-visible,
.footer-links a:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background-clip: padding-box !important;
}
.footer-links a::-moz-focus-inner {
    border: 0 !important;
} 