/* ============================================
   ARSERWIS - Design System & Global Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Primary Colors - from logo */
    --primary-900: #0a2463;
    --primary-800: #0d3b8c;
    --primary-700: #1050b5;
    --primary-600: #1565c0;
    --primary-500: #1976d2;
    --primary-400: #42a5f5;
    --primary-300: #90caf9;
    --primary-200: #bbdefb;
    --primary-100: #e3f2fd;

    /* Neutral Colors */
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;

    /* Accent */
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a2463 0%, #1565c0 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 36, 99, 0.92) 0%, rgba(21, 101, 192, 0.85) 100%);
    --gradient-dark: linear-gradient(135deg, #0a2463 0%, #0d3b8c 50%, #1050b5 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(10, 36, 99, 0.03) 100%);
    --gradient-accent: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --text-3xl: clamp(1.875rem, 1.4rem + 2.375vw, 3rem);
    --text-4xl: clamp(2.25rem, 1.6rem + 3.25vw, 4rem);

    /* Spacing */
    --section-padding: clamp(3rem, 5vw, 6rem);
    --container-max: 1280px;
    --container-padding: clamp(1rem, 3vw, 2rem);
    --navbar-height: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-primary: 0 4px 20px rgba(21, 101, 192, 0.3);
    --shadow-navbar: 0 2px 20px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gaps */
    --gap-xs: 0.25rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    --gap-2xl: 3rem;
    --gap-3xl: 4rem;
}

/* --- CSS Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Loading Screen --- */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1.5rem;
    background: var(--white);
}

.loading-logo {
    width: 200px;
    animation: loadingPulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-screen p {
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- Blazor Error UI --- */
#blazor-error-ui {
    background: var(--accent-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: none;
    text-align: center;
    font-size: var(--text-sm);
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: var(--white);
    margin-left: 1rem;
    text-decoration: underline;
    cursor: pointer;
}

.blazor-error-boundary {
    background: var(--accent-red);
    padding: 1rem;
    color: white;
    border-radius: var(--radius-sm);
}

.blazor-error-boundary::after {
    content: "Wystąpił błąd.";
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--neutral-50);
}

.section-dark {
    position: relative;
    background:
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(21, 101, 192, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(66, 165, 245, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #060e24 0%, #0a2463 35%, #0d3b8c 65%, #1050b5 100%);
    color: var(--white);
    overflow: hidden;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--gap-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--gap-md);
}

.section-dark .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-200);
}

.section-header h2 {
    margin-bottom: var(--gap-md);
}

.section-header p {
    color: var(--neutral-500);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-700);
    border-color: var(--primary-300);
}

.btn-outline:hover {
    background: var(--primary-100);
    border-color: var(--primary-600);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}

.btn i {
    font-size: 0.9em;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-navbar);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 44px;
    transition: var(--transition-normal);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
}

.navbar-links a {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--white);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.navbar.scrolled .navbar-links a {
    color: var(--neutral-700);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-links a:hover {
    color: var(--primary-400);
}

.navbar.scrolled .navbar-links a:hover {
    color: var(--primary-600);
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-normal);
}

.navbar-cta::after {
    display: none !important;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(21, 101, 192, 0.45);
    color: var(--white) !important;
}

/* Navbar social icon */
.navbar-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    transition: all var(--transition-normal);
}

.navbar-social::after {
    display: none !important;
}

.navbar.scrolled .navbar-social {
    background: var(--primary-100);
    border-color: var(--primary-200);
    color: var(--primary-700);
}

.navbar-social:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.navbar.scrolled .navbar-social:hover {
    color: var(--white) !important;
}

.mobile-menu .navbar-social {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-color: var(--primary-200);
    color: var(--primary-700);
    margin-top: var(--gap-lg);
}

.mobile-menu .navbar-social:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: var(--white) !important;
}

/* Mobile menu toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.navbar.scrolled .navbar-toggle span {
    background: var(--neutral-800);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 999;
    padding: 100px var(--gap-xl) var(--gap-xl);
    transition: right var(--transition-normal);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 0;
    color: var(--neutral-800);
    font-weight: 500;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--neutral-200);
    transition: color var(--transition-fast);
}

.mobile-menu a:hover {
    color: var(--primary-600);
}

.mobile-menu .navbar-cta {
    margin-top: var(--gap-lg);
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(21, 101, 192, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(66, 165, 245, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, #060e24 0%, #0a2463 30%, #0d3b8c 60%, #1050b5 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Blueprint grid pattern */
    background-image:
        linear-gradient(rgba(66, 165, 245, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 165, 245, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Thematic floating shapes - gate/door silhouettes */
.hero-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.05);
    animation: float 20s ease-in-out infinite;
}

/* Gate shape */
.hero-shape:nth-child(1) {
    width: 180px;
    height: 220px;
    top: 8%;
    right: 8%;
    animation-delay: 0s;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.hero-shape:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 15%;
    right: 15%;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

/* Roller shutter lines */
.hero-shape:nth-child(2) {
    width: 140px;
    height: 160px;
    bottom: 15%;
    left: 4%;
    animation-delay: -5s;
    border-radius: 6px;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 12px,
        transparent 12px,
        transparent 16px
    );
    border-color: rgba(255, 255, 255, 0.04);
}

/* Small gear/cog shape */
.hero-shape:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 55%;
    right: 22%;
    animation-delay: -10s;
    border-radius: 50%;
    border-color: rgba(66, 165, 245, 0.1);
    background: radial-gradient(circle, rgba(66, 165, 245, 0.06) 30%, transparent 70%);
}

.hero-shape:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(66, 165, 245, 0.08);
    border-radius: 50%;
}

/* Additional thematic decorations */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 30%, rgba(66, 165, 245, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(21, 101, 192, 0.06) 0%, transparent 35%);
    z-index: -1;
    pointer-events: none;
}

/* Decorative line connectors */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(66, 165, 245, 0.2) 50%, transparent 100%);
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

/* Floating thematic icons */
.hero-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    color: rgba(66, 165, 245, 0.15);
    font-size: 1.4rem;
    animation: floatIcon 18s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

.hero-float-icon:nth-child(odd) {
    animation-name: floatIconAlt;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    25% { transform: translateY(-15px) scale(1.05); opacity: 0.8; }
    50% { transform: translateY(-8px) scale(0.95); opacity: 0.5; }
    75% { transform: translateY(-20px) scale(1.02); opacity: 0.7; }
}

@keyframes floatIconAlt {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    33% { transform: translateY(-18px) rotate(5deg); opacity: 0.7; }
    66% { transform: translateY(-6px) rotate(-3deg); opacity: 0.6; }
}

@media (max-width: 1024px) {
    .hero-float-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .hero-icons {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 750px;
    padding-top: var(--navbar-height);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--primary-200);
    margin-bottom: var(--gap-lg);
    letter-spacing: 0.03em;
}

.hero-badge i {
    color: var(--accent-orange);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--gap-lg);
    font-weight: 800;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-300), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--gap-2xl);
    line-height: 1.7;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 1;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    align-items: center;
}

.about-text .section-badge {
    display: inline-flex;
}

.about-text h2 {
    margin-bottom: var(--gap-lg);
}

.about-description {
    color: var(--neutral-600);
    margin-bottom: var(--gap-xl);
    font-size: var(--text-base);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: 0.75rem 1rem;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.about-feature:hover {
    background: var(--primary-100);
    transform: translateX(4px);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    color: var(--neutral-800);
}

/* About image side */
.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-300);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* Stats floating cards */
.about-stats {
    display: flex;
    gap: var(--gap-md);
    margin-top: -60px;
    padding: 0 var(--gap-lg);
    position: relative;
    z-index: 2;
}

.stat-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--neutral-500);
    font-weight: 500;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-xl);
}

.service-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: var(--gap-lg);
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--gap-sm);
}

.service-card p {
    color: var(--neutral-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   OFFER SECTION
   ============================================ */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-xl);
}

.offer-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--white);
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.offer-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.offer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.offer-card:hover .offer-card-image img {
    transform: scale(1.1);
}

.offer-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 36, 99, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.offer-card:hover .offer-card-overlay {
    opacity: 1;
}

.offer-card-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-card-body {
    padding: 1.5rem;
}

.offer-card-body h3 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.offer-card:hover .offer-card-body h3 {
    color: var(--primary-600);
}

.offer-card-body p {
    color: var(--neutral-500);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================
   REALIZATIONS SECTION
   ============================================ */

/* Realizations decorative background */
.realizations-section {
    position: relative;
}

.realizations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(66, 165, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 165, 245, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.realizations-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(66, 165, 245, 0.2) 50%, transparent 100%);
}

.realizations-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.realizations-decor-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.04);
    animation: floatSlow 25s ease-in-out infinite;
}

/* Gate silhouette - left */
.realizations-decor-shape:nth-child(1) {
    width: 120px;
    height: 150px;
    top: 8%;
    left: 3%;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 14px,
        transparent 14px,
        transparent 18px
    );
    animation-delay: 0s;
}

/* Gear - right */
.realizations-decor-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 10%;
    right: 4%;
    border-radius: 50%;
    border-color: rgba(66, 165, 245, 0.06);
    background: radial-gradient(circle, rgba(66, 165, 245, 0.04) 35%, transparent 70%);
    animation-delay: -8s;
}

.realizations-decor-shape:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border: 1px solid rgba(66, 165, 245, 0.06);
    border-radius: 50%;
}

/* Roller shutter - top right */
.realizations-decor-shape:nth-child(3) {
    width: 100px;
    height: 120px;
    top: 5%;
    right: 6%;
    border-radius: 4px;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 10px,
        transparent 10px,
        transparent 14px
    );
    border-color: rgba(255, 255, 255, 0.03);
    animation-delay: -14s;
}

/* Small square - bottom left */
.realizations-decor-shape:nth-child(4) {
    width: 50px;
    height: 50px;
    bottom: 15%;
    left: 8%;
    border-radius: 8px;
    border-color: rgba(66, 165, 245, 0.05);
    background: rgba(66, 165, 245, 0.02);
    animation-delay: -4s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    25% { transform: translateY(-12px) rotate(2deg); opacity: 0.9; }
    50% { transform: translateY(-5px) rotate(-1deg); opacity: 0.6; }
    75% { transform: translateY(-16px) rotate(1deg); opacity: 0.8; }
}

@media (max-width: 640px) {
    .realizations-decor {
        display: none;
    }
}

.realizations-filters {
    display: flex;
    justify-content: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.realization-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.realization-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.realization-item:hover img {
    transform: scale(1.1);
}

.realization-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 36, 99, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.realization-item:hover .realization-item-overlay {
    opacity: 1;
}

.realization-item-overlay h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.realization-item-overlay span {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-xs);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-lg);
}

.contact-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

.contact-item-content h4 {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.contact-item-content p,
.contact-item-content a {
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

.contact-item-content a:hover {
    color: var(--primary-600);
}

.contact-social {
    display: flex;
    gap: var(--gap-md);
    margin-top: var(--gap-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    color: var(--neutral-600);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* Map container */
.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 75% 30%, rgba(13, 59, 140, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 15% 90%, rgba(16, 80, 181, 0.2) 0%, transparent 60%),
        linear-gradient(180deg, #060e24 0%, #0a1a40 40%, #0a2463 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--gap-3xl) 0 0;
    overflow: hidden;
}

/* Blueprint grid */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(66, 165, 245, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 165, 245, 0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
}

/* Top separator line */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(66, 165, 245, 0.3) 30%, rgba(21, 101, 192, 0.5) 50%, rgba(66, 165, 245, 0.3) 70%, transparent 100%);
    z-index: 1;
}

/* Footer decorative shapes */
.footer-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.footer-decor-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Gate silhouette */
.footer-decor-shape:nth-child(1) {
    width: 100px;
    height: 130px;
    top: 10%;
    right: 5%;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
}

/* Roller shutter */
.footer-decor-shape:nth-child(2) {
    width: 80px;
    height: 100px;
    bottom: 25%;
    left: 3%;
    border-radius: 4px;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 8px,
        transparent 8px,
        transparent 12px
    );
    border-color: rgba(255, 255, 255, 0.02);
}

/* Gear */
.footer-decor-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 15%;
    border-radius: 50%;
    border-color: rgba(66, 165, 245, 0.04);
    background: radial-gradient(circle, rgba(66, 165, 245, 0.03) 30%, transparent 70%);
}

@media (max-width: 640px) {
    .footer-decor {
        display: none;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--gap-3xl);
    padding-bottom: var(--gap-3xl);
}

.footer-brand img {
    height: 44px;
    margin-bottom: var(--gap-lg);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--gap-lg);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: var(--gap-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: var(--gap-lg);
    font-family: var(--font-heading);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--primary-400);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--gap-md);
    font-size: var(--text-sm);
}

.footer-contact-item i {
    color: var(--primary-400);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--gap-lg) 0;
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
    z-index: 99;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 28px rgba(21, 101, 192, 0.5);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    background: none;
    border: none;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .navbar-links {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-2xl);
    }

    .about-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .realizations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --navbar-height: 70px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .realizations-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--gap-sm);
        padding: 0 var(--gap-sm);
        margin-top: -40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-2xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-map iframe {
        min-height: 300px;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }

    .realizations-filters {
        gap: 0.25rem;
    }

    .filter-btn {
        padding: 0.375rem 0.875rem;
        font-size: var(--text-xs);
    }

    .about-image-decoration {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .stat-number {
        font-size: var(--text-xl);
    }
}
