/* Base Variables */
:root {
    --primary-color: #F7C844;
    /* Yellow from logo approximation */
    --primary-hover: #e0b030;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

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

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 4px;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    padding: 12px 30px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 4px;
    border: 2px solid var(--text-main);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: #000;
}

/* Header */
header {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-t {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-right: 5px;
    line-height: 1;
}

.logo-text {
    color: var(--text-main);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 1.1rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--primary-color);
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: #000 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Reverted to House image per user request */
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker overlay for better text contrast/premium feel */
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark);
    overflow: hidden;
    /* Prevent scrollbar appearing on body level */
}

.service-grid {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    /* Reduced gap for better peek */
    padding: 20px 5px;
    cursor: grab;
    /* Hide scrollbar for Chrome/Safari/Opera */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.service-grid::-webkit-scrollbar {
    display: none;
}

.service-grid:active {
    cursor: grabbing;
}

.swipe-hint {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.service-card {
    min-width: 280px;
    /* Smaller fixed width so next card peeks in */
    flex: 0 0 auto;
    background-color: rgba(26, 26, 26, 0.8);
    /* Slight transparency */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: var(--transition);
    user-select: none;
    /* Prevent text selection while dragging */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(247, 200, 68, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Banner */
.banner {
    background-color: var(--primary-color);
    color: #000;
    padding: 60px 0;
    text-align: center;
}

.banner h3 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #121212;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-muted);
}

.contact-form-placeholder {
    flex: 1;
    min-width: 300px;
}

.form-box {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.form-box h3 {
    margin-bottom: 15px;
}

.form-box p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #000;
    border-top: 1px solid #222;
    text-align: center;
    color: #666;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        padding-bottom: 10px;
    }

    nav {
        margin-top: 15px;
    }

    nav ul {
        gap: 20px;
    }

    nav ul li {
        margin-left: 0;
    }

    .swipe-hint {
        display: none;
    }
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--bg-dark);
    /* Changed from light to dark */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item img {
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(247, 200, 68, 0.95);
    /* Adjusted Gold/Yellow opacity */
    color: #111;
    transition: bottom 0.4s ease;
}

.project-item:hover .project-overlay {
    bottom: 0;
}

.project-overlay h4 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #000;
    /* Ensure text is black on gold background */
}