/* ================================
   LAYOUT & SECTIONS
   ================================
   
   Purpose: Page-specific layouts and sections
*/

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    color: var(--white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-placeholder {
    width: auto;
    height: 50px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 5px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.logo-placeholder img {
    height: 100%;       /* Match the container height (40px effectively) */
    width: auto;        /* Maintain aspect ratio */
    object-fit: contain;
    max-width: 150px;   /* Safety cap so it never gets too wide */
    display: block;
}

.company-name {
    /* font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px; */
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) var(--transition-ease);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/hero/Hero.jpeg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-size: var(--font-size-hero);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* =========================================
   OVERVIEW GRID & CARDS (UPDATED)
   ========================================= */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* 1. The Card Container - CENTERED LAYOUT */
.card {
    /* Ensures the card content centers perfectly */
    padding: var(--spacing-md);
    text-align: center;         /* Centers the text paragraphs */
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centers items (icon/title) horizontally */
    height: 100%;               /* Uniform height for all cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

/* 2. The Header Wrapper (Icon + Title) */
.card-header {
    display: flex;
    flex-direction: column; /* Stacks Icon ON TOP of Title */
    align-items: center;    /* Centers them */
    gap: 15px;              /* Space between Icon and Title */
    margin-bottom: 1rem;
    width: 100%;
}

/* 3. The Icon - Larger & Centered */
.card-icon {
    width: 45px;            /* Increased size for better visual balance */
    height: 45px;
    flex-shrink: 0;
    fill: var(--primary-color);
    margin: 0;              /* Removed old margins */
    transition: transform 0.3s ease;
}

/* 4. The Title */
.card-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--primary-color); 
    font-weight: 700; /* Makes it bold */
}

/* 5. Hover Effect */
.card:hover .card-icon {
    transform: translateY(-10px);
    transform: scale(1.1) translateY(-5px); /* Icon pops up slightly */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    fill: var(--secondary-color); /* Changes color on hover */
}


/* About Section */
.section-dark {
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    align-items: center;
}

.about-text {
    font-size: var(--font-size-large);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

/* Projects Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: 300px;
    cursor: pointer;
    transition: transform var(--transition-speed);
}

.project-card:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Project Images */
.project-image[data-project="residential"] {
    background-image: url('../images/projects/img1.jpeg');
}

.project-image[data-project="commercial"] {
    background-image: url('../images/projects/img2.jpeg');
}

.project-image[data-project="industrial"] {
    background-image: url('../images/projects/img3.jpeg');
}

.project-image[data-project="villa"] {
    background-image: url('../images/projects/img4.jpeg');
}

.project-image[data-project="mall"] {
    background-image: url('../images/projects/img5.jpeg');
}

.project-image[data-project="infrastructure"] {
    background-image: url('../images/projects/img6.jpeg');
}

.project-image[data-project="Sabarmati"] {
    background-image: url('../images/projects/img7.jpeg');
    background-size: cover;           /* Add this */
    background-position: center;      /* Add this */
    background-repeat: no-repeat; 
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform var(--transition-speed);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-xs);
}

.project-overlay p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Contact Section */
.section-contact {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
    color: var(--white);
}

.section-contact .section-title {
    color: var(--white);
}

.contact-info .section-title {
    margin-bottom: var(--spacing-lg);
    margin-top: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: 0;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-top: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.social-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.social-note {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: #999;
}

.contact-form-wrapper {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
}

.contact-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md);
}

.footer p {
    margin-bottom: var(--spacing-xs);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #999;
}