:root {
    --primary-color: #ff6600;
    --dark-color: #222222;
    --light-color: #ffffff;
    --gray-color: #f4f4f4;
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 95px;
    width: 140px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
    position: relative;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: url('../../assets/header.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    color: var(--light-color);
    position: relative;
    padding-left: 50px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-color);
    line-height: 50px;
}

.hero-content h2 span {
    color: var(--primary-color);
}

.diagonal-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.diagonal-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: skewY(-4deg);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e65c00;
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--gray-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.features-content p {
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-list li span {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.features-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    transform: translateY(100%);
    transition: 0.5s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Testimonial Grid Layout - Adjusted for full visibility */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Increased gap between columns */
    margin: 0 auto;
    max-width: 1300px; /* Increased container width */
    padding: 0 20px; /* Add padding to keep content away from edges */
}

.testimonial-card {
    background: var(--light-color);
    border-radius: 10px;
    padding: 15px; /* Reduced padding to maximize content area */
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content from spilling out */
}

.testimonial-card p {
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.6;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    opacity: 0.1;
    color: var(--primary-color);
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client-name {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Facebook iframe specific styling */
.testimonial-card.facebook-review {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card iframe {
    width: 100% !important; /* Force iframe to use 100% of card width */
    max-width: 100%;
    border: none;
    overflow: hidden;
    height: 550px; /* Adjust this as needed */
}

/* Responsive adjustments - with larger breakpoints */
@media screen and (max-width: 1200px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on medium-large screens */
        max-width: 900px;
    }
}

@media screen and (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
        max-width: 500px;
    }
    
    .testimonial-card iframe {
        height: 500px; /* Full height on mobile */
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-form h2 {
    margin-bottom: 30px;
    color: var(--light-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
}

.form-group textarea {
    height: 150px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details li span {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    margin: 10px 0;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--light-color);
    margin: 0 10px;
    font-size: 18px;
    transition: 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-content h2,
.footer h2,
.contact h2 {
    color: var(--primary-color) !important;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .features-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .features-image {
        grid-row: 1;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-top:hover {
    opacity: 1 !important;
    transform: translateY(-5px);
}

/* Modal Alert Styling */
.modal-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-alert.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-alert.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.modal-header.error {
    background-color: #fdecea;
    color: #c62828;
}

.modal-header-icon {
    font-size: 24px;
    margin-right: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-body {
    padding: 20px;
    color: #333;
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.modal-btn.success {
    background-color: #4caf50;
    color: white;
}

.modal-btn.success:hover {
    background-color: #3d8b40;
}

.modal-btn.error {
    background-color: #f44336;
    color: white;
}

.modal-btn.error:hover {
    background-color: #d32f2f;
}