/* =======================
   1. GLOBAL STYLES & VARIABLES
   ======================= */
:root {
    --primary-color: #0056b3; /* A strong, professional blue */
    --secondary-color: #0d2c4e; /* A very dark navy for headings */
    --accent-color: #ff9900;  /* A confident orange/gold for calls-to-action */
    --light-bg: #f4f7fc;      /* A very light, clean blue-grey */
    --white-color: #ffffff;
    --dark-grey: #333333;
    --medium-grey: #555555;
    --light-grey: #dddddd;

     --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--medium-grey);
    background-color: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.containertoo {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =======================
   2. HEADER & NAVIGATION
   ======================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.logo:hover { color: var(--primary-color); }
.logo strong { color: var(--primary-color); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn {
    padding: 10px 24px;
}
.nav-links .btn:hover::after {
    display: none;
}

.nav-toggle { display: none; } /* Hide hamburger on desktop */

/* =======================
   3. HERO SECTION
   ======================= */
.hero-section {
    background: linear-gradient(rgba(13, 44, 78, 0.85), rgba(13, 44, 78, 0.85)), url('./images/back1.jpg') no-repeat center center/cover;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: 80px; /* Offset for fixed header */
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* =======================
   4. ABOUT & VALUES SECTION
   ======================= */
#about {
    background-color: var(--light-bg);
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
}

/* =======================
   5. SERVICES SECTION
   ======================= */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.service-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-category ul li {
    padding-left: 1rem;
    position: relative;
    margin-bottom: 1rem;
}

.service-category ul li::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: -10px;
    top: 2px;
}

.partner-logos {
    text-align: center;
    margin-top: 60px;
}

.partner-logos h4 {
    margin-bottom: 2rem;
    color: var(--medium-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logos-grid img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =======================
   6. USP SECTION
   ======================= */
#usp {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
#usp .section-header h2, #usp .section-header p {
    color: var(--white-color);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.usp-item {
    text-align: center;
    padding: 1.5rem;
}

.usp-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.usp-item h3 {
    color: var(--white-color);
    margin-bottom: 1rem;
}



/* =======================
   PORTFOLIO SECTION (NEW)
   ======================= */
.portfolio-section {
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
    flex-grow: 1; /* Ensures content area fills space */
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    align-self: flex-start; /* Aligns the badge to the start */
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Add this to the RESPONSIVE DESIGN section at the bottom of style.css */



/* =======================
   7. TEAM SECTION
   ======================= */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.team-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.team-card img {
    width: 100%;
    height: auto;
    display: block;
}

.team-info {
    padding: 2rem;
}

.team-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.95rem;
}

/* =======================
   8. CONTACT SECTION
   ======================= */
#contact {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info {
    flex-basis: 40%;
}
.contact-form {
    flex-basis: 60%;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}
.office-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--light-grey);
    padding-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-form button {
    width: 100%;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.contact-form button:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}


/* =======================
   9. FOOTER
   ======================= */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-grey);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 40px;
}

.footer-about h4 {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-about p {
    color: #a9b3c1;
}

.footer-links h4, .footer-social h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}
.footer-links ul li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #a9b3c1;
}
.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}
.footer-social a:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #2a4a6c;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #a9b3c1;
}


/* =======================
   10. RESPONSIVE DESIGN
   ======================= */




/* Tablets - 992px */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-section { height: auto; padding: 120px 0; }
    .hero-title { font-size: 2.8rem; }
    
    .team-grid { grid-template-columns: 1fr; }
    .services-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
       .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    section { padding: 60px 0; }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        position: relative;
        transition: transform 0.3s ease;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: var(--secondary-color);
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }
    
    /* Active state for hamburger */
    .nav-open .hamburger { background: transparent; }
    .nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        padding-top: 100px;
    }
    
    .nav-open .main-nav { right: 0; }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links a { font-size: 1.2rem; }

    /* General Layout */
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; }

    .values-grid { grid-template-columns: 1fr; }

    .contact-wrapper {
        flex-direction: column;
        padding: 2rem;
    }

      .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
