/* ========================================
   MODERN CONSTRUCTION COMPANY DESIGN
   Theme: Professional Orange/Gray/Dark
======================================== */

/* CSS Custom Properties (Variables) */
:root {
    /* Primary Colors */
    --primary-color: #FF6B35;          /* Vibrant Orange */
    --primary-dark: #E55A2B;           /* Darker Orange */
    
    /* Secondary Colors */
    --secondary-color: #2C3E50;        /* Deep Blue-Gray */
    --secondary-dark: #1A252F;         /* Darker Blue-Gray */
    
    /* Accent Colors */
    --accent-color: #F39C12;           /* Golden Yellow */
    
    /* Neutral Colors */
    --gray-800: #343A40;               /* Dark Gray */
    --gray-700: #495057;               /* Medium Dark Gray */
    --gray-600: #6C757D;               /* Medium Gray */
    --gray-300: #DEE2E6;               /* Very Light Gray */
    --gray-100: #F8F9FA;               /* Nearly White */
    --white: #FFFFFF;                  /* Pure White */
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ========================================
   GLOBAL STYLES
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.modern-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.modern-layout main {
    flex: 1;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--white);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-light {
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0.1;
    transform: rotate(15deg);
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-btn {
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

/* ========================================
   SECTIONS
======================================== */

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ========================================
   SERVICES SECTION
======================================== */

.services-preview {
    background: var(--gray-100);
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   FEATURED PROJECTS SECTION
======================================== */

.featured-projects {
    background: var(--white);
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color);
}

/* Ensure consistent image heights */
.project-image,
.project-image-placeholder {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

/* ========================================
   PROJECT IMAGE PLACEHOLDERS
======================================== */

.project-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px 16px 0 0;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.project-image-placeholder svg {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.project-card:hover .project-image-placeholder svg {
    transform: scale(1.02);
}

.no-projects-placeholder {
    padding: 3rem 2rem;
    text-align: center;
}

.no-projects-placeholder h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.no-projects-placeholder svg {
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.no-projects-placeholder:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .project-image,
    .project-image-placeholder {
        height: 200px;
    }
    
    .no-projects-placeholder {
        padding: 2rem 1rem;
    }
    
    .no-projects-placeholder svg {
        width: 80px;
        height: 80px;
    }
}