/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--secondary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    margin: 0; 
    padding: 0; 
}

/* Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #f8fafc;
    --dark: #0f172a;
    --gray: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Layout & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 100px 0;
}

/* Components */

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 30px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('./images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content p {
    margin-top: -25px; /* Adjust this value as needed */
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.team-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-member {
    text-align: center;
    margin-bottom: 20px;
}

.team-member img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.02);
}

.team-member h3 {
    margin-top: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.team-member p {
    color: var(--dark);
    font-size: 0.9rem;
    margin-top: 5px;
}

.team-member.full-width {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.team-member.full-width img {
    height: 300px;
    object-fit: cover;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary);
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.pricing {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.pricing h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.pricing ul {
    list-style: none;
    padding: 0;
}

.pricing ul li {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Modal Styles */
.work-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-gallery {
    max-width: 90%;
    max-height: 90%;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
}

.modal-prev,
.modal-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: 0.7;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.input-group label i {
    color: var(--primary);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    background: var(--secondary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group textarea {
    height: 150px;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.info-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.info-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-header p {
    color: #64748b;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    margin-bottom: 20px;
}

.info-content h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-content h4 i {
    color: var(--primary);
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.info-content a:hover {
    color: var(--primary-dark);
}

.info-content p {
    color: #64748b;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0; 
}

.footer-main {
    padding: 80px 0 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 60px;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 400px;
}

footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 15px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0; 
}

.footer-contact ul li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li span {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
    color: var(--primary);
}

/* Utilities */
.btn {
    display: inline-block;
    background: var(--gradient);
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-3px);
}

/* Animations */
@keyframes clean {
    0% { left: -40px; }
    100% { left: 100%; }
}

@keyframes water {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Media Queries */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photos {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    h1 { 
        font-size: 3rem; 
    }
    
    section h2 { 
        font-size: 2.5rem; 
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper,
    .contact-info {
        padding: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-content {
        padding-right: 0;
    }

    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-contact ul li,
    .footer-hours ul li {
        align-items: center;
    }

    .footer-nav ul li a:hover {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-photos {
        grid-template-columns: 1fr;
    }
    
    .team-member img {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh; /* Full viewport height on mobile */
        background-position: center center;
        padding: 60px 20px; /* Add some padding */
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Ensure the CTA button is properly sized */
    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Add styles for even smaller screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.input-group {
    position: relative;
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.input-group input:invalid:not(:placeholder-shown),
.input-group select:invalid,
.input-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
}

.form-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.form-feedback.success {
    background: #059669;
}

.form-feedback.error {
    background: #dc2626;
}

.form-feedback.show {
    transform: translateY(0);
}

.success-message {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.success-message i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #64748b;
}