/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global image safety - prevent all images from going out of bounds */
img {
    max-width: 100%;
    height: auto;
    /* Prevent images from escaping containers */
    vertical-align: middle;
}

/* Specific image containers - ensure overflow protection */
.service-icon,
.project-card,
.about-image,
.materials-image {
    overflow: hidden !important; /* Force overflow hidden for all image containers */
    position: relative;
}

:root {
    --primary-color: #1e3a5f;
    --primary-light: #2c5f8d;
    --secondary-color: #f4a261;
    --secondary-dark: #e8915f;
    --accent-color: #e76f51;
    --accent-light: #ff8c69;
    --dark-color: #0f172a;
    --dark-light: #1a1a1a;
    --light-color: #f8f9fa;
    --light-gray: #e2e8f0;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 50%, #3d7ab8 100%);
    --gradient-secondary: linear-gradient(135deg, #f4a261 0%, #e8915f 50%, #e76f51 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 95, 141, 0.9) 50%, rgba(61, 122, 184, 0.85) 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; /* Critical: prevents horizontal scroll */
    position: relative;
    /* Ensure body content stays within viewport */
    width: 100%;
    max-width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 58, 95, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 162, 97, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Cookie Notice - Google Consent Mode v2 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--white);
    padding: clamp(16px, 3vw, 32px);
    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.3);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice.show .cookie-categories {
    max-height: 400px;
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
}

.cookie-main {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 20px);
}

.cookie-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    margin: 0;
    color: var(--white);
    letter-spacing: -0.5px;
}

.cookie-description {
    margin: 0;
    font-size: clamp(13px, 1.8vw, 15px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-description a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-description a:hover {
    color: #e8915f;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 16px);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: clamp(12px, 2vw, 16px);
    transition: background 0.3s, border-color 0.3s;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    gap: 12px;
}

.cookie-category-name {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 600;
    color: var(--white);
    flex: 1;
}

.cookie-category-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white);
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-category-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--secondary-color);
}

.cookie-category-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-category-toggle input:disabled + .cookie-toggle-slider {
    background-color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: rgba(255, 255, 255, 0.8);
}

.cookie-category-desc {
    margin: 0;
    font-size: clamp(12px, 1.6vw, 14px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 60px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 12px);
    justify-content: flex-end;
    align-items: center;
    padding-top: clamp(8px, 1.5vw, 12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn {
    border: none;
    padding: clamp(10px, 1.8vw, 14px) clamp(20px, 3vw, 28px);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: clamp(13px, 1.8vw, 15px);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    min-width: 120px;
}

.cookie-btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.cookie-btn-primary:hover {
    background: #e8915f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 145, 95, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cookie-btn:active {
    transform: translateY(0);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 35px;
    height: 30px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.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 */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Critical: prevents all content from escaping */
    z-index: 1;
    padding: 0;
    /* Ensure hero content stays within bounds */
    contain: layout style paint;
}

/* Ensure minimum height for content visibility */
@media (min-height: 800px) {
    .hero {
        min-height: 100vh;
    }
}

@media (max-height: 799px) {
    .hero {
        min-height: auto;
        padding: 60px 0 0;
    }
    
    .hero-content {
        padding-top: clamp(48px, 6vh, 64px) !important;
        padding-bottom: clamp(60px, 8vh, 80px) !important;
    }
    
    .hero-content {
        padding-bottom: clamp(80px, 12vh, 120px) !important;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 968px) and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0 0;
    }
    
    .hero-content {
        padding: clamp(40px, 5vh, 56px) 24px clamp(50px, 7vh, 70px) !important;
    }
    
    .hero-badge {
        margin-bottom: clamp(12px, 1.5vh, 20px) !important;
    }
    
    .hero-title {
        margin-bottom: clamp(12px, 1.5vh, 20px) !important;
        font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        margin-bottom: clamp(20px, 2.5vh, 32px) !important;
        font-size: clamp(0.875rem, 1.8vw, 1rem) !important;
    }
    
    .hero-stats {
        margin-bottom: clamp(20px, 2.5vh, 32px) !important;
        gap: clamp(10px, 1.2vw, 16px) !important;
    }
    
    .hero-stat {
        padding: clamp(12px, 1.5vh, 18px) clamp(16px, 2vw, 24px) !important;
    }
    
    .hero-stat .stat-value {
        font-size: clamp(1.5rem, 3vw, 2rem) !important;
    }
    
    .hero-buttons {
        margin-bottom: clamp(16px, 2vh, 24px) !important;
    }
    
    .hero-content {
        padding-bottom: clamp(70px, 10vh, 100px) !important;
    }
}

/* Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden; /* Critical: prevents slides from escaping */
    /* Ensure slider stays within hero bounds */
    contain: layout style paint;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 20s ease-out;
    transform: scale(1.05); /* Reduced from 1.1 to prevent overflow */
    will-change: transform, opacity;
    /* Ensure image stays within bounds */
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

/* Prevent hero slides from going out of bounds during parallax */
.hero-slider {
    overflow: hidden; /* Critical: prevents images from escaping */
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(30, 58, 95, 0.75) 40%,
        rgba(44, 95, 141, 0.65) 70%,
        rgba(244, 162, 97, 0.2) 100%
    );
    z-index: 3;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(244, 162, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 111, 81, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

/* Decorative Elements - Subtle and non-intrusive */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    overflow: hidden; /* Critical: prevents decorative elements from escaping */
    /* Ensure decorations stay within hero bounds */
    contain: layout style paint;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(244, 162, 97, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(244, 162, 97, 0.1);
}

.decoration-circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
    /* Ensure circle stays within bounds during animation */
    will-change: transform;
}

.decoration-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation: float 18s ease-in-out infinite reverse;
    /* Ensure circle stays within bounds during animation */
    will-change: transform;
}

.decoration-circle-3 {
    display: none; /* Removed to avoid clutter */
}

.decoration-line {
    display: none; /* Removed to avoid clutter */
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); /* Reduced movement */ }
    66% { transform: translate(-15px, 15px) scale(0.95); /* Reduced movement */ }
}

@keyframes lineMove {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translateX(0); }
    50% { opacity: 0.6; transform: rotate(45deg) translateX(20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Content - Using 8px grid system */
.hero-content {
    position: relative;
    z-index: 5;
    padding: clamp(64px, 8vh, 120px) 24px clamp(80px, 12vh, 120px); /* Reduced bottom padding since accordion removed */
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Gap controlled by individual margins */
    width: 100%;
    box-sizing: border-box;
    /* Ensure content stays within viewport during parallax */
    will-change: transform, opacity;
    /* Prevent content from going out of bounds */
    overflow: visible; /* Allow content to be visible but constrained by parent */
}

/* FullHD and larger screens (1920px+) */
@media (min-width: 1920px) {
    .hero-content {
        padding: 120px 32px 160px;
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 1.5vw, 1.4rem);
        max-width: 800px;
    }
}

/* 2K screens (2560px+) */
@media (min-width: 2560px) {
    .hero-content {
        padding: 140px 40px 180px;
        max-width: 1400px;
    }
}

/* 4K screens (3840px+) */
@media (min-width: 3840px) {
    .hero-content {
        padding: 160px 48px 200px;
        max-width: 1600px;
    }
}

/* Medium screens (1024px - 1919px) */
@media (min-width: 1024px) and (max-width: 1919px) {
    .hero-content {
        padding: clamp(80px, 10vh, 100px) 24px clamp(100px, 14vh, 130px);
    }
}

/* Small desktop (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content {
        padding: clamp(72px, 9vh, 88px) 20px clamp(90px, 12vh, 110px);
    }
}

/* Badge - Standard spacing */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* 1*8px */
    padding: 12px 24px; /* 1.5*8px, 3*8px */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin-bottom: 32px; /* 4*8px - standard spacing */
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Title - Centered and properly spaced */
.hero-title {
    font-size: clamp(2rem, 6vw + 1rem, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 clamp(16px, 2vh, 32px) 0;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.2s both;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

/* Prevent title from being too large on very wide screens */
@media (min-width: 1920px) {
    .hero-title {
        font-size: clamp(3rem, 4vw, 5rem);
    }
}

.title-line {
    display: block;
    position: relative;
}

.title-line-1 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px; /* 1*8px */
}

.title-line-2 {
    background: linear-gradient(135deg, #ffffff 0%, #f4a261 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px; /* 1*8px */
    font-size: 1.1em; /* Slightly reduced */
}

.title-highlight {
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-secondary);
    opacity: 0.3;
    border-radius: 3px;
    z-index: -1;
}

.title-line-3 {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Subtitle - Proper spacing */
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.3rem);
    margin: 0 0 clamp(32px, 4vh, 56px) 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
    padding: 0 clamp(16px, 2vw, 24px);
    word-wrap: break-word;
}

/* FullHD and larger */
@media (min-width: 1920px) {
    .hero-subtitle {
        font-size: clamp(1.1rem, 1.2vw, 1.4rem);
        max-width: 800px;
    }
}

/* Stats - Grid layout with proper spacing */
.hero-stats {
    display: flex;
    gap: clamp(16px, 2vw, 32px);
    justify-content: center;
    margin: 0 0 clamp(32px, 4vh, 56px) 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 100%;
    padding: 0 clamp(16px, 2vw, 24px);
    width: 100%;
}

.hero-stat {
    text-align: center;
    padding: clamp(20px, 2.5vh, 28px) clamp(24px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    min-width: clamp(100px, 12vw, 140px);
    flex: 0 1 auto;
    transition: all 0.3s;
    box-sizing: border-box;
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-stat .stat-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.8125rem; /* 13px */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

/* Buttons - Proper spacing */
.hero-buttons {
    display: flex;
    gap: clamp(12px, 1.5vw, 20px);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    margin: 0;
    padding: 0 clamp(16px, 2vw, 24px);
    width: 100%;
}

.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(14px, 1.8vh, 18px) clamp(28px, 3.5vw, 40px);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: clamp(140px, 18vw, 180px);
    justify-content: center;
    box-sizing: border-box;
}

.hero-btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(244, 162, 97, 0.4);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(244, 162, 97, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.hero-btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.hero-btn-secondary:hover .btn-icon {
    transform: translateY(5px);
}


/* FullHD and larger */
@media (min-width: 1920px) {
    /* Styles for larger screens */
}

/* Ensure content doesn't overlap on short screens */
@media (max-height: 700px) {
    .hero-content {
        padding-bottom: clamp(60px, 8vh, 100px) !important;
    }
}



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

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

.accordion-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-secondary);
    transition: height 0.4s;
}

.accordion-item.active {
    box-shadow: var(--shadow-lg);
    border-color: rgba(244, 162, 97, 0.3);
    transform: translateX(5px);
}

.accordion-item.active::before {
    height: 100%;
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    transition: all 0.4s;
    position: relative;
}

.accordion-item.active .accordion-header {
    background: var(--gradient-primary);
    color: var(--white);
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 20px 25px;
}

.accordion-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
    /* Ensure section content stays within bounds */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.2;
    /* Ensure decorative line stays within bounds */
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
    opacity: 0.3;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
    border-radius: 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: 35px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden; /* Critical: prevents content from escaping */
    border: 2px solid transparent;
    /* Ensure card stays in bounds during transforms */
    contain: layout style paint;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    /* Limited transform to prevent going out of bounds */
    transform: translateY(-8px) scale(1.01); /* Reduced from -10px and 1.02 */
    box-shadow: var(--shadow-xl);
    border-color: rgba(244, 162, 97, 0.2);
}

.service-icon {
    width: 100%;
    height: 220px;
    overflow: hidden !important; /* Force overflow hidden */
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;
    background: var(--gradient-primary);
    /* Ensure image container stays within bounds */
    contain: layout style paint;
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(244, 162, 97, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
    /* Prevent image from going out of bounds */
    max-width: 100%;
    max-height: 100%;
    will-change: transform;
}

.service-card:hover .service-icon img {
    /* Limited scale to prevent overflow */
    transform: scale(1.12) rotate(1.5deg); /* Reduced from 1.15 and 2deg */
    filter: brightness(1);
}

.service-card h3 {
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
}

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

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

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
    transform: translateY(-50%);
}

.about::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.05) 0%, transparent 70%);
    transform: translateY(-50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
    position: relative;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--gradient-secondary);
}

.stat-item {
    text-align: center;
    position: relative;
    flex: 1;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--light-gray), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
    transition: transform 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.about-image {
    border-radius: 20px;
    overflow: hidden !important; /* Force: prevents images from escaping */
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 4px solid transparent;
    background: var(--gradient-primary);
    padding: 4px;
    /* Ensure image container stays within bounds */
    contain: layout style paint;
    max-width: 100%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    will-change: transform;
}

.about-image:hover img {
    /* Limited scale to stay within bounds */
    transform: scale(1.03); /* Reduced from 1.05 */
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.1) 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 !important; /* Force: prevents images from escaping */
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    /* Ensure card stays in bounds during transforms */
    contain: layout style paint;
    /* Prevent card from going out of grid bounds */
    max-width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-card:hover {
    /* Limited transform to prevent going out of bounds */
    transform: translateY(-10px) scale(1.01); /* Reduced from -12px and 1.02 */
    box-shadow: var(--shadow-xl);
    border-color: rgba(244, 162, 97, 0.3);
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
    max-width: 100%;
    max-height: 100%;
    will-change: transform;
}

.project-card:hover img {
    /* Limited scale to prevent overflow */
    transform: scale(1.12); /* Reduced from 1.15 */
    filter: grayscale(0%);
}

.project-info {
    padding: 30px;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.project-info h3 {
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.project-card:hover .project-info h3 {
    transform: translateX(5px);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.project-tag {
    display: inline-block;
    padding: 8px 18px;
    background: var(--gradient-secondary);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(244, 162, 97, 0.3);
    transition: transform 0.3s;
}

.project-card:hover .project-tag {
    transform: scale(1.1);
}

/* Process Section */
.process-steps {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: all 0.4s;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transition: height 0.4s;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(244, 162, 97, 0.2);
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.process-step:hover::before {
    height: 100%;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 100px;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    opacity: 0.3;
}

.step-content h3 {
    font-size: 1.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* Materials Section */
.materials {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.materials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent, rgba(30, 58, 95, 0.02));
}

.materials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.materials-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.materials-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.materials-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
}

.materials-list li {
    position: relative;
    padding-left: 35px;
}

.materials-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.2);
}

.materials-image {
    border-radius: 20px;
    overflow: hidden !important; /* Force: prevents images from escaping */
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 4px solid transparent;
    background: var(--gradient-secondary);
    padding: 4px;
    transform: rotate(-1.5deg); /* Reduced rotation */
    transition: transform 0.4s;
    will-change: transform;
    /* Ensure image container stays within bounds */
    contain: layout style paint;
    max-width: 100%;
}

.materials-image:hover {
    /* Limited transform to stay within bounds */
    transform: rotate(0deg) scale(1.03); /* Reduced scale */
}

.materials-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

.materials-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    max-width: 100%;
    will-change: transform;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid rgba(244, 162, 97, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card.active {
    display: block;
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.testimonial-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(244, 162, 97, 0.1);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(244, 162, 97, 0.3);
    transform: translateX(5px);
}

.contact-item h3 {
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.contact-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(244, 162, 97, 0.1);
    position: relative;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 20px 20px 0 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-secondary);
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    color: var(--secondary-color);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.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);
}

/* Policy Pages Styles */
.policy-page {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.policy-content h3 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.policy-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.policy-content h4 {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 35px;
    margin-bottom: 18px;
    position: relative;
    padding-left: 20px;
}

.policy-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.policy-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Thanks Page */
.thanks-page {
    padding: 120px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
}

.thanks-content h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.thanks-content h1::after {
    content: '✓';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
    animation: scaleIn 0.5s ease-out 0.3s both;
}

@keyframes scaleIn {
    from {
        transform: translateY(-50%) scale(0);
    }
    to {
        transform: translateY(-50%) scale(1);
    }
}

.thanks-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .burger-menu {
        display: flex !important; /* Force display on mobile */
    }

    .hero-content {
        padding: clamp(64px, 8vh, 88px) 24px clamp(80px, 12vh, 100px);
    }

    .hero-badge {
        margin-bottom: clamp(20px, 2.5vh, 28px);
        padding: clamp(10px, 1.2vh, 12px) clamp(18px, 2.2vw, 24px);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw + 0.5rem, 3.5rem);
        margin-bottom: clamp(16px, 2vh, 24px);
    }

    .title-line {
        text-align: center;
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 2vw + 0.3rem, 1.125rem);
        margin-bottom: clamp(32px, 4vh, 48px);
        padding: 0 clamp(16px, 2vw, 24px);
    }

    .hero-stats {
        gap: clamp(12px, 1.5vw, 20px);
        margin-bottom: clamp(32px, 4vh, 48px);
        padding: 0 clamp(12px, 1.5vw, 20px);
    }

    .hero-stat {
        min-width: clamp(90px, 12vw, 120px);
        padding: clamp(16px, 2vh, 24px) clamp(20px, 2.5vw, 28px);
        flex: 1 1 calc(33.333% - 12px);
    }

    .hero-stat .stat-value {
        font-size: clamp(1.5rem, 3vw, 2.25rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 16px; /* 2*8px */
        gap: 12px; /* 1.5*8px */
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 28px; /* 1.75*8px, 3.5*8px */
    }


    .decoration-circle-1,
    .decoration-circle-2,
    .decoration-circle-3 {
        display: none;
    }

    .decoration-line-1,
    .decoration-line-2 {
        display: none;
    }

    .about-content,
    .materials-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: space-around;
    }

    .process-step {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        min-width: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .cookie-content {
        flex-direction: column;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-category-desc {
        padding-left: 0;
        margin-top: 8px;
    }

    .cookie-category-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cookie-category-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .cookie-notice {
        padding: clamp(12px, 3vw, 20px);
        max-height: 85vh;
    }

    .cookie-title {
        font-size: clamp(16px, 4vw, 20px);
    }

    .cookie-description {
        font-size: clamp(12px, 3.5vw, 14px);
    }

    .cookie-categories {
        max-height: 300px;
    }

    .cookie-category {
        padding: clamp(10px, 2.5vw, 14px);
    }

    .cookie-category-name {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .cookie-category-desc {
        font-size: clamp(11px, 3vw, 13px);
    }

    .cookie-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .cookie-btn-primary {
        order: -1;
    }

    .hero-content {
        padding: clamp(56px, 7vh, 72px) clamp(16px, 2.5vw, 24px) clamp(72px, 10vh, 88px);
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw + 0.3rem, 2.5rem);
        margin-bottom: clamp(12px, 1.5vh, 20px);
    }

    .hero-badge {
        font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
        padding: clamp(8px, 1vh, 10px) clamp(14px, 2vw, 20px);
        margin-bottom: clamp(16px, 2vh, 24px);
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 2vw + 0.2rem, 1.0625rem);
        margin-bottom: clamp(24px, 3vh, 40px);
        padding: 0 clamp(12px, 1.8vw, 20px);
    }

    .hero-stats {
        gap: clamp(10px, 1.2vw, 16px);
        margin-bottom: clamp(24px, 3vh, 40px);
        padding: 0 clamp(10px, 1.5vw, 16px);
    }

    .hero-stat {
        min-width: clamp(80px, 11vw, 110px);
        padding: clamp(14px, 1.8vh, 20px) clamp(16px, 2vw, 24px);
        flex: 1 1 calc(50% - 6px);
    }

    .hero-stat .stat-value {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: clamp(4px, 0.5vh, 8px);
    }

    .hero-stat .stat-label {
        font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
    }

    .hero-buttons {
        padding: 0 clamp(12px, 1.8vw, 20px);
        gap: clamp(8px, 1vw, 12px);
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: clamp(12px, 1.5vh, 16px) clamp(20px, 2.5vw, 28px);
        font-size: clamp(0.875rem, 2vw, 1rem);
        min-width: clamp(120px, 16vw, 160px);
    }


    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .policy-content {
        padding: 30px 20px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .thanks-content h1::after {
        position: static;
        transform: none;
        margin: 20px auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: clamp(48px, 6vh, 64px) clamp(12px, 3vw, 20px) clamp(64px, 9vh, 80px);
    }

    .hero-badge {
        font-size: clamp(0.625rem, 2vw, 0.75rem);
        padding: clamp(6px, 0.8vh, 10px) clamp(12px, 2.5vw, 18px);
        margin-bottom: clamp(12px, 1.5vh, 20px);
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw + 0.2rem, 2rem);
        margin-bottom: clamp(12px, 1.5vh, 20px);
    }

    .hero-subtitle {
        font-size: clamp(0.8125rem, 2.2vw + 0.1rem, 0.9375rem);
        margin-bottom: clamp(20px, 2.5vh, 32px);
        padding: 0 clamp(10px, 2vw, 16px);
    }

    .hero-stats {
        gap: clamp(8px, 1vw, 12px);
        margin-bottom: clamp(20px, 2.5vh, 32px);
        padding: 0 clamp(8px, 1.5vw, 14px);
    }

    .hero-stat {
        min-width: clamp(70px, 10vw, 100px);
        padding: clamp(12px, 1.5vh, 16px) clamp(14px, 2vw, 20px);
        flex: 1 1 calc(50% - 4px);
    }

    .hero-stat .stat-value {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        margin-bottom: clamp(4px, 0.5vh, 6px);
    }

    .hero-stat .stat-label {
        font-size: clamp(0.625rem, 1.8vw, 0.75rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: clamp(8px, 1vh, 12px);
        padding: 0 clamp(10px, 2vw, 16px);
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: clamp(12px, 1.5vh, 14px) clamp(20px, 3vw, 24px);
        font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
        min-width: auto;
    }

        gap: 15px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: 14px 25px;
        font-size: 0.9rem;
    }


    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}


