/* --- Basic Setup & Variables --- */
:root {
    --primary-color: #00A3FF; /* A vibrant blue for accents */
    --secondary-color: #111827; /* A very dark blue, almost black */
    --bg-color: #F9FAFB; /* Light gray for alternating sections */
    --text-color: #6B7280; /* A soft gray for paragraph text */
    --heading-color: #111827;
    --white-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 6rem 2rem;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#header.header-scrolled {
    background-color: rgba(17, 24, 39, 0.85); /* Semi-transparent dark bg */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    padding: 1.5rem 2rem;
    transition: padding 0.4s ease;
}

#header.header-scrolled nav {
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.logo img { height: 40px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--primary-color);
}

.hamburger { display: none; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7));
    padding: 0 1rem;
}
.hero-logo { max-height: 100px; margin-bottom: 2rem; }
.hero-content h1 { font-size: 3.5rem; color: var(--white-color); }
.hero-content p { font-size: 1.2rem; max-width: 700px; margin: 1rem auto 2rem auto; }
.cta-button { display: inline-block; padding: 12px 30px; background: var(--primary-color); color: var(--white-color); text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease, transform 0.3s ease; font-weight: bold; }
.cta-button:hover { background: #007acc; transform: translateY(-3px); }

/* --- About & Careers Sections --- */
#about p, #careers p { text-align: center; max-width: 800px; margin: auto; font-size: 1.1rem; }
#careers { text-align: center; }

/* --- Services Section --- */
#services { background: var(--bg-color); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--white-color); padding: 2.5rem 2rem; text-align: center; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.service-card h3 { color: var(--heading-color); }

/* --- Achievements / Counter Section --- */
.achievements-section { background: var(--secondary-color); color: var(--white-color); padding: 6rem 2rem; }
.achievements-section h2 { color: var(--white-color); }
.counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; text-align: center; }
.counter-item h3 { font-size: 3.5rem; color: var(--primary-color); }
.counter-item p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); }

/* --- Contact Section --- */
#contact { background-color: var(--bg-color); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.contact-form button { width: 100%; border: none; cursor: pointer; } /* Use CTA button styles */
.contact-info p { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info i { font-size: 1.2rem; color: var(--primary-color); }

/* --- Footer --- */
footer { background: var(--secondary-color); color: rgba(255, 255, 255, 0.7); text-align: center; padding: 3rem 1rem; }
.social-links { margin-bottom: 1.5rem; }
.social-links a { color: var(--white-color); margin: 0 12px; text-decoration: none; font-size: 1.5rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-color); }

/* --- Scroll Animation --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media(max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media(max-width: 768px) {
    .logo span { display: none; } /* Hide text logo on smaller screens */
    .nav-links { position: fixed; right: 0; top: 0; background: var(--secondary-color); height: 100vh; width: 70%; flex-direction: column; align-items: center; justify-content: center; transform: translateX(100%); transition: transform 0.5s ease-in-out; }
    .nav-links.nav-active { transform: translateX(0%); }
    .nav-links li { padding: 1rem 0; }
    .hamburger { display: block; z-index: 1001; cursor: pointer; }
    .hamburger .line { width: 25px; height: 3px; background: var(--white-color); margin: 5px; transition: all 0.3s ease; }
    .hamburger.toggle .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line:nth-child(2) { opacity: 0; }
    .hamburger.toggle .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}
/* --- Contact Form Button Styling --- */
/* This rule targets the <button> specifically inside the element with the class 'contact-form' */

.contact-form button {
    /* Basic styling copied from .cta-button */
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: bold;
    border-radius: 5px;
    margin-top: 1rem;
    
    /* Transitions for smooth hover effects */
    transition: background-color 0.3s ease, transform 0.3s ease;

    /* Specific properties for a <button> element */
    border: none; /* Removes the default browser border on buttons */
    cursor: pointer; /* Shows a pointer hand icon on hover */
    text-decoration: none; /* Ensures no underline appears */
    font-family: inherit; /* Makes the button use the same font as the rest of the site */
    font-size: 1rem; /* Sets a clear font size */
}

/* Hover effect for the contact form button */
.contact-form button:hover {
    background: #0056b3; /* A slightly darker shade of the primary color */
    transform: translateY(-3px); /* Lifts the button slightly on hover */
}