/* Custom Fonts - Example: Import a clean Google Font like 'Inter' */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* --- General Reset & Variables --- */
:root {
    --color-primary: #007bff; /* Corporate Blue */
    --color-secondary: #f8f9fa; /* Light Gray/Off-White */
    --color-text: #343a40; /* Dark Text */
    --color-light: #ffffff;
    --color-dark: #212529;
    --spacing-lg: 80px;
    --spacing-md: 40px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

h2 strong {
    color: var(--color-primary);
}

/* --- Buttons (CTA) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* --- 1. Header & Navigation --- */
.header {
    background-color: var(--color-light);
    border-bottom: 1px solid var(--color-secondary);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo strong {
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 15px;
    display: block;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

.nav-links .cta-link {
    font-weight: 600;
    color: var(--color-primary);
}

/* Hero Section (Split Design) */
.hero-section {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: var(--spacing-lg) 20px;
}

.hero-content {
    flex: 1;
    padding-right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-image {
    flex: 1;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* Soft-rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* --- 2. Services Section --- */
.services-section {
    background-color: var(--color-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- 3. About Us & Counters --- */
.about-section {
    background-color: var(--color-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
}

.stat-item .counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: 5px;
}


/* --- 4. Portfolio Section --- */
.portfolio-section {
    background-color: var(--color-secondary);
}

.portfolio-item {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    text-align: left;
    background-color: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.port-image {
    flex: 1;
    min-width: 300px;
}

.port-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.port-details {
    flex: 2;
    padding: 30px;
}

.port-details h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.tech-tags {
    display: block;
    margin-top: 15px;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- 5. Contact Section --- */
.contact-section {
    background-color: var(--color-light);
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.direct-contact {
    margin-top: 25px;
    font-size: 1rem;
    color: var(--color-text);
}

.direct-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}


/* --- 6. Footer --- */
footer {
    background-color: var(--color-dark);
    color: var(--color-secondary);
    padding: var(--spacing-md) 0 10px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.footer-col {
    text-align: left;
}

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    border-top: 1px solid #343a40;
    padding-top: 10px;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .portfolio-item {
        flex-direction: column;
    }
    
    .portfolio-item .port-image {
        min-height: 250px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col {
        text-align: center;
    }
}