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

:root {
    --primary-cyan: #00ffff;
    --primary-blue: #0080ff;
    --dark-bg: #0a0e1a;
    --darker-bg: #060914;
    --grid-color: rgba(0, 255, 255, 0.1);
    --text-light: #e0f7ff;
    --text-dim: #7899b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Construction Site Background */
.construction-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
    overflow: hidden;
}

/* Crane Styles */
.crane {
    position: absolute;
    transform-origin: bottom center;
}

.crane-base {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #444, #222);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.crane-tower {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    background: repeating-linear-gradient(
        0deg,
        #333,
        #333 10px,
        var(--primary-cyan) 10px,
        var(--primary-cyan) 12px
    );
    border-left: 2px solid var(--primary-cyan);
    border-right: 2px solid var(--primary-cyan);
}

.crane-arm {
    position: absolute;
    top: 0;
    left: 50%;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        #333,
        #333 10px,
        var(--primary-cyan) 10px,
        var(--primary-cyan) 12px
    );
    border-top: 2px solid var(--primary-cyan);
    border-bottom: 2px solid var(--primary-cyan);
    transform-origin: left center;
    animation: craneRotate 20s ease-in-out infinite;
}

@keyframes craneRotate {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
}

.crane-cable {
    position: absolute;
    right: 0;
    top: 100%;
    width: 2px;
    background: var(--primary-cyan);
    transform-origin: top center;
}

.crane-hook {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    border: 3px solid var(--primary-cyan);
    border-radius: 0 0 50% 50%;
    border-top: none;
    animation: hookSwing 4s ease-in-out infinite;
}

@keyframes hookSwing {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

.crane-load {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #666, #444);
    border: 2px solid var(--primary-cyan);
    animation: loadSway 4s ease-in-out infinite;
}

@keyframes loadSway {
    0%, 100% { transform: translateX(-50%) rotate(-2deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

/* Individual Crane Positions */
.crane-1 {
    bottom: 0;
    left: 15%;
}

.crane-1 .crane-tower {
    height: 400px;
}

.crane-1 .crane-arm {
    width: 250px;
    animation-delay: 0s;
}

.crane-1 .crane-cable {
    height: 150px;
    animation: cableExtend1 8s ease-in-out infinite;
}

@keyframes cableExtend1 {
    0%, 100% { height: 150px; }
    50% { height: 250px; }
}

.crane-2 {
    bottom: 0;
    right: 20%;
}

.crane-2 .crane-tower {
    height: 350px;
}

.crane-2 .crane-arm {
    width: 200px;
    animation-delay: -10s;
    animation-duration: 25s;
}

.crane-2 .crane-cable {
    height: 120px;
    animation: cableExtend2 10s ease-in-out infinite;
}

@keyframes cableExtend2 {
    0%, 100% { height: 120px; }
    50% { height: 200px; }
}

.crane-3 {
    bottom: 0;
    left: 45%;
}

.crane-3 .crane-tower {
    height: 450px;
}

.crane-3 .crane-arm {
    width: 280px;
    animation-delay: -5s;
    animation-duration: 22s;
}

.crane-3 .crane-cable {
    height: 180px;
    animation: cableExtend3 12s ease-in-out infinite;
}

@keyframes cableExtend3 {
    0%, 100% { height: 180px; }
    50% { height: 280px; }
}

/* Building Under Construction */
.building-frame {
    position: absolute;
    bottom: 0;
    perspective: 1000px;
}

.building-level {
    position: absolute;
    width: 100%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(0, 255, 255, 0.05) 20px,
        rgba(0, 255, 255, 0.05) 22px
    );
}

.building-1-frame {
    left: 10%;
    width: 150px;
    height: 300px;
}

.building-2-frame {
    right: 25%;
    width: 120px;
    height: 250px;
}

.building-3-frame {
    left: 40%;
    width: 180px;
    height: 350px;
}

/* Hoist System */
.hoist {
    position: absolute;
    width: 80px;
}

.hoist-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: repeating-linear-gradient(
        0deg,
        #555,
        #555 5px,
        var(--primary-cyan) 5px,
        var(--primary-cyan) 7px
    );
    border-left: 1px solid var(--primary-cyan);
    border-right: 1px solid var(--primary-cyan);
}

.hoist-car {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: linear-gradient(180deg, #444, #222);
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    animation: hoistMove 15s ease-in-out infinite;
}

.hoist-1 {
    left: 8%;
    bottom: 0;
}

.hoist-1 .hoist-track {
    height: 320px;
}

.hoist-1 .hoist-car {
    animation-delay: 0s;
}

@keyframes hoistMove {
    0%, 100% { bottom: 0; }
    50% { bottom: 240px; }
}

.hoist-2 {
    right: 15%;
    bottom: 0;
}

.hoist-2 .hoist-track {
    height: 280px;
}

.hoist-2 .hoist-car {
    animation-delay: -7s;
    animation-duration: 18s;
}

/* Construction Particles */
.sparks {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: spark 2s linear infinite;
}

@keyframes spark {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100px) translateX(var(--spark-x));
    }
}

.spark-1 { --spark-x: 20px; top: 150px; left: 15%; animation-delay: 0s; }
.spark-2 { --spark-x: -15px; top: 180px; left: 16%; animation-delay: 0.5s; }
.spark-3 { --spark-x: 10px; top: 140px; right: 21%; animation-delay: 0.2s; }
.spark-4 { --spark-x: -20px; top: 160px; right: 19%; animation-delay: 0.8s; }
.spark-5 { --spark-x: 25px; top: 120px; left: 46%; animation-delay: 0.3s; }
.spark-6 { --spark-x: -10px; top: 100px; left: 44%; animation-delay: 1s; }

/* Grid Floor */
.construction-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(0, 255, 255, 0.02)
    );
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    perspective: 1000px;
}

.floor-grid {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 255, 0.1) 50px,
            rgba(0, 255, 255, 0.1) 52px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 255, 0.1) 50px,
            rgba(0, 255, 255, 0.1) 52px
        );
    transform: rotateX(60deg);
    transform-origin: bottom center;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: none;
}

.logo svg {
    height: 30px;
    display: block;
}

.logo .logo-icon {
    transform-box: fill-box;
    transform-origin: center;
    animation: rotate 10s linear infinite;
}

/* Speed up icon on hover */
.logo:hover .logo-icon {
    animation-duration: 4s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 80px;
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glowText 3s ease-in-out infinite alternate;
}

@keyframes glowText {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8));
    }
}

.hero-text .highlight {
    color: var(--primary-cyan);
    font-weight: 600;
}

.hero-text p {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.4);
}

.secondary-button {
    padding: 15px 40px;
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.1);
}

/* 3D Visualization */
.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.floating-dashboard {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(5deg) rotateY(-10deg);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-10deg);
    }
}

.dashboard-card {
    position: absolute;
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1);
}

.card-1 {
    top: 20%;
    left: 10%;
    width: 250px;
    animation: pulse 4s ease-in-out infinite;
}

.card-2 {
    top: 40%;
    right: 10%;
    width: 280px;
    animation: pulse 4s ease-in-out 1s infinite;
}

.card-3 {
    bottom: 20%;
    left: 25%;
    width: 240px;
    animation: pulse 4s ease-in-out 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.dashboard-card h3 {
    font-size: 14px;
    color: var(--primary-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.metric-label {
    color: var(--text-dim);
    font-size: 13px;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mini-chart {
    height: 40px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.3));
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.mini-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-cyan);
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(-50%) scaleY(1);
    }
    50% {
        transform: translateY(-50%) scaleY(2);
    }
}

/* Stats Section */
.stats {
    position: relative;
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--dark-bg), var(--darker-bg));
    z-index: 2;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
}

.stat-number {
    font-size: 48px;
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features {
    position: relative;
    padding: 100px 5%;
    z-index: 2;
}

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

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 20px;
    margin-bottom: 80px;
}

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

.feature-card {
    padding: 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-description {
    color: var(--text-dim);
    line-height: 1.6;
}

/* AI Chat Demo */
.ai-demo {
    position: relative;
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--darker-bg), var(--dark-bg));
    z-index: 2;
}

.ai-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-window {
    background: rgba(10, 14, 26, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    min-height: 400px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.ai-status {
    width: 10px;
    height: 10px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.chat-messages {
    margin-bottom: 30px;
}

.message {
    margin: 20px 0;
    animation: slideIn 0.5s;
}

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

.user-message {
    text-align: right;
}

.user-message .bubble {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 15px 20px;
    border-radius: 20px 20px 5px 20px;
    max-width: 70%;
}

.ai-message .bubble {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 128, 255, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 20px 20px 20px 5px;
    max-width: 70%;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 16px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.chat-input button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border: none;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* Footer */
footer {
    position: relative;
    padding: 60px 5% 30px;
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    z-index: 2;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-cyan);
    margin-bottom: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 10px 0;
}

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-dim);
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-cyan);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(100px);
    }
}

/* Page Hero - for subpages */
.page-hero {
    margin-top: 80px;
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(180deg, var(--darker-bg), var(--dark-bg));
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

/* Solutions Grid - for subpages */
.solutions-grid {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.solution-card {
    padding: 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.solution-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.solution-card p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}

.solution-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.solution-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.solution-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
}

.learn-more {
    display: inline-block;
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.learn-more:hover {
    transform: translateX(5px);
}

/* Content Sections - for subpages */
.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff, var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Feature Grid - for subpages */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    padding: 30px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-cyan);
}

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

/* Form Styles - for subpages */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-cyan);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    border: none;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* Blog Grid - for subpages */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.blog-card {
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
}

.blog-card-content {
    padding: 30px;
}

.blog-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.blog-card .date {
    color: var(--primary-cyan);
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

/* Enhanced 3D Construction Site Effects */
/* Updated construction background with enhanced 3D effects */
.construction-bg {
    opacity: 0.9;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Construction Site Ground */
.construction-ground {
    position: absolute;
    bottom: 0;
    width: 120%;
    height: 200px;
    left: -10%;
    background: linear-gradient(
        135deg,
        rgba(0, 50, 70, 0.3),
        rgba(0, 30, 50, 0.2)
    );
    transform: rotateX(75deg) translateZ(-50px);
    transform-origin: bottom center;
}

.ground-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(0, 255, 255, 0.15) 40px,
            rgba(0, 255, 255, 0.15) 42px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(0, 255, 255, 0.15) 40px,
            rgba(0, 255, 255, 0.15) 42px
        );
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 3D Tower Cranes */
.crane-3d {
    position: absolute;
    bottom: 0;
    transform-style: preserve-3d;
    transform-origin: bottom center;
}

.crane-base-3d {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 80px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 3px solid var(--primary-cyan);
    border-radius: 5px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 5px 10px rgba(0, 255, 255, 0.1);
    transform: translateZ(20px);
}

.crane-base-3d::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1));
    border-radius: 8px;
    z-index: -1;
}

.crane-tower-3d {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateZ(10px);
    width: 25px;
    background: repeating-linear-gradient(
        0deg,
        #333 0px,
        #333 15px,
        var(--primary-cyan) 15px,
        var(--primary-cyan) 17px,
        #444 17px,
        #444 32px
    );
    border: 2px solid var(--primary-cyan);
    border-radius: 2px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        5px 0 15px rgba(0, 0, 0, 0.5);
}

.crane-jib-3d {
    position: absolute;
    top: 0;
    left: 50%;
    height: 20px;
    background: linear-gradient(90deg, #444, #555, #444);
    border: 2px solid var(--primary-cyan);
    border-radius: 2px;
    transform-origin: left center;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(0, 255, 255, 0.2);
    animation: craneJibRotate 25s ease-in-out infinite;
}

@keyframes craneJibRotate {
    0%, 100% { transform: rotateZ(-25deg) rotateY(10deg); }
    33% { transform: rotateZ(25deg) rotateY(-15deg); }
    66% { transform: rotateZ(-15deg) rotateY(20deg); }
}

.crane-counter-jib-3d {
    position: absolute;
    top: 0;
    right: 50%;
    width: 80px;
    height: 15px;
    background: linear-gradient(90deg, #555, #666);
    border: 2px solid rgba(0, 255, 255, 0.7);
    border-radius: 2px;
    transform-origin: right center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.crane-trolley {
    position: absolute;
    top: -10px;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, var(--primary-cyan), #0088aa);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    animation: trolleyMove 12s ease-in-out infinite;
}

@keyframes trolleyMove {
    0%, 100% { left: 20%; }
    50% { left: 80%; }
}

.crane-cable-3d {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(0deg, var(--primary-cyan), rgba(0, 255, 255, 0.5));
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    animation: cableExtend 8s ease-in-out infinite;
}

@keyframes cableExtend {
    0%, 100% { height: 120px; }
    50% { height: 200px; }
}

.crane-hook-3d {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 25px;
    border: 3px solid var(--primary-cyan);
    border-radius: 0 0 50% 50%;
    border-top: none;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.2));
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    animation: hookSway 6s ease-in-out infinite;
}

@keyframes hookSway {
    0%, 100% { transform: translateX(-50%) rotate(-3deg); }
    50% { transform: translateX(-50%) rotate(3deg); }
}

/* Individual 3D Crane Positions */
.crane-3d-1 {
    left: 8%;
    transform: scale(1.1) rotateY(15deg);
    z-index: 10;
}

.crane-3d-1 .crane-tower-3d {
    height: 420px;
}

.crane-3d-1 .crane-jib-3d {
    width: 280px;
    animation-delay: 0s;
}

.crane-3d-2 {
    right: 15%;
    transform: scale(0.9) rotateY(-20deg);
    z-index: 5;
}

.crane-3d-2 .crane-tower-3d {
    height: 380px;
}

.crane-3d-2 .crane-jib-3d {
    width: 220px;
    animation-delay: -8s;
    animation-duration: 30s;
}

.crane-3d-3 {
    left: 35%;
    transform: scale(1.05) rotateY(25deg);
    z-index: 8;
}

.crane-3d-3 .crane-tower-3d {
    height: 450px;
}

.crane-3d-3 .crane-jib-3d {
    width: 320px;
    animation-delay: -15s;
    animation-duration: 28s;
}

.crane-3d-4 {
    right: 35%;
    transform: scale(0.85) rotateY(-10deg);
    z-index: 3;
}

.crane-3d-4 .crane-tower-3d {
    height: 340px;
}

.crane-3d-4 .crane-jib-3d {
    width: 200px;
    animation-delay: -20s;
    animation-duration: 35s;
}

/* 3D Building Structures */
.building-3d {
    position: absolute;
    bottom: 0;
    transform-style: preserve-3d;
    transform-origin: bottom center;
}

.building-frame-3d {
    position: absolute;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 50, 80, 0.3), rgba(0, 30, 60, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 5px;
    transform-style: preserve-3d;
}

.building-floor {
    position: absolute;
    width: 100%;
    height: 50px;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 255, 0.1),
        rgba(0, 200, 200, 0.05),
        rgba(0, 255, 255, 0.1)
    );
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 2px;
}

.steel-beam {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), #0088aa, var(--primary-cyan));
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    border-radius: 2px;
}

.steel-column {
    position: absolute;
    width: 6px;
    background: linear-gradient(0deg, #444, var(--primary-cyan), #444);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* Building 1 - Tallest, most complete */
.building-3d-1 {
    left: 12%;
    transform: rotateY(10deg) scale(1.1);
    z-index: 7;
}

.building-3d-1 .building-frame-3d {
    width: 180px;
    height: 400px;
}

/* Building 2 - Medium, in construction */
.building-3d-2 {
    right: 25%;
    transform: rotateY(-15deg) scale(0.9);
    z-index: 4;
}

.building-3d-2 .building-frame-3d {
    width: 140px;
    height: 280px;
}

/* Building 3 - Background, early stage */
.building-3d-3 {
    left: 45%;
    transform: rotateY(20deg) scale(0.7) translateZ(-100px);
    z-index: 2;
}

.building-3d-3 .building-frame-3d {
    width: 120px;
    height: 200px;
}

/* Construction Equipment */
.excavator {
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 60px;
    transform-style: preserve-3d;
    animation: excavatorWork 8s ease-in-out infinite;
}

.excavator-body {
    position: absolute;
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #ffaa00, #cc8800);
    border: 2px solid rgba(255, 170, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.excavator-arm {
    position: absolute;
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, #ffaa00, #ee9900);
    border-radius: 4px;
    transform-origin: left center;
    animation: excavatorArmMove 4s ease-in-out infinite;
}

@keyframes excavatorArmMove {
    0%, 100% { transform: rotate(-20deg); }
    50% { transform: rotate(-40deg); }
}

@keyframes excavatorWork {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(20px); }
    75% { transform: translateX(-15px); }
}

.excavator-1 {
    left: 5%;
    transform: scale(0.8) rotateY(25deg);
}

.excavator-2 {
    right: 8%;
    transform: scale(0.9) rotateY(-30deg);
    animation-delay: -3s;
}

/* Concrete Mixer */
.concrete-mixer {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 70px;
    transform-style: preserve-3d;
    animation: mixerMove 15s linear infinite;
}

.mixer-truck {
    position: absolute;
    width: 80px;
    height: 35px;
    background: linear-gradient(135deg, #666, #888);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 5px;
}

.mixer-drum {
    position: absolute;
    top: -20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #999, #aaa);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    animation: drumRotate 2s linear infinite;
}

@keyframes drumRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mixerMove {
    0% { left: -10%; }
    100% { left: 110%; }
}

.concrete-mixer-1 {
    animation-delay: 0s;
    bottom: 20px;
}

.concrete-mixer-2 {
    animation-delay: -8s;
    bottom: 10px;
    animation-duration: 18s;
}

/* Atmospheric Effects */
.dust-cloud {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.1),
        rgba(0, 200, 200, 0.05),
        transparent
    );
    animation: dustFloat 8s ease-in-out infinite;
}

@keyframes dustFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-50px) scale(1.2);
        opacity: 0.1;
    }
}

.dust-1 { 
    width: 80px; height: 60px; 
    bottom: 100px; left: 10%; 
    animation-delay: 0s; 
}
.dust-2 { 
    width: 120px; height: 80px; 
    bottom: 120px; right: 20%; 
    animation-delay: -3s; 
}
.dust-3 { 
    width: 60px; height: 40px; 
    bottom: 80px; left: 40%; 
    animation-delay: -6s; 
}

/* Welding Sparks */
.welding-sparks {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffff00, #ffaa00);
    border-radius: 50%;
    box-shadow: 0 0 15px #ffff00;
    animation: sparkFly 1.5s linear infinite;
}

@keyframes sparkFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--spark-dx), var(--spark-dy)) scale(0.3);
    }
}

.spark-weld-1 { --spark-dx: 30px; --spark-dy: -40px; top: 200px; left: 15%; animation-delay: 0s; }
.spark-weld-2 { --spark-dx: -25px; --spark-dy: -35px; top: 220px; left: 17%; animation-delay: 0.3s; }
.spark-weld-3 { --spark-dx: 20px; --spark-dy: -50px; top: 180px; right: 28%; animation-delay: 0.1s; }
.spark-weld-4 { --spark-dx: -30px; --spark-dy: -30px; top: 160px; right: 26%; animation-delay: 0.7s; }
.spark-weld-5 { --spark-dx: 35px; --spark-dy: -45px; top: 240px; left: 47%; animation-delay: 0.5s; }
.spark-weld-6 { --spark-dx: -20px; --spark-dy: -55px; top: 190px; left: 43%; animation-delay: 0.9s; }

/* Smoke Effects */
.smoke {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(
        circle,
        rgba(100, 100, 100, 0.3),
        rgba(150, 150, 150, 0.1),
        transparent
    );
    border-radius: 50%;
    animation: smokeRise 6s ease-out infinite;
}

@keyframes smokeRise {
    0% {
        opacity: 0.6;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(2) rotate(180deg);
    }
}

.smoke-1 { bottom: 150px; left: 8%; animation-delay: 0s; }
.smoke-2 { bottom: 180px; left: 10%; animation-delay: -2s; }
.smoke-3 { bottom: 160px; right: 18%; animation-delay: -1s; }
.smoke-4 { bottom: 140px; right: 16%; animation-delay: -4s; }

/* Lighting Effects */
.construction-light {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.15),
        rgba(0, 200, 255, 0.08),
        transparent
    );
    border-radius: 50%;
    animation: lightPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.light-1 { top: 20%; left: 10%; animation-delay: 0s; }
.light-2 { top: 15%; right: 20%; animation-delay: -1s; }
.light-3 { top: 25%; left: 40%; animation-delay: -2s; }

/* Equipment Shadows */
.equipment-shadow {
    position: absolute;
    background: radial-gradient(
        ellipse,
        rgba(0, 0, 0, 0.4),
        transparent
    );
    border-radius: 50%;
}

.shadow-crane-1 { 
    width: 100px; height: 30px; 
    bottom: -5px; left: 8%; 
    transform: rotateY(15deg); 
}
.shadow-crane-2 { 
    width: 80px; height: 25px; 
    bottom: -5px; right: 15%; 
    transform: rotateY(-20deg); 
}
.shadow-excavator-1 { 
    width: 80px; height: 40px; 
    bottom: -5px; left: 5%; 
}
.shadow-building-1 { 
    width: 200px; height: 60px; 
    bottom: -10px; left: 12%; 
}

/* Enhanced Logo Animations */
.logo::before {
    content: none;
}

.logo svg {
    height: 30px;
    display: block;
}

/* Wordmark with text from smartsite.svg */
.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: textShimmer 5s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}

/* Wordmark subtle glow */
.logo .logo-wordmark {
    animation: glowPulse 3.5s ease-in-out infinite;
}

/* Speed up icon on hover */
.logo:hover .logo-icon {
    animation-duration: 2s, 1.5s, 1s, 2s;
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.25)); }
    50% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6)); }
    100% { filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.25)); }
}

/* Shimmer sweep across the logo */
.logo { position: relative; }
.logo .logo-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(0,255,255,0.12) 45%, rgba(0,255,255,0.35) 50%, rgba(0,255,255,0.12) 55%, transparent 100%);
    mix-blend-mode: screen;
    transform: translateX(-150%);
    animation: logoSweep 3.5s ease-in-out infinite;
}

@keyframes logoSweep {
    0% { transform: translateX(-150%); }
    100% { transform: translateX(150%); }
}

/* Enhanced CTA Button */
.cta-button:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .nav-links {
        display: none;
    }
    
    .construction-bg {
        opacity: 0.3;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
}