/* Base Styles & Typography */
:root {
    --color-dark: #20232A; /* Soft Charcoal Gray - Main Background */
    --color-primary: #F0F2F5; /* Off-white/Light Gray for text */
    --color-secondary: #A0AEC0; /* Muted gray for subtle text/borders */
    --color-accent: #DD7C3A; /* NEW ACCENT: Earthy Copper/Burnt Orange */
    --color-accent-shadow: rgba(221, 124, 58, 0.4); /* Shadow color */
    --color-card-bg: #282C34; /* Slightly lighter dark for card backgrounds */
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-primary);
    background-color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Header/Nav Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(32, 35, 42, 0.95); /* Semi-transparent dark */
    border-bottom: 1px solid #3A404D; /* Subtle dark border */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo img {
    height: 35px; /* Adjust based on your logo size */
    width: auto;
    display: block;
}


.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 600;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 3px;
}

.cta-link {
    background-color: var(--color-accent);
    color: var(--color-dark) !important; /* Dark text on copper button */
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border-bottom: none !important;
}

.cta-link:hover {
    background-color: #CC6B31; /* Slightly darker copper on hover */
    transform: translateY(-2px);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Sections (General & Page-Specific) */
.hero-section, .page-hero {
    position: relative;
    padding: 8rem 5%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-card-bg); /* Use card background for contrast */
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated background grid */
    background: radial-gradient(circle at center, rgba(221, 124, 58, 0.05) 0%, transparent 70%),
                url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%234A5568" stroke-width="0.1" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>') repeat;
    background-size: cover, 20px 20px;
    opacity: 0.4;
    z-index: 1;
}

.hero-section * , .page-hero * {
    z-index: 2;
}

.hero-section h1, .page-hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 1000px;
    /* Updated gradient (light text to copper accent) */
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .subtitle, .page-hero .subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--color-accent);
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    border: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-accent-shadow);
    text-decoration: none;
}

/* General Section Styling */
.section {
    padding: 5rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--color-accent);
    font-weight: 800;
}

.section p {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Card Layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card, .value-card, .info-card, .team-card {
    background-color: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #3A404D; /* Subtle card border */
    transition: border-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card:hover, .value-card:hover, .info-card:hover, .team-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(221, 124, 58, 0.15);
}

.service-card.large {
    grid-column: span 1;
    text-align: left;
}

.service-card.large ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.service-card.large ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.service-card.large ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}


.service-card .icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    text-align: center;
}
.service-card.large .icon {
    text-align: left;
}


.service-card h3, .value-card h3, .info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 700;
}

.service-card p, .value-card p, .info-card p, .team-card p {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.text-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
    font-size: 1.1rem;
}

.text-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--color-card-bg);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.testimonial {
    font-style: italic;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    color: var(--color-primary);
    line-height: 1.7;
    text-align: center;
}

.testimonial cite {
    display: block;
    font-style: normal;
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* About Page Specific */
.about-content {
    text-align: left;
}
.about-content p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: center;
    padding: 2rem;
}
.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-accent);
}
.value-card p {
    font-size: 0.95rem;
    color: var(--color-secondary);
}

/* CENTERING CONTAINER FOR SINGLE CEO CARD */
.single-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Enforce the desired width for the single CEO card */
.single-card-container .team-card {
    width: 300px;
    max-width: 90%;
    margin: 0;
}

.team-cards {
    display: block;
}

.team-card {
    text-align: center;
    padding: 2rem;
}

/* FIX: Centering the Image */
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-accent);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.team-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.team-card .title {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Page Specific */
.contact-form-section {
    background-color: var(--color-card-bg);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-dark); /* Main background for form block */
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #3A404D;
    box-shadow: 0 5px 25px rgba(221, 124, 58, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #282C34; /* Card background for inputs */
    border: 1px solid #3A404D;
    border-radius: 6px;
    color: var(--color-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(221, 124, 58, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: auto;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.form-note {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-top: 2rem;
    text-align: center;
}

.info-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin: 0 auto 3rem;
}
.info-card {
    text-align: center;
    padding: 2rem;
}
.info-card p {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
.info-card a {
    color: var(--color-accent);
    font-weight: 600;
}

/* Footer Styling */
.footer {
    padding: 3rem 5%;
    border-top: 1px solid #3A404D;
    text-align: center;
    color: var(--color-secondary);
    background-color: var(--color-card-bg);
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-secondary);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* --- Optional Fade-in Animation Styles --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}
/* -------------------------------------- */


/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-section h1, .page-hero h1 {
        font-size: 3rem;
    }
    .hero-section .subtitle, .page-hero .subtitle {
        font-size: 1.3rem;
    }
    .section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-dark); /* Soft dark background for mobile menu */
        border-top: 1px solid #3A404D;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    .nav.open {
        display: flex;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 0.8rem 0;
    }
    .nav-links li a {
        font-size: 1.1rem;
    }
    .menu-toggle {
        display: block;
    }

    .hero-section, .page-hero {
        padding: 6rem 5%;
        min-height: 60vh;
    }
    .hero-section h1, .page-hero h1 {
        font-size: 2.5rem;
    }
    .hero-section .subtitle, .page-hero .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .section {
        padding: 4rem 5%;
    }
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    .card-container {
        grid-template-columns: 1fr;
    }
    .service-card, .value-card, .info-card, .team-card {
        padding: 2rem;
    }
    .service-card .icon {
        font-size: 3rem;
    }
    .testimonial {
        font-size: 1.1rem;
    }
    .single-card-container .team-card {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 5%;
    }
    .logo a {
        font-size: 1.5rem;
    }
    .menu-toggle {
        font-size: 1.8rem;
    }
    .hero-section h1, .page-hero h1 {
        font-size: 2rem;
    }
    .hero-section .subtitle, .page-hero .subtitle {
        font-size: 1rem;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .footer-links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    .contact-form {
        padding: 2rem;
    }
    .form-group label {
        font-size: 0.9rem;
    }
    .form-group input, .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}