/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF; /* A vibrant blue for accents and CTAs */
    --secondary-color: #0056b3; /* A darker blue for hover states */
    --dark-color: #1a202c;    /* A dark charcoal for backgrounds/text */
    --light-color: #f8f9fa;   /* A very light grey for alternate sections */
    --text-color: #333;       /* Standard text color */
    --white-color: #ffffff;
    --grey-color: #e9ecef;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }

section {
    padding: 60px 0;
}

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-link img {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    background-color: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
}

#hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.service-card h3 {
    margin-bottom: 0.5rem;
}

/* --- Technologies Section --- */
#tech {
    background-color: var(--light-color);
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.tech-logo {
    background: var(--white-color);
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-color);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    font-size: 8rem;
    color: var(--grey-color);
    text-align: center;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--light-color);
    text-align: center;
}

#contact h2, #contact > .container > p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    background: var(--white-color);
    display: inline-block; /* Allows the div to be centered */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left; /* Align text inside the box to the left */
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px; /* Ensures consistent alignment */
    text-align: center;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
    text-align: center; /* Center the social links inside the box */
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin: 0 10px; /* Adjust spacing */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    header .container {
        position: relative;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }
    nav .nav-links.active {
        display: flex;
    }
    nav li {
        margin: 0;
        width: 100%;
    }
    nav a {
        display: block;
        padding: 15px;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: none; /* Hide placeholder image on mobile */
    }

    .contact-details {
      padding: 30px; /* Adjust padding for smaller screens */
    }
}
