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

:root {
    --primary-color: #FF6B00;
    --secondary-color: #F7931E;
    --accent-color: #FFFFFF;
    --dark-bg: #0D0D0D;
    --surface-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: #333333;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

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

.glass-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: none;
}

.surface {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.text-gradient {
    color: var(--primary-color);
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-scrolled {
    background: rgba(8, 8, 8, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero-solar.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    filter: grayscale(30%) contrast(1.1) brightness(0.9);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.4) 0%, rgba(13, 13, 13, 0.6) 100%);
}

.btn-solid {
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
}

.btn-solid:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-hollow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    line-height: 1.4;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn-hollow:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-tag {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card {
    padding: 3rem;
    border-radius: 32px;
    transition: var(--transition);
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(26, 26, 26, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.testimonial-card-1 {
    transform: translateY(20px) rotate(-2deg);
    animation: fadeInUpRotate1 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 2;
    position: relative;
}

.testimonial-card-2 {
    transform: translateY(20px) rotate(3deg) translateX(10px);
    animation: fadeInUpRotate2 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.2s;
    z-index: 1;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.02);
    box-shadow: 0 16px 32px rgba(255, 107, 0, 0.2);
    background: rgba(26, 26, 26, 0.6) !important;
    z-index: 10;
}

.scroll-indicator {
    animation: scrollPulse 3s ease-in-out infinite;
}

.scroll-dot {
    animation: scrollDotMove 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-dot {
    animation: scrollDotMove 1s ease-in-out infinite;
}

@keyframes fadeInUpRotate1 {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-2deg);
    }
}

@keyframes fadeInUpRotate2 {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(5deg) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(3deg) translateX(10px);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scrollDotMove {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
}

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

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.service-card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 450px;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-image-container {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 13, 13, 0.6) 100%);
}

.service-content {
    padding: 1.5rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--surface-bg);
    border-top: 1px solid var(--border-color);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--surface-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-list {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--primary-color);
}

.service-action {
    margin-top: auto;
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    transform: none;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-opacity='0.5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    cursor: pointer;
}

select option {
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 12px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

footer {
    border-top: 1px solid var(--border-color);
    background: var(--surface-bg);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.services-carousel-wrapper {
    position: relative;
}

@media (max-width: 767px) {
    .services-carousel {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 1.5rem;
        scroll-behavior: smooth;
        will-change: scroll-position;
    }

    .services-carousel::-webkit-scrollbar {
        display: none;
    }

    .services-slide {
        scroll-snap-align: center;
        min-width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 107, 0, 0.9);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .carousel-nav:hover {
        background: rgba(255, 107, 0, 1);
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-nav:active {
        transform: translateY(-50%) scale(0.95);
    }

    .carousel-nav-prev {
        left: 0.5rem;
    }

    .carousel-nav-next {
        right: 0.5rem;
    }

    .carousel-nav:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
}

@media (min-width: 768px) {
    .services-carousel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-carousel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .services-carousel {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}