/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --primary-color: #1a4d3a;
    --secondary-color: #2d7a52;
    --accent-color: #f4a261;
    --accent-dark: #e76f51;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1a4d3a 0%, #2d7a52 50%, #45a082 100%);
    --gradient-accent: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 77, 58, 0.9) 0%, rgba(45, 122, 82, 0.7) 50%, rgba(69, 160, 130, 0.6) 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Decorative background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 77, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden; /* Prevent overflow */
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
    overflow: hidden; /* Prevent overflow */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal scroll - Global rules */
/* Don't apply max-width to containers and sections - they have their own width constraints */
img, video, iframe, table {
    max-width: 100%;
    height: auto;
}

section {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure all sections don't overflow horizontally */
.header,
.services,
.projects,
.about,
.contact,
.hero {
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Cookie Consent Banner - Google Consent Mode v2 Compliant */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    color: var(--text-color);
    padding: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary-color);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.cookie-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.cookie-consent-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.cookie-consent-content > p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.cookie-categories {
    margin: 25px 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.cookie-category {
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: rgba(0, 0, 0, 0.04);
}

.cookie-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.cookie-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cookie-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.cookie-checkbox input[type="checkbox"]:disabled + .checkbox-custom {
    background: var(--border-color);
    border-color: var(--border-color);
    opacity: 0.6;
}

.category-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-toggle:hover {
    color: var(--primary-color);
}

.category-toggle.active {
    transform: rotate(180deg);
}

.category-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 20px;
}

.category-info.show {
    max-height: 200px;
    padding: 0 20px 16px 20px;
}

.category-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-accept-all,
.btn-accept-selected,
.btn-decline-all {
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.btn-accept-all {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accept-all:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 58, 0.3);
}

.btn-accept-selected {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accept-selected:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

.btn-decline-all {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-decline-all:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-color);
}

.cookie-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 20px;
    }

    .cookie-consent-content h3 {
        font-size: 20px;
        margin-bottom: 12px;
        padding-right: 30px;
    }

    .cookie-consent-content > p {
        font-size: 14px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .btn-accept-all,
    .btn-accept-selected,
    .btn-decline-all {
        width: 100%;
        min-width: auto;
    }

    .category-header {
        padding: 12px 16px;
    }

    .category-title {
        font-size: 15px;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100vw;
    overflow: visible; /* Allow burger menu to be visible */
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header.scrolled::after {
    opacity: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section - Professional Design Standards */
/* Using 8px grid system for consistent spacing */

.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Hero height adjustments for different screen heights */
@media (min-height: 900px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content-wrapper {
        min-height: calc(100vh - 160px);
    }
}

@media (min-height: 800px) and (max-height: 899px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: 80px 0;
        min-height: calc(100vh - 160px);
    }
}

@media (min-height: 700px) and (max-height: 799px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: 72px 0;
        min-height: calc(100vh - 144px);
    }
    
    .hero-title {
        font-size: clamp(40px, 5vw, 56px);
    }
    
    .hero-indicators {
        bottom: 90px;
    }
}

@media (max-height: 699px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content-wrapper {
        padding: 64px 0 48px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(32px, 4vw, 48px);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        margin-bottom: 32px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-indicators {
        bottom: 70px;
        right: 16px;
    }
    
    .hero-controls {
        bottom: 16px;
    }
    
    .services-preview {
        padding: 20px;
    }
}

/* Background Layer - z-index: 1 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden; /* Prevent images from overflowing */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent images from overflowing */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Prevent images from overflowing */
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 20s ease-out;
    filter: brightness(0.85) contrast(1.1);
    will-change: transform; /* Optimize for animations */
}

.hero-slide.active .hero-image {
    transform: scale(1.1); /* Reduced from 1.15 to prevent overflow */
    filter: brightness(0.9) contrast(1.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 58, 0.85) 0%, rgba(45, 122, 82, 0.75) 50%, rgba(26, 77, 58, 0.85) 100%);
    animation: overlay-pulse 8s ease-in-out infinite;
}

@keyframes overlay-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* Particles Layer - z-index: 2 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(244, 162, 97, 0.4);
    border-radius: 50%;
    animation: particle-float 20s infinite ease-in-out;
}

.hero-particles .particle:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.hero-particles .particle:nth-child(2) {
    top: 65%;
    right: 12%;
    animation-delay: 4s;
    width: 5px;
    height: 5px;
}

.hero-particles .particle:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 8s;
}

.hero-particles .particle:nth-child(4) {
    top: 45%;
    right: 20%;
    animation-delay: 12s;
    width: 4px;
    height: 4px;
}

.hero-particles .particle:nth-child(5) {
    bottom: 15%;
    right: 8%;
    animation-delay: 16s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-15px, 20px) scale(0.9);
        opacity: 0.3;
    }
}

/* Content Layer - z-index: 3 */
.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-container .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 64px;
    align-items: center;
    width: 100%;
    padding: 80px 0;
    min-height: calc(100vh - 160px);
    box-sizing: border-box;
}

/* Ensure content doesn't overflow */
.hero-main,
.hero-sidebar {
    overflow: visible;
    max-width: 100%;
}

/* Left Column - Main Content */
.hero-main {
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* Badge - 8px spacing */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Title - 8px spacing between lines */
.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
    margin-bottom: 8px;
}

.title-line:last-child {
    margin-bottom: 0;
}

.title-line-1 {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.title-line-2 {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.title-line-3 {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.title-highlight {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e76f51 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(244, 162, 97, 0.25);
    z-index: -1;
    border-radius: 3px;
}

/* Subtitle - 8px spacing */
.hero-subtitle {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Buttons - 8px spacing */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.btn-hero:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}


/* Right Column - Modern Accordion */
.hero-sidebar {
    position: relative;
    z-index: 1;
}

.hero-accordion-modern {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.8s ease 0.4s both;
    overflow: hidden;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.accordion-modern-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.accordion-modern-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.accordion-modern-item {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
}

.accordion-modern-item:last-child {
    margin-bottom: 0;
}

.accordion-modern-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 162, 97, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.accordion-modern-header {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-modern-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.accordion-icon-wrapper {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 162, 97, 0.2);
    border-radius: 10px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.accordion-modern-item.active .accordion-icon-wrapper {
    background: var(--gradient-accent);
    color: var(--white);
    transform: rotate(5deg) scale(1.05);
}

.accordion-modern-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.accordion-modern-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.accordion-modern-item.active .accordion-modern-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.accordion-modern-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
}

.accordion-modern-item.active .accordion-modern-content {
    max-height: 500px;
    opacity: 1;
}

.accordion-content-inner {
    padding: 0 20px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.accordion-modern-item.active .accordion-content-inner {
    opacity: 1;
}

/* Ensure first item is open by default */
.accordion-modern-item.active .accordion-modern-content {
    max-height: 500px !important;
    opacity: 1 !important;
}

.accordion-modern-item.active .accordion-content-inner {
    opacity: 1 !important;
}

.accordion-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
    will-change: transform; /* Optimize for animations */
    overflow: hidden; /* Prevent image from overflowing */
}

.accordion-modern-item.active .accordion-image {
    transform: scale(1.02); /* Reduced from 1.05 to prevent overflow */
    filter: brightness(1) contrast(1.15);
}

.accordion-content-inner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Controls Layer - z-index: 4 */
.hero-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
    pointer-events: auto;
    width: auto;
    max-width: calc(100% - 48px);
}

.hero-prev,
.hero-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-prev:active,
.hero-next:active {
    transform: scale(0.96);
}

/* Indicators Layer - z-index: 4 */
.hero-indicators {
    position: absolute;
    bottom: 104px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 4;
    pointer-events: auto;
    max-width: calc(100% - 64px);
}

.indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1.5px solid transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 10;
}

.indicator::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.indicator.active::before {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(244, 162, 97, 0.7);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(244, 162, 97, 0.4);
}

.indicator-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.indicator.active .indicator-label {
    color: var(--white);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 30px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(244, 162, 97, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 162, 97, 0.3), transparent);
}

.section-title {
    font-size: 42px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
    overflow: visible; /* Allow hover effects to be visible */
    padding: 20px 0; /* Add padding to prevent clipping */
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.services::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden; /* Prevent content from overflowing */
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.5s ease;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover::after {
    opacity: 0.3;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 77, 58, 0.2);
    border-color: var(--secondary-color);
    z-index: 10; /* Ensure hovered card is above others */
}

/* Ensure service cards container doesn't clip hover effects */
.services-grid {
    position: relative;
    padding: 10px 0; /* Add padding to prevent clipping */
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.3;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform; /* Optimize for animations */
}

.service-card:hover .service-icon img {
    transform: scale(1.08); /* Reduced from 1.1 to prevent overflow */
}

.service-title {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    transform: translateX(5px);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* About Section */
.about {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: visible; /* Allow hover effects to be visible */
}

.about-content::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.about-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--gradient-accent);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
}

.about-intro {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    animation: rotate-gradient 10s linear infinite;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    z-index: 0;
    filter: blur(20px);
}

.stat-item:hover::before {
    opacity: 0.05;
}

.stat-item:hover::after {
    opacity: 0.3;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(26, 77, 58, 0.2);
}

.stat-item > * {
    position: relative;
    z-index: 1;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.about-image {
    border-radius: 16px;
    overflow: hidden; /* Prevent image from overflowing */
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
    will-change: transform; /* Optimize for animations */
}

.about-image::before {
    content: '';
    position: absolute;
    top: 15px; /* Reduced from 20px */
    left: 15px; /* Reduced from 20px */
    right: -15px; /* Reduced from -20px */
    bottom: -15px; /* Reduced from -20px */
    background: var(--gradient-accent);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent interaction issues */
}

.about-image:hover::before {
    opacity: 0.5;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(-3deg) scale(1.03); /* Reduced rotation and scale */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    will-change: transform; /* Optimize for animations */
}

.about-image:hover img {
    transform: scale(1.05); /* Reduced from 1.1 to prevent overflow */
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, #ffffff 0%, var(--light-color) 100%);
    position: relative;
    overflow: visible; /* Allow hover effects to be visible */
    padding: 20px 0; /* Add padding to prevent clipping */
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 77, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden; /* Prevent content from overflowing */
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-accent);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-card:hover::before {
    opacity: 0.4;
}

.project-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 50px rgba(26, 77, 58, 0.3);
    border-color: var(--secondary-color);
    z-index: 10; /* Ensure hovered card is above others */
}

/* Ensure project cards container doesn't clip hover effects */
.projects-grid {
    position: relative;
    padding: 10px 0; /* Add padding to prevent clipping */
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 0.4;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform; /* Optimize for animations */
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(1deg); /* Reduced scale and rotation to prevent overflow */
}

.project-info {
    padding: 25px;
    position: relative;
}

.project-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-type {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-details {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.project-details span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* Process Section */
.process {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 77, 58, 0.02) 0%, rgba(244, 162, 97, 0.02) 100%);
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.5s ease;
    z-index: 0;
}

.process-step:hover::before {
    height: 100%;
    opacity: 0.1;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-step > * {
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    opacity: 0.6;
    position: relative;
    display: inline-block;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid;
    border-image: var(--gradient-accent) 1;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.step-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose {
    background: linear-gradient(180deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.why-choose::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 16px;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 0;
}

.feature-item:hover::before {
    opacity: 0.05;
}

.feature-item:hover::after {
    width: 200%;
    height: 200%;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(26, 77, 58, 0.2);
    border-top-color: var(--accent-color);
}

.feature-item > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 58, 0.3);
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(26, 77, 58, 0.4);
}

.feature-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 77, 58, 0.02) 0%, rgba(244, 162, 97, 0.02) 100%);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 0;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 77, 58, 0.15);
}

.contact-label {
    font-size: 18px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.contact-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.contact-value {
    color: var(--text-color);
    line-height: 1.8;
}

.contact-value a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid rgba(26, 77, 58, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(26, 77, 58, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.05) 0%, transparent 70%);
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 82, 0.1), 0 5px 15px rgba(45, 122, 82, 0.2);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #0f0f0f 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-text {
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-registration {
    margin-top: 10px;
    font-size: 12px;
}

/* Animated Background Elements */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 77, 58, 0.1) 0%, transparent 70%);
    animation: float-circle 20s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -5%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 0%, transparent 70%);
    animation-delay: 5s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, rgba(45, 122, 82, 0.1) 0%, transparent 70%);
    animation-delay: 10s;
}

.circle-4 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: 15%;
    background: radial-gradient(circle, rgba(231, 111, 81, 0.08) 0%, transparent 70%);
    animation-delay: 15s;
}

@keyframes float-circle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.5;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
/* Decorative lines and borders */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
    box-shadow: 0 -2px 10px rgba(244, 162, 97, 0.5);
}

.service-card:hover::after {
    width: 100%;
}

/* Add corner accent to service cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 0;
    height: 0;
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    border-top-right-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.service-card:hover::before {
    width: 40px;
    height: 40px;
    opacity: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 0;
    height: 0;
    border-top: 3px solid var(--accent-color);
    border-right: 3px solid var(--accent-color);
    border-top-right-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 15px rgba(244, 162, 97, 0.5);
}

.project-card:hover::before {
    width: 50px;
    height: 50px;
    opacity: 1;
}

/* Add bottom accent line to project cards */
.project-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width 0.5s ease;
}

.project-card:hover .project-info::after {
    width: 100%;
}

/* Animated gradient background for sections */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Remove gradient animation from sections - too heavy */
/* .services,
.projects,
.why-choose {
    background-size: 200% 200%;
    animation: gradient-flow 15s ease infinite;
} */

/* Hero Section - Responsive Breakpoints */

/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .hero-container .container {
        max-width: 1400px;
        padding: 0 32px;
    }
    
    .hero-content-wrapper {
        padding: 120px 0;
        gap: 80px;
        min-height: calc(100vh - 240px);
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .hero-subtitle {
        font-size: 22px;
        max-width: 640px;
    }
    
    .hero-indicators {
        bottom: 120px;
        right: 48px;
    }
    
    .hero-controls {
        bottom: 48px;
    }
    
    .hero-stats {
        gap: 56px;
    }
    
    .stat-number {
        font-size: 52px;
    }
}

/* Ultra Wide (2560px and above) */
@media (min-width: 2560px) {
    .hero-container .container {
        max-width: 1600px;
        padding: 0 48px;
    }
    
    .hero-content-wrapper {
        gap: 96px;
    }
    
    .hero-title {
        font-size: 88px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        max-width: 720px;
    }
}

/* Desktop (1600px - 1919px) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .hero-container .container {
        max-width: 1300px;
        padding: 0 32px;
    }
    
    .hero-content-wrapper {
        padding: 100px 0;
        gap: 72px;
        min-height: calc(100vh - 200px);
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        max-width: 600px;
    }
    
    .hero-indicators {
        bottom: 110px;
        right: 40px;
    }
    
    .hero-controls {
        bottom: 40px;
    }
}

/* Standard Desktop (1440px - 1599px) */
@media (min-width: 1440px) and (max-width: 1599px) {
    .hero-content-wrapper {
        padding: 96px 0;
        gap: 64px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-indicators {
        bottom: 110px;
        right: 40px;
    }
    
    .hero-controls {
        bottom: 40px;
    }
}

/* Medium Desktop (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .hero-content-wrapper {
        padding: 88px 0;
        gap: 56px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-indicators {
        bottom: 100px;
        right: 32px;
    }
    
    .hero-controls {
        bottom: 32px;
    }
}

/* Small Desktop / Large Tablet (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-content-wrapper {
        padding: 80px 0;
        gap: 48px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-indicators {
        bottom: 100px;
        right: 24px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        min-height: 700px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 72px 0 56px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .services-preview {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-indicators {
        bottom: 120px;
        right: 20px;
    }
    
    .hero-controls {
        bottom: 28px;
    }
}

@media (max-width: 968px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-width: 100vw;
        background: var(--white);
        box-shadow: var(--shadow);
        transition: transform 0.3s ease;
        z-index: 999;
        transform: translateX(-100%);
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    /* Prevent header from causing horizontal scroll */
    .header {
        width: 100%;
        max-width: 100vw;
        overflow: visible; /* Allow burger menu to slide in */
    }
    
    .header-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        overflow: visible; /* Allow burger menu to be visible */
        position: relative;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        /* On mobile, container can be full width, but content inside should respect padding */
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero Section Mobile - 8px grid */
    .hero {
        min-height: 600px;
        height: auto;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-container .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 72px 0 56px;
        min-height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-main,
    .hero-sidebar {
        width: 100%;
        box-sizing: border-box;
    }

    .hero-badge {
        margin-bottom: 20px;
        padding: 6px 14px;
    }

    .badge-text {
        font-size: 12px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .title-line {
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .hero-stats {
        gap: 32px;
        justify-content: space-between;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .services-preview,
    .hero-accordion-modern {
        padding: 24px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Prevent all sections from causing horizontal scroll */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure all grids and flex containers don't overflow */
    .services-grid,
    .projects-grid,
    .about-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Ensure cards don't overflow */
    .service-card,
    .project-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .preview-title {
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .service-preview-item {
        padding: 16px;
        margin-bottom: 10px;
    }

    .preview-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .preview-content h4 {
        font-size: 15px;
    }

    .preview-content p {
        font-size: 12px;
    }

    .hero-indicators {
        bottom: 100px;
        right: 16px;
        gap: 8px;
        max-width: calc(100% - 32px);
    }

    .indicator {
        padding: 6px 10px;
    }

    .indicator-label {
        display: none;
    }

    .hero-controls {
        bottom: 20px;
        gap: 8px;
        max-width: calc(100% - 32px);
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }
    
    /* Ensure sidebar doesn't overflow */
    .services-preview {
        max-width: 100%;
    }


    .section-title {
        font-size: 32px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: space-around;
    }

    .services-grid,
    .projects-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 500px;
    }

    .hero-container .container {
        padding: 0 16px;
    }

    .hero-content-wrapper {
        padding: 64px 0 48px;
        gap: 32px;
        min-height: auto;
    }

    .hero-badge {
        margin-bottom: 16px;
        padding: 6px 12px;
    }

    .badge-text {
        font-size: 11px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .title-line {
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-bottom: 32px;
        gap: 10px;
    }

    .btn-hero {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 24px;
        justify-content: space-between;
    }

    .stat-box {
        flex: 1;
        text-align: center;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .services-preview {
        padding: 20px;
    }

    .preview-title {
        font-size: 15px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .service-preview-item {
        padding: 14px;
        margin-bottom: 8px;
    }

    .preview-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .preview-content h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .preview-content p {
        font-size: 11px;
    }

    .hero-indicators {
        bottom: 80px;
        right: 12px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    .indicator {
        padding: 5px 8px;
    }

    .hero-controls {
        bottom: 16px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }

    .hero-prev,
    .hero-next {
        width: 36px;
        height: 36px;
    }
    
    .hero-prev svg,
    .hero-next svg {
        width: 18px;
        height: 18px;
    }
    
    /* Prevent content overflow on small screens */
    .hero-main,
    .hero-sidebar {
        min-width: 0;
    }
    
    .hero-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .services-preview {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Very Small Screens (less than 400px) */
@media (max-width: 400px) {
    .hero {
        min-height: 450px;
    }
    
    .hero-content-wrapper {
        padding: 56px 0 40px;
        gap: 24px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-buttons {
        margin-bottom: 24px;
    }
    
    .btn-hero {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .hero-stats {
        gap: 16px;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hero-indicators {
        bottom: 60px;
        right: 8px;
    }
    
    .hero-controls {
        bottom: 12px;
    }
    
    .hero-prev,
    .hero-next {
        width: 32px;
        height: 32px;
    }
    
    .services-preview {
        padding: 16px;
    }
    
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}


