﻿/* --- 1. GLOBAL STYLES --- */

* {
    box-sizing: border-box;
}
:root {
    --primary-blue: #3b82f6;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f9fbfd;
}

body {
    min-height: 100vh;
    margin: 0;
    padding-top: 40px; /* increase as needed */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /*background: linear-gradient(to bottom, #a9bfd6, #d6dde5);*/
    background: linear-gradient(to bottom, #9fb6cf, #e6ecf2);
    color: var(--text-dark);
    line-height: 1.6;
}


#main-wrapper {
    max-width: 1100px; /* reduce from 1300 */
    width: 100%;
    margin: 10px auto 40px;
    /*margin: 20px auto 40px;*/
    padding: 0; /* replaces old 9px padding */

    background: #fff;
    border: none;
    /* subtle depth */
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
}

.special-services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.container {
    max-width: 900px; /* 🔥 match cards */
    margin: 0 auto;
    padding: 0 10px;
    /*Add these lines*/
    /*border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;*/
}

/* --- 2. HEADER --- */
.modern-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.header-inner {
    max-width: 900px; /* 🔥 match cards */

    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#site_title h1 {
    margin: 0;
    font-size: 24px;
}

#site_title h1 {
    margin: 0;
}

#site_title a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

#site_title img {
    height: 55px;
    width: auto;
}

#site_title span {
    font-size: 22px;
    font-weight: 600;
    color: #000; /* black */
    /*color: var(--primary-blue);*/ /* brand color */
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* match menu */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text-gray);
        font-size: 17px;
        font-weight: 500;
    }

        .nav-menu a.active {
            color: var(--primary-blue);
            border-bottom: 2px solid var(--primary-blue);
            padding-bottom: 5px;
        }

/* --- 3. HERO / OUR WORK SECTION --- */

.our-work-section {
    text-align: center;
    padding: 70px 0 40px; /* reduce from 100px */
    /*padding: 100px 0 60px;*/
    background: linear-gradient(to bottom, #eaf3fb, #ffffff);
}

    .our-work-section .title {
        font-size: 32px;
        /*margin-bottom: 20px;*/ /* Space between "Our Work" and the description */
        margin-bottom: 15px;
        color: #2c3e50;
        font-weight: 600;
    }



    .our-work-section .subtitle {
        /*font-size: 22px;*/
        font-size: 24px;
        /*font-weight: 600;*/
        color: #5d6d7e;
        line-height: 1.5; /* Adds space between the two lines of text */
        /* This is the secret: limit the width so the text has to wrap */
        max-width: 450px;
        margin: 0 auto; /* Keeps the narrowed text block centered */
    }

.subtitle-small {
    font-size: 20px !important;
    font-weight: 600;
    /*font-weight: 600 !important;*/
    color: #5d6d7e;
    /*color: #2c3e50;*/
    max-width: 520px;
    margin: 0 auto;
}

/* --- 4. PORTFOLIO GRID --- */
.container.portfolio-grid {
    padding: 0 50px; /* extra spacing for cards only */
}


.portfolio-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 20px;
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 40px 0;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}




.portfolio-card img {
    width: 100%; /* Spans the full width of the card */
    height: 180px; /* Adjust this number until it matches your 'Website Development' image height */
    /* This is the key property */
    object-fit: cover;
    /* Centers the image so the most important part is visible */
    object-position: center;
    border-radius: 8px; /* Optional: adds a soft edge to match your cards */
    display: block;
    margin-bottom: 15px;
}

.portfolio-card h2 {
    color: #333 !important;
    font-size: 20px !important;
    margin: 10px 0;
    font-weight: 600;
}

.portfolio-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}



.more-btn:hover {
    background: #3779ba;
}

/* --- 6. CTA SECTION --- */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

    .cta-section h2 {
        font-size: 32px;
        margin-bottom: 10px;
    }

.contact-btn {
    margin-top: 20px;
    padding: 12px 40px;
    font-size: 18px;
}

.cta-section {
    /*padding: 40px 0 60px;*/ /* increase bottom spacing */

    padding: 20px 0 60px;
}


/*service page*/

/* specific grid container on the *only* services page */


.special-service-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 20px;
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

    .special-service-card img {
        width: 100%; /* Spans the full width of the card */
        height: auto; /* Adjust this number until it matches your 'Website Development' image height */
        /* This is the key property */
        object-fit: cover;
        /* Centers the image so the most important part is visible */
        object-position: center;
        border-radius: 8px; /* Optional: adds a soft edge to match your cards */
        display: block;
        margin-bottom: 15px;
    }

    .special-service-card h2 {
        color: #333 !important;
        font-size: 20px !important;
        margin: 10px 0;
        font-weight: 600;
    }

    .special-service-card p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    .special-service-card .more-btn {
        background: #5b9bd5;
        color: white !important;
        padding: 10px 25px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        transition: background 0.3s;
    }

        .special-service-card .more-btn:hover {
            background: #3779ba;
        }

#tooplate_footer {
    clear: both;
    padding: 20px 0;
    text-align: center;
    background: #d7e8f9;
}

    #tooplate_footer a {
        color: #000
    }


/*new style*/

/* ===== COMMON GRID ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px; /* was 40px */
    max-width: 900px; /* control total width */
    /* gap: 40px;*/
    /*max-width: 900px;*/
    margin: 0 auto;
    padding-bottom: 60px;
}



.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.05);*/
    padding: 15px;
    /* padding: 20px;*/
    border: 1px solid #f0f0f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

    .card img {
        width: 100%;
        height: 160px;
        /*height: 200px;*/
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        display: block;
        margin-bottom: 15px;
    }


    .card h2 {
        color: #333 !important;
        font-size: 20px !important;
        margin: 10px 0;
        font-weight: 600;
    }

    .card h2 {
        padding: 5px 0;
    }


    .card p {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; /* 🔥 REQUIRED */
        overflow: hidden; /* 🔥 REQUIRED */
        margin-bottom: 20px;
        /*flex-grow: 1;*/
    }


/* button */

.more-btn {
    /*background: #5b9bd5;*/
    background: #4a8fd8; /* slightly deeper */
    color: white !important;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #eaf3fb, #ffffff);
}

    .hero h1 {
        font-size: 40px;
        font-weight: 700;
        color: #1f2d3d;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 18px;
        color: #5d6d7e;
        max-width: 600px;
        margin: 0 auto 25px;
    }

/* BUTTON */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* GRID 3 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 0;
}

/* ABOUT */
.about {
    text-align: center;
    padding: 60px 20px;
}

    .about h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .about p {
        max-width: 600px;
        margin: 0 auto 20px;
        color: #666;
    }

/* CONTACT */
.contact {
    padding: 40px 0;
}

.contact-box {
    display: flex;
    justify-content: space-between;
    background: #f4f7fb;
    padding: 25px;
    border-radius: 12px;
}

    .contact-box p strong {
        display: inline-block;
        width: 80px; /* Adjust this until all colons line up vertically */
        color: #333;
    }

    .contact-box p {
        margin-bottom: 10px; /* Adds consistent vertical spacing between lines */
        font-size: 14px;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-box {
        flex-direction: column;
        gap: 15px;
    }
}

.home-card .icon-box {
    /* height: 150px;*/
    display: flex;
    /*align-items: center;*/
    justify-content: center;
}

    .home-card .icon-box img {
        /* max-width: 110px;
    max-height: 110px;*/
        object-fit: contain;
    }

/* ===== CONTACT PAGE ===== */

/* --- CONTACT FORM SPECIFIC OVERRIDES --- */
/* ===== THE SIDE-BY-SIDE CONTACT LAYOUT ===== */

/* This container holds both the form and the details side-by-side */
.contact-flex-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

    /* Override the 'margin: auto' and 'max-width' from your existing contact-form-card */
    .contact-flex-wrapper .contact-form-card {
        flex: 1 !important; /* Equalized from 1.2 */
        margin: 0 !important;
        max-width: none !important;
        display: flex !important; /* Switch back to flex to use align-items */
        flex-direction: column !important;
        align-items: flex-start !important; /* Align form labels to the left */
        padding: 30px !important;
        box-sizing: border-box !important;
        /*new code added may14*/
        /*height: auto !important;*/ /* remove fixed/stretch height */
        /*min-height: unset !important;*/
    }

    .contact-flex-wrapper .form-group {
        width: 100% !important;
        margin-bottom: 20px !important;
        display: block !important;
    }

.contact-form-card label {
    width: 100% !important;
    text-align: left !important; /* Aligns the text of the label */
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    color: #333 !important;
    display: block !important;
}

/* 3. Force inputs and textarea to fill the space and not overlap */
.contact-flex-wrapper .contact-form-card input,
.contact-flex-wrapper .contact-form-card textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important; /* Critical to prevent overflow */
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    display: block !important;
    margin-top: 5px !important;
    font-size: 15px !important;
}

/* 4. Set height for the message box */
.contact-flex-wrapper .contact-form-card textarea {
    height: 120px !important;
    resize: vertical;
}

/* 5. Fix the button width */
.contact-flex-wrapper .contact-form-card .btn-primary {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 14px !important;
    cursor: pointer;
}

.contact-form-card,
.contact-details-side-card {
    transition: 0.3s ease;
}

    .contact-form-card:hover,
    .contact-details-side-card:hover {
        transform: translateY(-4px);
    }
/* Style for the Contact Details card */
.contact-details-side-card {
    flex: 1 !important;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 22px !important;
    border: 1px solid #f0f0f0;
    /* Force Left Alignment (Override global card) */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    /*gap: 0 !important;*/ /* remove extra spacing */
    height: auto !important;
    /*justify-content: space-between;*/ /* This helps spread content vertically to match the form height */
    /*gap: 8px;*/ /* controls spacing */
}

    /* Title alignment for the details card */
    .contact-details-side-card h2 {
        margin-bottom: 15px !important;
        font-size: 24px;
        color: #333;
        width: 100%;
        /*text-align: left !important;*/
    }

/* Specific detail item styling with icons */
.detail-row {
    margin-bottom: 2px !important;
    width: 100%;
}

/* TEXT */
.detail-row p {
    margin: 0 !important;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

/* HEADING INSIDE EACH ROW */
.detail-row b {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    margin-bottom: 4px !important;
}

.contact-details-side-card hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #f0f0f0 !important;
    margin: 10px 0 !important;
}

/* Responsive: Stack on top of each other on mobile */
@media (max-width: 850px) {
    .contact-flex-wrapper {
        flex-direction: column;
        align-items: center;
    }

        .contact-flex-wrapper .contact-form-card,
        .contact-details-side-card {
            width: 100%;
            max-width: 500px !important;
        }
}


/* Ensure the container takes up the full width of the screen/parent */
.contact-map {
    width: 100% !important;
    min-height: 300px;
    margin-top: 20px;
    margin-bottom: 40px; /* Space before footer */
    display: block !important; /* Prevents flexbox from shrinking it */
    overflow: hidden;
}

    /* Force the iframe to fill the container completely */
    .contact-map iframe {
        width: 100% !important;
        height: 400px !important; /* Set your desired height here */
        display: block;
        border-radius: 12px;
    }

/* MOBILE RESPONSIVE */
@media screen and (max-width: 768px) {

    body {
        padding-top: 10px;
    }
    #site_title img {
        height: 45px;
    }

    #main-wrapper {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 0;
        margin-top: 15px;
    }

        .nav-menu li {
            width: 100%;
            text-align: center;
        }

        .nav-menu a {
            display: block;
            width: 100%;
            padding: 8px 0;
            font-size: 16px;
        }

    #site_title a {
        flex-direction: column;
        gap: 5px;
    }

    #site_title span {
        font-size: 18px;
    }
    portfolio-card,
    .special-service-card,
    .card,
    .contact-form-card,
    .contact-details-side-card {
        padding: 15px !important;
    }

    .portfolio-grid,
    .grid-2,
    .grid-3,
    .special-services-container {
        grid-template-columns: 1fr;
    }

    .container.portfolio-grid {
        padding: 0 10px;
    }

    .hero h1,
    .our-work-section .title {
        font-size: 28px;
    }

    .hero p,
    .our-work-section .subtitle,
    .subtitle-small {
        font-size: 16px !important;
        max-width: 100%;
        padding: 0 10px;
    }

    .portfolio-card img,
    .card img {
        height: auto;
    }

    .contact-flex-wrapper {
        flex-direction: column;
        padding: 0 10px;
    }

        .contact-flex-wrapper .contact-form-card,
        .contact-details-side-card {
            width: 100%;
            max-width: 100% !important;
        }

    .contact-map iframe {
        height: 250px !important;
    }
}
