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

:root {
    --bg: #f8f9fa;
    --text: #333;
    --muted: #666;
    --primary: #2c3e50;
    --primary-90: rgba(44, 62, 80, 0.95);
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --card: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

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

header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: 60px;
    transition: transform 0.3s ease;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-tagline {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a[aria-current="page"] {
    color: var(--secondary);
}

main {
    margin-top: 80px;
}

/* Improve anchor scrolling with fixed header */
section { scroll-margin-top: 100px; }

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

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

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.hero-text h1,
.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
}

.about {
    padding: 4rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--muted);
}

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

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
}

.experience-highlight {
    background: var(--secondary);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.experience-highlight p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.experience-highlight p:last-child {
    margin-bottom: 0;
}

.contact {
    padding: 4rem 0;
    background: #ecf0f1;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--muted);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.submit-btn {
    width: 100%;
    background: var(--success);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #219a52;
}

.contact-info {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.troubleshooting {
    padding: 4rem 0;
    background: #f8f9fa;
}

.troubleshooting h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.troubleshooting > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--muted);
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.issue-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.issue-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.issue-category ul {
    list-style: none;
    padding: 0;
}

.issue-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.issue-category li:last-child {
    border-bottom: none;
}

.issue-category li strong {
    color: var(--accent);
    font-weight: 600;
}

.case-studies {
    margin: 4rem 0;
}

.case-studies h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.case-study {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.case-study h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.case-study p {
    margin-bottom: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.code-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.code-before, .code-after {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.code-before h5, .code-after h5 {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.code-before h5 {
    background: #f8d7da;
    color: #721c24;
}

.code-after h5 {
    background: #d4edda;
    color: #155724;
}

.code-example pre {
    margin: 0;
    padding: 1rem;
    background: var(--primary);
    color: #ecf0f1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Courier New', monospace;
}

.troubleshooting-cta {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 3rem;
}

.troubleshooting-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.troubleshooting-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        color: #fff;
        background: transparent;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 6px;
        padding: .5rem .75rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .nav-links.open {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .services-grid,
    .issues-grid {
        grid-template-columns: 1fr;
    }
    
    .about h2,
    .contact h2,
    .troubleshooting h2 {
        font-size: 2rem;
    }
    
    .code-example {
        grid-template-columns: 1fr;
    }
    
    .troubleshooting-cta h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .contact-form,
    .contact-info {
        margin: 0 15px 2rem;
    }
}

/* Accessibility & helpers */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    color: #000;
    padding: .5rem .75rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

.form-message { margin: 1rem 0; padding: 1rem; border-radius: 5px; border: 1px solid transparent; font-weight: 600; }
.form-message.success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.field-error { color: #c0392b; font-size: .9rem; margin-top: .5rem; }