:root {
    --dark-bg: #0a0e17;
    --dark-secondary: #151b2b;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffb800;
    --text-light: #e8eaed;
    --text-dim: #9ba3b4;
    --overlay: rgba(10, 14, 23, 0.85);
}

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

body {
    font-family: 'Barlow', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 100;
    background: linear-gradient(180deg, var(--overlay) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-placeholder {
    width: 120px;
    height: 60px;
    border: 3px solid var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: skewX(-5deg);
    transition: all 0.3s ease;
}

.logo-placeholder:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* Logo Image */
.logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 107, 53, 0.4));
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* Rooftop Scene */
.rooftop-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1000px;
}

/* Main Roof Structure */
.roof-main {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 60%;
}

.roof-side {
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    transform-origin: bottom;
}

.roof-left {
    left: 0;
    background: linear-gradient(165deg, 
        rgba(255, 107, 53, 0.15) 0%,
        rgba(255, 107, 53, 0.08) 50%,
        rgba(255, 107, 53, 0.03) 100%
    );
    clip-path: polygon(100% 100%, 0% 100%, 50% 0%);
    animation: roofBreath 8s ease-in-out infinite;
}

.roof-right {
    right: 0;
    background: linear-gradient(195deg, 
        rgba(255, 184, 0, 0.12) 0%,
        rgba(255, 107, 53, 0.08) 50%,
        rgba(255, 107, 53, 0.03) 100%
    );
    clip-path: polygon(0% 100%, 100% 100%, 50% 0%);
    animation: roofBreath 8s ease-in-out infinite;
    animation-delay: -1s;
}

.roof-ridge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 107, 53, 0.3),
        transparent
    );
    box-shadow: 0 2px 20px rgba(255, 107, 53, 0.2);
}

/* Shingles Pattern */
.shingles-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
}

.shingle-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    animation: shingleFloat 6s ease-in-out infinite;
}

.row-1 {
    animation-delay: 0s;
}

.row-2 {
    animation-delay: -2s;
    margin-top: -10px;
}

.row-3 {
    animation-delay: -4s;
    margin-top: -10px;
}

.shingle {
    width: 80px;
    height: 35px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2),
        rgba(255, 107, 53, 0.1)
    );
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(255, 107, 53, 0.15);
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shingle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: rgba(255, 184, 0, 0.3);
    border-radius: 2px;
}

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

/* Chimney */
.chimney {
    position: absolute;
    top: 15%;
    right: 25%;
    animation: chimneyFloat 10s ease-in-out infinite;
}

.chimney-body {
    width: 60px;
    height: 120px;
    background: linear-gradient(90deg, 
        rgba(255, 107, 53, 0.15),
        rgba(255, 107, 53, 0.1)
    );
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 4px;
    position: relative;
}

.chimney-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 107, 53, 0.2);
}

.chimney-body::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 107, 53, 0.2);
}

.chimney-cap {
    width: 70px;
    height: 15px;
    background: linear-gradient(180deg, 
        rgba(255, 184, 0, 0.2),
        rgba(255, 107, 53, 0.15)
    );
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 3px;
    margin-left: -5px;
    margin-top: -2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sky Elements - Clouds */
.sky-element {
    position: absolute;
    animation: cloudFloat 30s linear infinite;
}

.cloud {
    width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    position: relative;
}

.cloud::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cloud::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cloud-1 {
    top: 10%;
    left: -100px;
    animation-duration: 40s;
}

.cloud-2 {
    top: 30%;
    left: -150px;
    animation-duration: 50s;
    animation-delay: -20s;
    opacity: 0.5;
}

/* Animations */
@keyframes roofBreath {
    0%, 100% {
        opacity: 0.8;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.1);
    }
}

@keyframes shingleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes chimneyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes cloudFloat {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

/* Rooftop Logo */
.rooftop-logo {
    position: absolute;
    top: 8%;
    right: 15%;
    z-index: 60;
    animation: logoFloat 6s ease-in-out infinite;
}

.rooftop-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.rooftop-logo:hover img {
    transform: scale(1.05);
}

/* Smaller logo for secondary pages */
.rooftop-logo-small {
    top: 12%;
    right: 12%;
}

.rooftop-logo-small img {
    width: 120px;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Crow Mascot */
.crow-mascot {
    position: absolute;
    top: 18%;
    left: 15%;
    z-index: 50;
    animation: crowBob 4s ease-in-out infinite;
}

.crow-mascot img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.crow-mascot:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Smaller crow for secondary pages */
.crow-small {
    top: 20%;
    left: 10%;
}

.crow-small img {
    width: 70px;
}

@keyframes crowBob {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-2deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
    max-width: 1200px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-light), var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 107, 53, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-dim);
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-light);
    border: 3px solid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: skewX(-5deg);
}

.cta-text {
    position: relative;
    z-index: 2;
    transform: skewX(5deg);
}

.cta-icon {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: skewX(5deg);
}

.cta-primary {
    border-color: var(--accent-orange);
    background: var(--accent-orange);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-yellow);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.cta-primary:hover::before {
    left: 0;
}

.cta-primary:hover .cta-icon {
    transform: skewX(5deg) translateX(5px);
}

.cta-secondary {
    border-color: var(--accent-orange);
    background: transparent;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.cta-secondary:hover::before {
    left: 0;
}

.cta-secondary:hover .cta-icon {
    transform: skewX(5deg) translateX(5px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--accent-orange));
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% {
        opacity: 0.3;
        height: 60px;
    }
    50% {
        opacity: 1;
        height: 80px;
    }
}

/* Info Section */
.info-section {
    padding: 8rem 4rem;
    background: var(--dark-secondary);
    position: relative;
}

.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-card {
    padding: 3rem 2rem;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 184, 0, 0.1));
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-10px);
}

.info-card:hover::before {
    left: 0;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.info-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.info-card p {
    color: var(--text-dim);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Footer */
.main-footer {
    padding: 3rem 4rem;
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
.animate-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

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

.animate-slide {
    opacity: 0;
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page-specific styles */
.main-nav {
    display: flex;
    gap: 2rem;
    position: relative;
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.nav-link.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.logo-container a {
    text-decoration: none;
}

.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: 0.05em;
}

.title-accent {
    color: var(--accent-orange);
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-dim);
    margin-top: 1rem;
}

/* Content Section */
.content-section {
    padding: 4rem 2rem;
    background: var(--dark-secondary);
}

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

.content-block {
    margin-bottom: 4rem;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-accent {
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-yellow));
}

.content-block h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.content-block p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.service-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-left: 4px solid var(--accent-orange);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.05));
    transition: left 0.4s ease;
}

.service-card:hover {
    transform: translateX(5px);
}

.service-card:hover::before {
    left: 0;
}

.service-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--accent-orange);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-dim);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

/* Features Block */
.features-block {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--dark-bg);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.features-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

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

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon {
    color: var(--accent-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Expertise Section */
.expertise-section {
    margin: 4rem 0;
}

.expertise-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    color: var(--text-light);
}

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

.expertise-item {
    background: var(--dark-bg);
    padding: 2rem;
    border-top: 3px solid var(--accent-orange);
}

.expertise-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.expertise-item p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--dark-bg);
    margin: 4rem 0;
    border: 2px solid var(--accent-orange);
}

.cta-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: var(--accent-orange);
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    transform: skewX(-5deg);
}

.contact-button span {
    transform: skewX(5deg);
}

.contact-button:hover {
    background: var(--accent-yellow);
    transform: skewX(-5deg) translateY(-3px);
}

.button-icon {
    font-size: 1.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.3rem 0.5rem;
    }
    
    .cta-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .info-section, .content-section {
        padding: 4rem 2rem;
    }
    
    .info-grid, .services-grid, .features-grid, .expertise-list {
        gap: 2rem;
    }
    
    .features-block {
        padding: 2rem 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-button {
        width: 100%;
    }
    
    /* Rooftop logo on mobile */
    .rooftop-logo {
        top: 5%;
        right: 5%;
    }
    
    .rooftop-logo img {
        width: 100px;
    }
    
    .rooftop-logo-small img {
        width: 80px;
    }
    
    /* Crow positioning on mobile */
    .crow-mascot {
        top: 8%;
        left: 5%;
    }
    
    .crow-mascot img {
        width: 50px;
    }
    
    .crow-small {
        top: 10%;
        left: 5%;
    }
    
    .crow-small img {
        width: 40px;
    }
}
