:root {
    --primary: #f59e0b; /* Handyman Amber */
    --primary-dark: #d97706;
    --accent: #3b82f6; /* Trust Blue */
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #0f172a 100%);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--primary); }

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.badge {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: inline-block;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

h1 em {
    font-style: normal;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Interactive Services */
.services-interactive {
    margin-bottom: 6rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 3rem;
    text-align: center;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.service-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 16px;
}

.service-tab:hover, .service-tab.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.service-tab .icon {
    font-size: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.service-pill {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: inherit;
}

.service-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    font-weight: bold;
}

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

/* Service Description Cards */
.service-desc {
    margin-top: 2rem;
    border-radius: 24px;
    background: var(--card-bg);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease;
    padding: 0;
}

.desc-card {
    background: transparent;
    color: var(--text-color);
    padding: 3rem;
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.desc-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.desc-card ul {
    list-style: none;
    margin: 0; padding: 0;
}

.desc-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chk {
    color: var(--primary);
    font-weight: bold;
}

.desc-image {
    flex: 1;
    position: relative;
}

.desc-image::before {
    content: '';
    position: absolute;
    top: 0; left: -1px; width: 100%; height: 100%;
    /* Create a smooth fade from the dark background into the image */
    background: linear-gradient(to right, var(--card-bg) 0%, transparent 50%);
    z-index: 1;
}

.desc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
}

/* Testimonials Section */
.testimonials {
    margin-bottom: 6rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.stars {
    font-size: 0.9rem;
    margin-top: 3px;
}

.platform-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.tr-badge { background: #e8f5e9; color: #2e7d32; }
.tt-badge { background: #e3f2fd; color: #1565c0; }
.yelp-badge { background: #ffebee; color: #c62828; }

.review-card p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Form Section */
.contact-section {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 4rem;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

input, select, textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

button.submit-btn {
    padding: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.submit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Portfolio Section */
.portfolio {
    margin-bottom: 6rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.item-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Before/After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    user-select: none;
}

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

.before-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.before-img-container .before-img {
    width: auto;
    height: 100%;
    max-width: none;
    position: absolute;
    left: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
}

.slider-button {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.slider-button::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Project Gallery */
.project-gallery {
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(0,0,0,0.3);
}

.gallery-thumbs img {
    flex: 1;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.gallery-thumbs img:hover {
    opacity: 1;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Internal Linking */
.internal-linking {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.internal-linking h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.internal-linking .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.internal-linking .service-pill {
    text-decoration: none;
    font-size: 0.9rem;
}

/* Blog Styles */
.blog-article {
    max-width: 800px;
    margin: 4rem auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.blog-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.blog-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.blog-article h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.blog-article h2 {
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.blog-article p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.blog-cta {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    text-align: center;
}

.blog-cta h3 { color: white; margin-bottom: 0.5rem; }
.blog-cta p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.blog-cta .cta-button {
    background: white;
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .contact-section { grid-template-columns: 1fr; padding: 2rem; }
}
