/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f4f4f4;
    --dark-color: #333;
    --light-color: #fff;
    --accent-color: #007bff;
    --font-family: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h2 { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

.section {
    padding: 4rem 0;
}

.section-grey {
    background-color: var(--secondary-color);
}

.cta-button, .submit-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover, .submit-button:hover {
    background: var(--primary-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    max-height: 40px;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1500x800.png?text=Mobile+Technology') no-repeat center center/cover;
    height: 90vh;
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card img {
    max-width: 80px;
    margin-bottom: 1rem;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--light-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item h4, .portfolio-item p {
    padding: 0 1rem;
}

.portfolio-item p {
    padding-bottom: 1rem;
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--light-color);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- Responsive Design --- */
@media(max-width: 992px) {
    .services-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero { height: 60vh; }
    .hero p { font-size: 1.2rem; }

    header .container {
        flex-direction: column;
    }
    header nav {
        margin-top: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
    }
    footer .social-links {
        margin-top: 1rem;
    }
}