/* 
  Design System for Rotted Roof Decking Swap 
  Premium, Professional, Vibrant
*/

:root {
    --primary: #ff5e14;
    /* Vibrant Construction Orange */
    --secondary: #0a1128;
    /* Deep Midnight Blue/Slate */
    --accent: #ffb400;
    /* Golden Yellow */
    --bg-dark: #121212;
    /* Rich Dark Background */
    --text-light: #f8f9fa;
    --text-dim: #ced4da;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 40px 40px;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Add a very subtle 'paper' or 'grain' texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 94, 20, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 94, 20, 0.5);
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 40%, transparent), url('https://images.unsplash.com/photo-1620050861296-980e55041933?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 94, 20, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Services */
.services {
    padding: 8rem 10%;
    background-color: #0c0c0c;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--glass);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 94, 20, 0.05);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-dim);
}

/* Features */
.features {
    padding: 8rem 10%;
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
}

.features-image {
    flex: 1;
    min-height: 400px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotate(-2deg);
    /* Added a slight 'human' tilt */
    border: 4px solid var(--glass-border);
    background: var(--glass);
}

.features-image img {
    width: 100%;
    display: block;
}

.features-content {
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Call to Action Bar */
.cta-bar {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 5rem 10%;
    text-align: center;
    border-radius: 40px;
    margin: 0 5% 8rem 5%;
}

.cta-bar h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Contact */
.contact {
    padding: 8rem 10%;
    background: var(--bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.info-box {
    margin-bottom: 2rem;
}

.info-box p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.info-box strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero h1 {
        font-size: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .features {
        flex-direction: column;
    }

    nav {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }
}