
/* SOFTHOMES - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172b45;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */

header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    font-size: 29px;
    font-weight: 800;
    color: #1264c5;
    letter-spacing: 1px;
}

.logo span {
    color: #172b45;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #1674df;
}

.nav-btn {
    background: #1264c5;
    color: white !important;
    padding: 12px 22px;
    border-radius: 6px;
}

/* HERO SECTION */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
      linear-gradient(90deg, rgba(7,34,70,.94), rgba(7,34,70,.58)),
      url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1800")
      center/cover no-repeat;
    color: white;
}

.hero-content {
    max-width: 700px;
    padding: 90px 0;
}

.hero-tag {
    color: #8fc5ff;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 13px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.15;
    margin: 22px 0;
}

.hero h1 span {
    color: #66b0ff;
}

.hero p {
    font-size: 17px;
    color: #e2eaf5;
    max-width: 580px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 27px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin: 5px;
}

.btn-primary {
    background: #1674df;
    color: white;
}

.btn-primary:hover {
    background: #0753a7;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1264c5;
}

/* SECTION COMMON */

.section {
    padding: 85px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 36px;
    color: #142e4e;
    margin-bottom: 12px;
}

.section-heading p {
    color: #718096;
}

/* ABOUT */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content img {
    width: 100%;
    border-radius: 12px;
    min-height: 300px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.about-text p {
    color: #66758a;
    margin-bottom: 20px;
}

/* SERVICES */

.services {
    background: #f3f8ff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 32px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(20,60,110,.06);
    transition: .3s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: #1674df;
}

.service-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #153b68;
    margin-bottom: 12px;
}

.service-card p {
    color: #718096;
    font-size: 14px;
}

/* CALL TO ACTION */

.cta {
    background: #125eb4;
    color: white;
    text-align: center;
    padding: 65px 20px;
}

.cta h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 25px;
}

/* FOOTER */

footer {
    background: #10253f;
    color: white;
    padding: 45px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

footer h3 {
    margin-bottom: 15px;
}

footer p,
footer a {
    color: #bdcce0;
    font-size: 14px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 9px;
}

.copyright {
    border-top: 1px solid #34465d;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #bdcce0;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .navbar {
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .service-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 530px;
    }

    .section-heading h2 {
        font-size: 28px;
    }
}

/* RESPONSIVE MOBILE NAVIGATION */

.menu-toggle {
    display: none;
    background: #1264c5;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 27px;
    width: 45px;
    height: 42px;
    cursor: pointer;
}

@media (max-width: 850px) {

    .navbar {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 15px;
        font-size: 15px;
    }

    .nav-links .nav-btn {
        display: inline-block;
        margin: 5px 15px;
    }
}

/* SOFTHOMES SERVICES PAGE */

.services-banner {
    background: linear-gradient(120deg, #0c376d, #1674df);
    color: #ffffff;
    padding: 85px 0;
    text-align: center;
}

.services-banner span {
    color: #b9dcff;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 13px;
}

.services-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
}

.services-banner p {
    max-width: 650px;
    margin: auto;
    color: #e5f1ff;
    font-size: 16px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 250px;
}

.service-card p {
    line-height: 1.8;
    flex-grow: 1;
}

.service-link {
    color: #1264c5;
    font-size: 14px;
    font-weight: bold;
    margin-top: 20px;
}

.service-link:hover {
    color: #073e80;
}

@media (max-width: 550px) {
    .services-banner {
        padding: 60px 15px;
    }

    .service-card {
        min-height: auto;
    }
}

/* SOFTHOMES PROJECT PORTFOLIO */

.projects-banner {
    background: linear-gradient(120deg, #0c376d, #1674df);
    color: #ffffff;
    text-align: center;
    padding: 85px 15px;
}

.projects-banner span {
    color: #b9dcff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.projects-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
}

.projects-banner p {
    color: #e5f1ff;
    max-width: 650px;
    margin: auto;
}

.projects-section {
    background: #f7faff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(20,60,110,.08);
    transition: .3s;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(20,60,110,.14);
}

.project-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-info {
    padding: 25px;
}

.project-category {
    color: #1674df;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    color: #153b68;
    margin: 12px 0;
    font-size: 19px;
}

.project-info p {
    color: #718096;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.project-link {
    color: #1264c5;
    font-size: 13px;
    font-weight: bold;
}

.project-link:hover {
    color: #073e80;
}

@media (max-width: 850px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }

    .projects-banner {
        padding: 60px 15px;
    }
}

/* SOFTHOMES GALLERY PAGE */

.gallery-banner {
    background: linear-gradient(120deg, #0c376d, #1674df);
    color: white;
    padding: 85px 15px;
    text-align: center;
}

.gallery-banner span {
    color: #b9dcff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.gallery-banner h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 15px 0;
}

.gallery-banner p {
    color: #e5f1ff;
    max-width: 650px;
    margin: auto;
}

.gallery-section {
    background: #f7faff;
}

/* FILTERS */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: white;
    border: 1px solid #d5e3f5;
    color: #164477;
    padding: 11px 23px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1264c5;
    color: white;
    border-color: #1264c5;
}

/* GALLERY GRID */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #dce8f5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent,
        rgba(5, 30, 65, .9)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
    opacity: 0;
    transition: .3s;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.view-image {
    background: #ffffff;
    color: #1264c5;
    border: none;
    border-radius: 5px;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
}

/* LIGHTBOX */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 12, 30, .95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 70px;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox img {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-lightbox p {
    color: white;
    margin-top: 15px;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.15);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 28px;
}

.lightbox-close {
    top: 20px;
    right: 25px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
}

.lightbox-next {
    right: 15px;
    top: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #1674df;
}

@media (max-width: 850px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-banner {
        padding: 60px 15px;
    }

    .gallery-lightbox {
        padding: 60px 15px;
    }

    .gallery-lightbox img {
        max-width: 100%;
        max-height: 65vh;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

}
@media (hover: none) {
    .gallery-overlay {
        opacity: 1;
    }
}
/* CONTACT PAGE */

.contact-banner {
    background: linear-gradient(120deg, #063b73, #1684d8);
    color: #ffffff;
    text-align: center;
    padding: 75px 20px;
}

.contact-banner h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.contact-banner p {
    font-size: 17px;
    color: #eaf4ff;
}

.contact-section {
    padding: 70px 0;
    background: #f5f9ff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info,
.contact-form-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0, 40, 90, 0.08);
}

.contact-info h2,
.contact-form-box h2 {
    color: #073b70;
    margin-bottom: 15px;
}

.contact-info > p,
.contact-form-box > p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.contact-info-item {
    border-top: 1px solid #e5edf6;
    padding: 20px 0;
}

.contact-info-item h3 {
    color: #1268b3;
    margin-bottom: 8px;
}

.contact-info-item p {
    color: #526174;
    line-height: 1.6;
}

.contact-info-item a {
    display: inline-block;
    margin-top: 8px;
    color: #087bca;
    font-weight: 600;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-form-box .form-group {
    margin-bottom: 20px;
}

.contact-form-box label {
    display: block;
    color: #25364a;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d5e0ec;
    border-radius: 7px;
    font: inherit;
    color: #26384c;
    background: #ffffff;
    outline: none;
}

.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
    border-color: #1684d8;
    box-shadow: 0 0 0 3px rgba(22, 132, 216, 0.12);
}

.contact-form-box textarea {
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 7px;
    background: #087bca;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-submit-btn:hover {
    background: #064f91;
}

.form-note {
    margin-top: 13px;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

.form-status {
    margin-top: 10px;
    color: #087bca;
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact-banner {
        padding: 55px 15px;
    }

    .contact-banner h1 {
        font-size: 29px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info,
    .contact-form-box {
        padding: 24px;
    }
}
