/* MGL Construction - Simplified Styles */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #8595a3;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Base Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 0;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portfolio Section */
.portfolio-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Services Section */
.services-list .service-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.services-list .service-item:last-child {
    border-bottom: none;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.2rem;
}

/* About/Features */
.feature-item {
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-form {
    box-shadow: var(--shadow-lg);
}

.contact-item {
    padding: 0.5rem 0;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

/* Form Styles */
.form-control {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .portfolio-card img {
        height: 200px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        margin-top: 2rem !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .contact-form {
        margin-top: 2rem;
    }
}

/* Animation */
.portfolio-card,
.feature-item,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Utility Classes */
.text-primary {
    color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow) !important;
}

/* Custom Spacing */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Portfolio Grid Spacing */
.portfolio-grid .col-lg-4:nth-child(3n + 1) .portfolio-card {
    animation-delay: 0.1s;
}

.portfolio-grid .col-lg-4:nth-child(3n + 2) .portfolio-card {
    animation-delay: 0.2s;
}

.portfolio-grid .col-lg-4:nth-child(3n + 3) .portfolio-card {
    animation-delay: 0.3s;
}

/* Social Media Feeds */
.social-feed-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.social-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-header i {
    font-size: 1.2rem;
}

.social-posts {
    max-height: 600px;
    overflow-y: auto;
}

.social-post {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.social-post:last-child {
    border-bottom: none;
}

.post-header {
    margin-bottom: 0.5rem;
}

.post-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.post-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
}

.post-content li {
    margin-bottom: 0.25rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
    flex-wrap: wrap;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-stats small {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Responsive Social Feeds */
@media (max-width: 768px) {
    .social-posts {
        max-height: 500px;
    }

    .post-image {
        max-height: 200px;
    }

    .post-grid img {
        height: 100px;
    }

    .social-header,
    .social-post {
        padding: 0.75rem 1rem;
    }

    .post-stats {
        gap: 0.75rem;
    }

    .post-stats small {
        margin-left: 0;
        margin-top: 0.25rem;
        width: 100%;
    }
}

/* Custom Scrollbar for Social Feeds */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Social Feed Animations */
.social-post {
    transition: background-color 0.2s ease;
}

.social-post:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.post-stats span {
    transition: all 0.2s ease;
}

.post-stats span:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}
