/* --- CSS Rules for styles.css --- */

/* CSS Reset and Variables */
:root {
    /* Brand Colors from Logo */
    --logo-red: #E53935; /* Logo Accent Red/Orange */
    --logo-teal: #21B7C1; /* Logo Brand Teal/Blue */

    /* Website Structure Colors */
    --primary-color: #0c1a3b; /* Deep Blue (Main brand color for dark text/backgrounds) */
    --light-bg: #ffffff; 
    --dark-bg: #f8f8f8; 
    --light-text: #ffffff;
    --dark-text: #1a1a1a; 
    --font-main: 'Poppins', sans-serif;
    --shadow-bold: 0 15px 30px rgba(0, 0, 0, 0.1); 
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.08); 
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0 40px; 
}

section {
    padding: 100px 0;
    position: relative;
}

h2 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Default for desktop: Left-aligned */
    text-align: left; 
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.section-header {
    max-width: 900px;
    margin: 0 0 70px 0;
    padding-left: 20px;
    border-left: 5px solid var(--logo-red); 
}

.section-header p {
    text-align: left; 
    max-width: 700px;
    margin: 10px 0 0 0;
    font-size: 1.15em;
    color: #555;
    font-weight: 300;
}

/* --- Header/Hero Section (Dark and Powerful) --- */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0;
    position: relative;
    min-height: 550px; 
    display: flex;
    align-items: center;
}

.hero-content {
    z-index: 2;
    max-width: 100%; 
    padding: 100px 0;
    position: relative;
    
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 40px; 
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, var(--logo-teal), #0099aa); 
    background-image: url('https://images.unsplash.com/photo-1574577881734-73c71360172e?q=80&w=800&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light; 
    opacity: 0.9;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); 
}

/* --- Logo (Left Column) --- */
.header-logo {
    flex: 0 0 40%; 
    position: relative;
    text-align: center;
    margin-bottom: 0; 
}
.header-logo img {
    max-height: 300px; 
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5)); 
}

/* --- Text Content (Right Column) --- */
.hero-text-content {
    flex: 0 0 55%; 
}

.hero h1 {
    font-size: 4.5em;
    font-weight: 900;
    color: var(--light-text);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    text-align: left;
}

.hero p {
    font-size: 1.3em;
    font-weight: 300;
    max-width: none; 
    margin-bottom: 40px;
    color: #ccc;
    text-align: left; 
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--logo-red);
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.4);
}

.cta-button:hover {
    background-color: var(--logo-teal);
    box-shadow: 0 10px 20px rgba(33, 183, 193, 0.4);
    transform: translateY(-2px);
}

/* --- About Us Section --- */
.about-content {
    display: flex;
    align-items: center; 
    gap: 80px;
}

.about-image {
    flex: 0 0 500px; 
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-bold);
    border: 8px solid var(--dark-bg); 
    padding: 40px; 
    background-color: var(--light-bg); 
    object-fit: contain; 
}

.about-text {
    flex: 1;
    font-size: 1.05em;
    font-weight: 300;
}

.about-text h3 {
    font-size: 1.8em;
    color: var(--logo-red);
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- Services Section (Feature Blocks) --- */
.services {
    background-color: var(--dark-bg);
    padding-bottom: 120px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    padding: 0 20px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s, transform 0.3s;
    border-top: 5px solid transparent; 
    text-align: center; 
}

.service-card h3 {
    text-align: center; 
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
}

.service-card p {
    text-align: center; 
    margin-bottom: 20px;
}

.service-card:nth-child(1):hover { 
    border-top-color: #00a0e3; 
    transform: translateY(-5px);
}
.service-card:nth-child(2):hover {
    border-top-color: #8cc63f; 
    transform: translateY(-5px);
}
.service-card:nth-child(3):hover {
    border-top-color: #e50019; 
    transform: translateY(-5px);
}

.service-card .logo-container {
    height: 200px; 
    margin-bottom: 20px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
}

.service-card .logo-container img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.service-card a {
    color: var(--logo-teal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.service-card a:hover {
    color: var(--logo-red);
}

/* --- Contact Us Section (High Contrast) --- */
.contact {
    background-color: var(--primary-color); 
    color: var(--light-text);
    padding: 100px 0;
    position: relative;
    overflow: hidden; 
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(33, 183, 193, 0.15) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

.contact h2 {
    color: var(--light-text);
}
.contact .section-header {
     border-left-color: var(--logo-red);
}
.contact .section-header p {
     color: #ccc;
}

.contact-content {
    display: flex;
    gap: 80px; 
    align-items: flex-start;
}

.contact-info {
    flex: 0 0 380px; 
    background: var(--logo-teal); 
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-bold);
    color: var(--light-text);
    text-align: center; 
}

.contact-info h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--logo-red);
    padding-bottom: 10px;
    text-align: center; 
}

/* ---------------------------------------------------- */
/* --- DESKTOP/BASE CONTACT INFO ALIGNMENT (HORIZONTAL) --- */
/* --- Fix applied for side-by-side display --- */
/* ---------------------------------------------------- */
.contact-info div {
    margin-bottom: 25px;
    display: flex; /* Horizontal alignment */
    align-items: flex-start; /* Aligns the icon and text-group to the top of the line */
    line-height: 1.4;
}

.contact-info i {
    font-size: 1.8em; 
    color: var(--logo-red);
    flex-shrink: 0;
    margin: 0 20px 0 0; /* Icon position: right margin for spacing */
}
.contact-info .text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns text left relative to the icon */
    text-align: left; 
}
.contact-info strong {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    text-align: left; 
}
.contact-info span {
    font-weight: 300;
    font-size: 0.95em;
    color: #eee;
    text-align: left; 
}
/* ---------------------------------------------------- */

.contact-form {
    flex: 1;
    padding: 0 20px;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .full-width {
    grid-column: 1 / -1; 
}

.contact-form label {
    display: none; 
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    border-radius: 5px;
    width: 100%;
    transition: border-color 0.3s, background-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--logo-red);
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.contact-form ::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--logo-red); 
    color: var(--light-text);
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 5px;
    width: auto;
    cursor: pointer;
    grid-column: 1 / -1; 
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: var(--logo-teal); 
}


/* --- Footer Section --- */
.footer {
    background-color: var(--primary-color);
    color: #dddddd;
    padding: 40px 0;
    font-size: 0.9em;
    text-align: center;
}

/* ------------------------------------------- */
/* --- MEDIA QUERIES (Mobile Responsiveness) --- */
/* ------------------------------------------- */
@media (max-width: 1100px) {
     .hero-visual {
        width: 100%; 
        height: 100%;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); 
     }
     
     .hero-content {
         max-width: 100%;
         flex-direction: column; 
         text-align: center;
         padding: 60px 20px; 
     }
     
     .header-logo {
         margin-bottom: 20px;
         flex: none; 
         width: 100%;
     }
     .header-logo img {
        max-height: 100px; 
     }
     
     .hero h1 {
         text-align: center;
         font-size: 3.2em; 
     }
     .hero p {
         text-align: center;
         max-width: 600px; 
         margin-left: auto;
         margin-right: auto;
         font-size: 1.1em; 
     }
     
     .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
     }
     
     .about-content {
         flex-direction: column;
         gap: 40px;
     }
     .about-image {
         flex: 0 0 100%;
         max-width: 500px; 
     }
     .service-grid {
         grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     }
}

@media (max-width: 900px) { /* This breakpoint covers smaller tablets and phones */
    .hero { 
        min-height: 400px; 
    }
    .hero-content {
        padding: 60px 20px; 
    }
    .hero h1 {
        font-size: 2.5em; 
    }
    .hero p {
        font-size: 1em; 
    }
    .hero-visual {
        height: 100px; 
    }
    
    /* --- SECTION HEADER FIX --- */
    .section-header {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%; 
        padding-left: 0; 
    }
    .section-header h2, .section-header p {
        text-align: center;
    }
    
    /* --- ABOUT US FIXES --- */
    .about-content {
        flex-direction: column;
        align-items: center; 
    }
    .about-image {
        flex: 0 0 100%;
        max-width: 300px; 
        margin: 0 auto 20px auto; 
    }
    .about-image img {
        padding: 20px; 
    }
    .about-text {
        padding: 0 20px; 
    }
    .about-text h3 {
        text-align: center; 
    }
    .about-text p {
        text-align: left; /* Keep body text left-aligned for readability */
    }
    
    /* --- CONTACT INFO CENTERING FIX (Teal Box) --- */
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    .contact-info {
        flex: 0 0 auto;
        width: 100%;
        padding: 30px;
        text-align: center; 
    }
    .contact-info h3 {
        margin-bottom: 20px;
        padding-bottom: 5px;
        border-bottom: 1px solid var(--logo-red);
    }
    
    .contact-info div {
        /* OVERRIDE for mobile: force stacking */
        display: block; 
        margin-bottom: 30px;
    }
    .contact-info i {
        /* OVERRIDE for mobile: Center icon above text */
        display: block;
        margin: 0 auto 5px auto; 
        font-size: 2.2em; 
    }
    
    .contact-info .text-group {
        /* OVERRIDE for mobile: Block display and center text */
        display: block;
        width: 100%; 
        text-align: center; 
    }
    .contact-info strong, .contact-info span {
        /* OVERRIDE for mobile: Ensure text is centered */
        display: block;
        text-align: center; 
    }

    /* --- FORM FIX: Ensuring full width for input fields --- */
    .contact-form {
        padding: 0 20px; 
        width: 100%; /* Ensure the form container takes full width */
    }
    .contact-form form {
        grid-template-columns: 1fr; /* Make sure all items take full width */
        gap: 20px; /* Spacing between stacked fields */
        width: 100%; /* Ensure the form itself takes full width */
    }
    .contact-form .full-width {
        grid-column: 1 / 2; /* Still ensures it spans the single column */
        width: 100%; /* Explicitly ensure full width */
    }
    /* Ensure inputs, textareas, and button also take full width */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea,
    .contact-form button {
        width: 100%; 
    }
    
    .service-grid {
         grid-template-columns: 1fr; 
     }
}