/* 
==============================================
AG INFREATCH - Real Estate Website
Author: Website Developer
==============================================
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-color-light: #7eb1e4;
    --border-color: #dee2e6;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --footer-color: #1a252f;
    --neutral-light: #f8f9fa;
    --neutral-dark: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.section-header p {
    font-size: 18px;
    color: #777;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== HEADER STYLES ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img.logo {
    height: 50px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

.navbar-light .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 5px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover:after,
.navbar-light .navbar-nav .nav-link.active:after {
    transform: scaleX(1);
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: var(--box-shadow);
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}


.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: var(--box-shadow);
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}



/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(10, 35, 66, 0.8), rgba(10, 35, 66, 0.8)), url('../images/hero/hero-bg-placeholder.jpg') center center/cover no-repeat; /* Placeholder - ensure you have an image here */
    color: var(--light-color);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-color);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    opacity: 0.9;
}

.hero-content .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 15px 35px;
    font-size: 16px;
}

.hero-content .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

.hero-slider .swiper-pagination-bullet {
    background-color: var(--light-color);
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: var(--secondary-color);
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-content {
    color: #fff;
    max-width: 600px;
    padding: 30px;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns .btn {
    margin-right: 15px;
}

/* ===== FEATURED PROJECTS SECTION ===== */
.featured-projects-section { /* Renamed class for clarity if it's a section wrapper */
    background-color: var(--neutral-light);
    color: var(--text-color);
}

.featured-projects-section .section-header h2,
.featured-projects-section .section-header p {
    color: var(--text-color);
}

.featured-projects-section .section-header h2:after {
    background-color: var(--secondary-color);
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: var(--light-color); /* White card background */
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-info h3 a {
    color: var(--dark-color); /* Use dark color for heading on light card */
}

.project-info h3 a:hover {
    color: var(--secondary-color);
}

.project-info p {
    color: var(--neutral-dark);
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--neutral-dark);
}

.project-meta span i {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* ===== ABOUT SECTION (on dark background) ===== */
.about-section { /* Assuming this section is on the default dark background */
    color: var(#2c3e50);
}

.about-section .section-header h2,
.about-section .section-header p {
    color: var(--text-color-light);
}

.about-section .section-header h2:after {
    background-color: var(--secondary-color);
}

.about-content h3 {
    color: var(--light-color);
}

.about-list li i {
    color: var(--secondary-color);
}

.about-img img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.about-features {
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    align-items: center;
}

.about-feature-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-right: 15px;
}

.about-feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

/* ===== SERVICES SECTION (on light background) ===== */
.services-section { /* Assuming this section is on a light background */
    background-color: var(--neutral-light);
    color: var(--text-color);
}

.services-section .section-header h2,
.services-section .section-header p {
    color: var(--text-color);
}

.services-section .section-header h2:after {
    background-color: var(--secondary-color);
}

.service-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: var(--light-color); /* White card */
    border: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-color); /* Dark text on white card */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-item .icon i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card:hover .service-icon {
    background-color: var(--accent-color); /* Hover to other accent */
}

.service-icon i {
    font-size: 30px;
    color: #2a6197; /* Icon color is light on accent bg */
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    color: var(--light-color);
}

.service-content h3 a {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-content h3 a:hover {
    color: var(--secondary-color);
}

.service-content p {
    color: var(--neutral-dark);
}

/* ===== TESTIMONIALS SECTION (on dark background) ===== */
.testimonials-section { /* Assuming this section is on a dark background */
    background-color: var(--dark-color); 
    color: var(--text-color-light);
}

.testimonials-section .section-header h2,
.testimonials-section .section-header p {
    color: var(--text-color-light);
}

.testimonials-section .section-header h2:after {
    background-color: var(--secondary-color);
}

.testimonial-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: var(--primary-color); /* Darker card on dark bg */
    border: 1px solid var(--border-color-dark);
    color: var(--text-color-light);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.testimonial-content:before {
    content: '\201C';
    font-size: 60px;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color-light);
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--light-color);
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-color-light);
    opacity: 0.7;
    margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(rgba(10, 35, 66, 0.85), rgba(10, 35, 66, 0.85)), url('../images/cta-bg-placeholder.jpg') center center/cover no-repeat fixed; /* Placeholder */
    color: var(--light-color);
    text-align: center;
    padding: 100px 0; /* Added padding for consistency */
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ===== NEWS SECTION (on light background) ===== */
.news-section { /* Assuming this section is on a light background */
    background-color: var(--neutral-light);
    color: var(--text-color);
}

.news-section .section-header h2,
.news-section .section-header p {
    color: var(--text-color);
}

.news-section .section-header h2:after {
    background-color: var(--secondary-color);
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    background-color: var(--light-color); /* White card */
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-img {
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.2;
}

.news-date span {
    display: block;
}

.news-date span:first-child {
    font-size: 20px;
    font-weight: 700;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.news-content h3 a {
    color: var(--dark-color); /* Dark text on light card */
}

.news-content h3 a:hover {
    color: var(--secondary-color);
}

.news-content p {
    color: var(--neutral-dark);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== FOOTER SECTION ===== */
.footer-section {
    background-color: var(--footer-color); /* Uses the new very dark blue */
    color: var(--text-color-light); /* Light text for footer */
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light-color); /* White headings in footer */
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget p {
    margin-bottom: 20px;
    color: var(--text-color-light);
    opacity: 0.8;
}

.social-links {
    display: flex;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    margin-bottom: 20px;
}

.contact-info li i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info li p {
    margin-bottom: 0;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color-dark); /* Muted blue border */
    background-color: var(--footer-color); /* Ensure bottom also has footer color */
}

.copyright {
    margin-bottom: 0;
    color: var(--text-color-light);
    opacity: 0.7;
}

.footer-bottom-links a {
    color: var(--text-color-light);
    opacity: 0.7;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* ===== BREADCRUMB SECTION ===== */
.breadcrumb-section {
    padding: 100px 0 60px; /* Adjusted padding */
    background: linear-gradient(rgba(10, 35, 66, 0.85), rgba(10, 35, 66, 0.85)), url('../images/breadcrumb-bg-placeholder.jpg') center center/cover no-repeat; /* Placeholder */
    text-align: center;
    color: var(--light-color);
}

.breadcrumb-section h1 {
    font-size: 42px; /* Slightly smaller */
    margin-bottom: 15px;
    color: var(--light-color);
}

.breadcrumb-nav {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
}

.breadcrumb-nav a {
    color: var(--text-color-light);
    opacity: 0.8;
}

.breadcrumb-nav a:hover {
    color: var(--secondary-color);
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: var(--text-color-light);
    opacity: 0.6;
}

.breadcrumb-nav span {
    color: var(--light-color); /* Current page */
    opacity: 1;
}

.breadcrumb-nav .current {
    color: var(--secondary-color);
}