/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fluid typography */
html {
    font-size: 16px;
}
@media (min-width: 1200px) {
    html { font-size: 18px; }
}
@media (max-width: 480px) {
    html { font-size: 14px; }
}

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.nav-toggle:focus {
    outline: 2px solid #2563eb;
    border-radius: 6px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.btn-primary {
    background: #2563eb;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

/* Hero layout: place text and image side-by-side on larger screens */
/* Hero: side-by-side layout on wide screens, stacked on small screens */
.hero-container {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 45%);
    align-items: center;
    gap: 2rem;
}

.img-container {
    display: flex;
    justify-content: center; /* center image in its cell */
    align-items: center;
    width: 100%;
}

.hero-img {
    width: 100%;
    max-width: 420px; /* reasonable max so it doesn't dominate */
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    object-fit: cover;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 2.5vw + 1.5rem, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 52rem;
    line-height: 1.8;
}

.btn-large {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Ensure hero text is left-aligned on larger screens */
@media (min-width: 900px) {
    .hero-content { text-align: left; }
    .hero-content p { margin-left: 0; margin-right: 0; }
}

/* Tighter padding and stacking for small screens handled below */

/* About Section */
.about {
    padding: 60px 0; /* reduced vertical space */
    background: #f9fafb;
}

/* About section responsive layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px; /* smaller image column for better balance */
    gap: 2rem;
    align-items: center;
}

.about-media {
    display: flex;
    justify-content: center;
}

.about-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 1.2rem + 2vw, 2.2rem);
    margin-bottom: 2rem;
    color: #1f2937;
}

.about-content {
    max-width: 640px;
    margin: 0; /* let grid control alignment */
    text-align: center;
}

/* Left-align about text on larger screens for better readability */
@media (min-width: 900px) {
    .about-content { text-align: left; }
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
}

.skills {
    max-width: 900px;
    margin: 0 auto;
}

.skills h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

/* Why Choose Us Section */
.why-choose {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f9fafb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #4b5563;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.contact-info p {
    color: #4b5563;
    line-height: 1.8;
}

.alt-contact {
    margin-top: 1rem;
    background: #f3f4f6; /* light gray */
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: inline-block;
    max-width: 100%;
}

.alt-contact p { margin: 0.25rem 0; }

.alt-contact-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.alt-contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.btn-submit {
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hide long nav on smaller screens and show toggle */
@media (max-width: 980px) {
    .nav-toggle { display: inline-block; }
    .nav-links { position: absolute; right: 20px; top: 72px; background: white; padding: 1rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); flex-direction: column; align-items: flex-start; gap: 0.75rem; display: none; min-width: 200px; }
    .nav-links.open { display: flex; }
}

/* Improve container spacing on small devices */
@media (max-width: 600px) {
    .container { padding: 0 14px; }
    .hero { padding: 60px 0; }
    .section-title { margin-bottom: 1.5rem; }
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Stack hero columns on small screens and center image */
    .hero-container {
        grid-template-columns: 1fr;
    }

    .img-container {
        margin-top: 1.5rem;
        justify-content: center;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Stack about content and show image after the text */
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-content { order: 0; }
    .about-media { order: 1; margin-top: 1rem; }

    /* Make alt contact full width on small screens */
    .alt-contact { display: block; padding: 1rem; }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}