/* Additional Custom Styles for Majestic Concrete Co */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Navigation Styles */
.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-image {
    width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container .navbar-brand:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(10, 10, 10, 0.2) 100%), url('../images/MainImage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Phone Display */
.phone-display {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phone-display:hover {
    transform: scale(1.05);
    color: var(--white);
}

.phone-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.phone-display:hover::before {
    left: 100%;
}

/* CTA Buttons */
.cta-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
    color: var(--white);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 350px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: pulse 0.3s ease-in-out;
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(10, 10, 10, 0.2) 100%);
    color: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(10, 10, 10, 0.3) 100%);
}

.service-icon {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-overlay p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

.service-cta {
    margin-top: auto;
}

.service-cta .btn {
    transition: all 0.3s ease;
}

.service-cta .btn:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid var(--light-gray);
    background: var(--primary-color);
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--white);
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-body img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-body p {
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.modal-footer {
    border-top: 2px solid var(--light-gray);
    padding: 1.5rem 2rem;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Owner Operated Section */
.owner-operated-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
}

.owner-operated-section .section-title {
    color: var(--white);
    margin-bottom: 2rem;
}

.owner-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.owner-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.owner-features {
    margin-top: 2rem;
}

.owner-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.owner-feature:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.owner-feature .feature-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.owner-feature .feature-text h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.owner-feature .feature-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.owner-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.owner-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.owner-image:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: var(--white);
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Service Area Info */
.service-area-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.service-area-info h4 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-area-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-area-info p:last-child {
    margin-bottom: 0;
}

/* Committed to Our Clients Section */
.committed-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.committed-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.committed-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.services-showcase {
    margin-top: 3rem;
}

.services-showcase h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--secondary-color);
}

.service-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.service-item span {
    font-weight: 500;
    color: var(--dark-gray);
}

/* Custom Design Services Section */
.custom-design-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0;
}

.custom-design-section .section-title {
    color: var(--white);
    margin-bottom: 2rem;
}

.custom-design-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.custom-design-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.experience-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.experience-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.experience-content h3 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.experience-content p:last-child {
    margin-bottom: 0;
}

.custom-design-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.custom-design-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.custom-design-image:hover img {
    transform: scale(1.02);
}

.image-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: var(--white);
}

.image-overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.image-overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form {
    background: var(--white);
    color: var(--dark-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #c0392b;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #c0392b;
}

.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .owner-operated-section {
        padding: 60px 0;
    }
    
    .owner-feature {
        padding: 0.75rem;
    }
    
    .owner-feature .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .owner-content .lead {
        font-size: 1.2rem;
    }
    
    .service-area-info {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .service-area-info h4 {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .service-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .service-item i {
        font-size: 1rem;
    }
    
    .experience-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
    }
    
    .custom-design-content .lead {
        font-size: 1.2rem;
    }
    
    .phone-display {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }

    .logo-image {
        width: 90px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .service-card {
        height: 300px;
    }

    .service-overlay {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .service-overlay p {
        font-size: 1rem;
        font-weight: 500;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body .row {
        flex-direction: column;
    }

    .modal-body .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Apply animations to service cards */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Enhanced phone display */
.phone-display {
    position: relative;
    overflow: hidden;
}

.phone-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.phone-display:hover::before {
    left: 100%;
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced form styling */
.form-control:focus {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: #c0392b;
    color: var(--white);
    transform: translateY(-3px);
}

/* Enhanced section transitions */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card enhancements */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.05;
}

/* Enhanced hero section */
.hero-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .phone-display {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .back-to-top,
    .cta-button {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.cta-button:focus,
.phone-display:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ff0000;
        --accent-color: #0000ff;
    }
}
