/* Base Reset & Variables */
:root {
    /* Oxford Blue & Platinum Theme - Premium & Architectural */
    --primary: #0D1B2A;
    /* Rich Black-Blue */
    --primary-light: #1B263B;
    /* Deep Oxford Blue */
    --secondary: #415A77;
    /* Shadow Blue */
    --secondary-dark: #2e3e50;
    --accent: #778DA9;
    /* Muted Blue-Grey */
    --light: #E0E1DD;
    /* Platinum */
    --bg-light: #F0F2F5;
    /* Very Light Cool Grey */
    --white: #ffffff;
    --text-dark: #1F2937;
    /* Charcoal for main text */
    --text-light: #F9FAFB;

    --shadow: 0 10px 30px -10px rgba(13, 27, 42, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(13, 27, 42, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--secondary-dark);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 30, 63, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 25px 0;
    /* Larger initial padding */
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo img {
    height: 55px;
    /* Larger initial logo */
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 40px;
    /* Smaller scrolled logo */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-dark);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:not(.btn):hover::after {
    width: 100%;
}

.nav-link.btn-primary {
    color: var(--white);
    padding: 12px 25px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: url('assets/hero_banner_v2.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 85px;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Dark at bottom to make text pop, lighter at top to see image */
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.2) 0%, rgba(13, 27, 42, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about img.feature-img {
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about img.feature-img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}

.about .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 25px;
    border-left: 3px solid var(--secondary);
    padding-left: 25px;
    line-height: 1.5;
}

.about p {
    margin-bottom: 20px;
    color: var(--secondary-dark);
}

/* Services Section Refined */
.services.bg-light {
    background-color: var(--bg-light);
    position: relative;
}

.section-header {
    margin-bottom: 70px;
}

.tagline {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Features Grid (Expertise & Client Focus) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    /* Sharper corners */
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(13, 27, 42, 0.03);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 27, 42, 0.08);
    /* Darker border on hover */
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-card .icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Clean Services List */
.services-list-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 600;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--secondary);
    border-radius: 0;
}

.services-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.service-item:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    /* Vertical lift instead of horizontal */
    border-color: rgba(13, 27, 42, 0.1);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.service-name {
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
}

/* Contact Section - Modern Card Style */
.contact-card {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
    min-height: 550px;
}

/* Left Panel */
.contact-info-panel {
    flex: 0.8;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 50px;
    color: var(--white);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/pattern.png');
    /* Optional texture */
    opacity: 0.05;
}

.panel-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.panel-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 35px;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.address-block {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 35px;
    opacity: 0.9;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-list .icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-list .icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.info-list .label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.info-list .value {
    font-size: 1rem;
    font-weight: 500;
}

/* Right Panel */
.contact-form-panel {
    flex: 1.2;
    padding: 40px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Floating Labels */
.form-group-float {
    position: relative;
    margin-bottom: 25px;
}

.form-group-float input,
.form-group-float textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group-float input:focus,
.form-group-float textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group-float label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
}

.form-group-float input:focus~label,
.form-group-float input:not(:placeholder-shown)~label,
.form-group-float textarea:focus~label,
.form-group-float textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Submit Button */
.btn-submit-modern {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-submit-modern:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.2);
}

.btn-submit-modern svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover svg {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .contact-card {
        flex-direction: column;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details-side {
        text-align: center;
        padding-top: 0;
    }

    .details-list {
        align-items: center;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }
}

/* Footer (Updated) */
footer {
    background-color: var(--primary);
    /* Dark background */
    color: var(--white);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about .row {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 30px;
    }


    .contact-form-container {
        padding: 30px;
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}