/* ===== 1. GLOBAL & ROOT STYLES ===== */
:root {
    --light-bg: #FFFFFF;       /* Main background */
    --secondary-bg: #F9FAFB;   /* Lighter Grey for sections */
    --primary-blue: #3B82F6;   /* Logo Blue */
    --primary-orange: #F97316; /* Logo Orange */
    --text-dark: #1F2937;      /* Main text (dark) */
    --text-medium: #4B5563;   /* Medium text */
    --text-light: #6B7280;    /* Subtext */
    --border-color: #E5E7EB;  /* Light border for cards */
    --footer-dark-bg: #111827; /* NEW Dark Blue for Footer */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-medium);
    line-height: 1.7;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

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

section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--primary-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 2. NAVIGATION BAR (Used on ALL pages) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Translucent white background with blur */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px; /* Controls the height of your logo */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    background: var(--primary-orange);
    color: var(--light-bg);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--text-dark);
    color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===== 3. HERO SECTION (Homepage - Image Version) ===== */
.hero {
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: left;
    background: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), 
                url(https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-bg); /* White text on dark image */
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--primary-blue); /* Blue accent */
}

.hero-content p {
    font-size: 1.25rem;
    color: #E0E7FF; /* Light text on dark image */
    max-width: 600px;
    margin-bottom: 30px;
}

/* CTA Button Base (Shared) */
.cta-button {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--light-bg);
    background: var(--primary-blue);
    padding: 15px 30px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.cta-button.orange {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.cta-button.orange:hover {
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* ===== 4. SERVICES GRID (Homepage & Services) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1; /* Makes card equal height */
    color: var(--text-medium);
}

.card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-orange);
    margin-top: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateX(5px);
}

/* ===== 5. FEATURE/ABOUT SECTION (Homepage) ===== */
.feature-section {
    background: var(--secondary-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-medium);
}

.feature-image img {
    border-radius: 8px;
}

/* ===== 6. PROJECTS GRID (Homepage) ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* ===== 7. CTA SECTION (Homepage) ===== 
.cta-section {
    background: var(--primary-orange); Use Orange for variety 
    padding: 80px 0;  */

    .cta-section {
    background: var(--text-light); /* Use Orange for variety */
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-bg);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--light-bg);
    margin-bottom: 30px;
}

.cta-content .cta-button {
    background: var(--light-bg);
    color: var(--text-dark);
    border-color: var(--light-bg);
}
.cta-content .cta-button:hover {
    background: var(--text-dark);
    color: var(--light-bg);
    border-color: var(--text-dark);
    transform: translateY(0);
}

/* ===== 8. FOOTER SECTION (All Pages) ===== */
/* Footer is DARK BLUE as requested */
footer {
    background-color: var(--footer-dark-bg);
    padding: 80px 0 0 0;
    color: var(--light-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-bg);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.footer-col p {
    max-width: 300px;
    line-height: 1.7;
    color: var(--text-dim); /* Use light grey text */
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a,
.footer-col .contact-info li {
    text-decoration: none;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary-orange); /* Orange accent on hover */
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info i {
    color: var(--primary-blue); /* Blue icon on dark bg */
    font-size: 1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-icons a {
    display: inline-block;
    color: var(--text-dim);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
}


/* ===== 9. INTERNAL PAGE STYLES (About, Services, Contact) ===== */

/* --- Page Hero (for all internal pages) --- */
.page-hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    background: var(--secondary-bg);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 400;
}

/* --- About Page: Founder Section --- */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.founder-section img {
    border-radius: 8px;
}

.founder-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.founder-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-medium);
}

/* --- Service Page: Process Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.step {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.step h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(59, 130, 246, 0.3);
    margin-bottom: 10px;
}

/* --- Contact Page: Form & Details --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.contact-details ul {
    list-style: none;
    font-size: 1.1rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--text-medium);
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.form-group .cta-button {
    width: 100%;
    cursor: pointer;
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-group .cta-button:hover {
    background-color: var(--text-dark);
    color: var(--light-bg);
    border-color: var(--text-dark);
}


/* ===== 10. RESPONSIVE DESIGN (For Mobile) ===== */
@media (max-width: 992px) {
    .services-grid,
    .project-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .founder-section,
    .feature-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .founder-section img,
    .feature-image {
        margin: 0 auto 30px auto;
        max-width: 400px;
    }
    
    .feature-grid .feature-image {
        grid-row: 1; /* Flips order so image is on top */
    }
}

@media (max-width: 768px) {
    /* Basic mobile nav - hides links, shows logo and CTA */
    .nav-links {
        display: none; 
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .project-grid,
    .footer-grid,
    .process-steps,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
    }
    .footer-col p {
        margin: 0 auto;
    }
    .contact-info li {
        justify-content: center;
    }

    .contact-details {
        margin-bottom: 40px;
    }
}
