/* Accents in Tile & Stone - Professional Website Styles */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 0;
    font-size: 14px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* Navigation */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    padding: 10px 0;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 30px 25px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.85) 0%, rgba(52,73,94,0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

.cta-button:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,126,34,0.4);
}

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

.section.gray {
    background: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 400;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Featured Work Section */
.featured-work {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 300px;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px;
    color: var(--white);
}

.work-overlay h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.work-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    opacity: 0.9;
}

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

/* Portfolio Page Specific Styles */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    background: var(--white);
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 20px;
    color: var(--white);
}

.gallery-item-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-item-title {
    font-size: 16px;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        padding: 15px 15px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .subtitle {
        font-size: 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .subtitle {
        font-size: 18px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 16px;
    }
}
