/* 
   Variable Definitions 
   Premium Dark Theme for Contractor Agency 
*/
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;

    /* Vibrant Accent - Orange/Amber for construction/industrial feel but premium */
    --accent: #F97316;
    --accent-hover: #EA580C;
    --accent-glow: rgba(249, 115, 22, 0.2);

    /* Functional Colors */
    --success: #22c55e;
    --error: #ef4444;
    --border: #262626;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - Fluid Sizing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-lg: clamp(3rem, 5vw, 5rem);
    --spacing-xl: clamp(5rem, 8vw, 10rem);

    /* Layout */
    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Custom Text Selection */
::selection {
    background-color: rgba(249, 115, 22, 0.3);
    /* Brand accent with slight transparency */
    color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    max-width: 65ch;
}

.text-accent {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section+.section {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    border-color: var(--text-primary);
    background-color: rgb(255, 255, 255);
    color: black;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgb(255, 255, 255);
    color: black;
}

.btn-full {
    width: 100%;
}

.btn-large {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar .btn-primary {
    background-color: white;
    color: black;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

.logo img {
    height: 32px;
    /* adjust to your navbar height */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 28px;
    }
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-icon {
    color: var(--accent);
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-direction: row;
}

@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
    }
}

/* Dual Marquee Section */
.dual-marquee-section {
    padding: 0 0 6rem 0;
    display: flex;
    flex-direction: column;
    gap: 64px;
    /* Space between marquees */
    overflow: hidden;
    position: relative;
    background-color: var(--bg-dark);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.marquee-container::before,
.marquee-container::after {
    display: none;
}

.marquee-track {
    display: flex;
    gap: 0;
    /* Use margins on items for perfect -50% calculations */
    width: max-content;
    animation-play-state: running;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Directions */
.marquee-projects .marquee-track {
    animation: scroll-left 50s linear infinite;
}

.marquee-brands .marquee-track {
    animation: scroll-right 40s linear infinite;
}

/* Project Items */
.marquee-item {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 2rem;
    /* Consistent spacing */
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.marquee-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.02);
    border-color: var(--accent);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-sm {
    width: 184px;
}

.item-md {
    width: 400px;
}

.item-lg {
    width: 640px;
}

/* Brand Items */
.brand-item {
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 4rem;
    /* Larger spacing for logos */
}

.brand-item img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    opacity: 1;
}

/* Animations - Simplified for margin-based -50% shift */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-66.66%);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

@media (max-width: 768px) {
    .dual-marquee-section {
        gap: 40px;
    }

    .marquee-item {
        height: 300px;
    }
}

/* Comparison Section */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.icon-bad {
    color: var(--error);
}

.icon-good {
    color: var(--success);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Pricing */
.pricing-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--spacing-lg);
}

.pricing-features li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '';
    /* handled by text checkmark */
}

.pricing-card {
    background-color: #000;
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.price-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    margin-bottom: 1rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    align-self: flex-end;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.price-sub {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Mega Footer */
.mega-footer {
    background-color: #000;
    padding: 8rem 0 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mega-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.mega-headline {
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.text-outline {
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.btn-mega {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    gap: 1rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-column h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.nav-column a {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.nav-column a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.nav-column p {
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.founder-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.founder-placeholder::before {
    content: 'Founder Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}



.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .mega-footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .mega-headline {
        font-size: 3rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        /* Logo on top on mobile? Or simple stack */
        gap: 1rem;
    }
}

/* Final CTA */
.cta-section {
    text-align: center;
}

.cta-content {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.cta-title {
    margin-bottom: 1.5rem;
    max-width: 20ch;
}

.cta-subtitle {
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    background-color: var(--bg-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 968px) {
    :root {
        --spacing-xl: 6rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .pricing-wrapper {
        grid-template-columns: 1fr;
        padding: 1rem;
        text-align: left;
        gap: 2rem;
    }

    .pricing-features li {
        justify-content: flex-start;
        font-size: 1.1rem;
    }

    .pricing-cta-mobile {
        text-align: left;
        width: 100%;
    }

    .pricing-card {
        margin-top: 2rem;
    }
}


/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.case-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    /* Keep excessive glow subtle */
    border-color: var(--accent);
}

.case-image-container {
    display: block;
    height: 300px;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #262626);
    display: none;
    /* Hide if still present */
}

.case-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    margin-bottom: 1.5rem;
}

.case-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.center-btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* Testimonials */
.bg-card-alt {
    background-color: #080808;
    /* Slightly lighter/different than bg-dark */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info strong {
    display: block;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* About Founder Redesign */
.about-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image-centered {
    margin-bottom: 2rem;
}

.founder-image-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.about-content .section-title {
    margin-bottom: 2rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.about-text {
    max-width: 60ch;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-about {
    background-color: white;
    color: black;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-about:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust as needed */
}

/* Responsive Updates */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }

    /* .case-studies-grid handled by auto-fit minmax(300px) - will be 2 cols on tablet, 1 on mobile */
}

@media (max-width: 600px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        justify-content: center;
    }

    .sm-hidden {
        display: none;
    }

    .pricing-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        width: calc(100% + 2rem);
    }
}