/* ===================================
   Rozpočty LV - Stavební rozpočtování
   Moderní CSS s technickým designem
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Minimalistické šedé odstíny podle inspirace */
    --primary-dark: #2c2c2c;
    --primary-medium: #666666;
    --primary-light: #999999;
    
    /* Secondary Colors */
    --secondary-dark: #333333;
    --secondary-medium: #666666;
    --secondary-light: #f5f5f5;
    
    /* Accent Colors - Minimální, technické */
    --accent-line: #e5e5e5;
    --accent-border: #cccccc;
    --accent-hover: #f0f0f0;
    
    /* Neutral Colors - Bílo-šedá paleta */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #cccccc;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #4d4d4d;
    --gray-700: #333333;
    --gray-800: #2c2c2c;
    --gray-900: #1a1a1a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Oswald', 'Roboto Slab', sans-serif;
    --font-display: 'Roboto Slab', serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
}

/* ==================
   RESET & BASE STYLES
   ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* ==================
   UTILITY CLASSES
   ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==================
   HEADER / NAVIGATION
   ================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-icon {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0px;
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-700);
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-dark);
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-dark);
}

/* ==================
   BUTTONS
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid var(--gray-300);
    font-size: 16px;
    padding: 16px 40px;
}

.btn-hero-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--primary-dark);
    font-size: 16px;
    padding: 15px 40px;
}

.btn-hero-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-cta {
    background: var(--primary-dark);
    color: var(--white);
    border: 1px solid var(--primary-dark);
    font-size: 18px;
    padding: 18px 50px;
}

.btn-cta:hover {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

.btn-submit {
    background: var(--primary-dark);
    color: var(--white);
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid var(--primary-dark);
}

.btn-submit:hover {
    background: var(--gray-600);
    border-color: var(--gray-600);
}

/* ==================
   HERO SECTION
   ================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    overflow: hidden;
    padding: 60px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(51, 51, 51, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--gray-800);
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 30px;
    text-align: center;
}

.hero-logo img {
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.logo-lv {
    font-family: var(--font-headings);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 64px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-slogan {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 500;
    color: var(--gray-700);
    font-style: italic;
}

.hero-dozor {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
    font-weight: 400;
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================
   SECTION STYLES
   ================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gray-100);
    color: var(--primary-dark);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 48px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================
   ABOUT SECTION
   ================== */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(51, 51, 51, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.about-experience {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.experience-number {
    font-family: var(--font-headings);
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.about-text h3 {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature-item i {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 22px;
    flex-shrink: 0;
}

.about-feature-item h4 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.about-feature-item p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
}

/* ==================
   SERVICES SECTION
   ================== */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    display: block;
    visibility: visible;
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--gray-100);
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-500);
}

.service-card.featured {
    background: var(--gray-800);
    color: var(--white);
    border-color: var(--gray-600);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--gray-900);
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 25px;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.service-card.featured .service-features li {
    color: var(--white);
}

.service-features i {
    color: var(--primary-dark);
    font-size: 16px;
}

.service-card.featured .service-features i {
    color: var(--white);
}

/* ==================
   SUPERVISION SECTION
   ================== */
.supervision-section {
    padding: var(--section-padding) 0;
    background: var(--gray-800);
    color: var(--white);
}

.supervision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .supervision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .supervision-item {
        padding: 20px;
    }
    
    .supervision-item h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .supervision-item p {
        font-size: 14px;
        line-height: 1.5;
    }
}

.supervision-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.supervision-item h3 {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.supervision-item p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ==================
   REFERENCES SECTION
   ================== */
.references-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
    display: block;
    visibility: visible;
    opacity: 1;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.reference-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.reference-card.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.reference-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.reference-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.reference-image:not(:has(img))::before {
    content: 'Žádný obrázek';
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.reference-card:hover .reference-image img {
    transform: scale(1.1);
}

/* Galerie obrázků */
.reference-gallery {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-gallery:not(:has(img))::before {
    content: 'Žádný obrázek';
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.gallery-single {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* Zajištění jednotné velikosti */
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.reference-gallery-multiple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    height: 100%;
}

.reference-gallery-multiple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    /* Zajištění jednotné velikosti */
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
}

/* Pro 2 obrázky - každý zabere půlku */
.reference-gallery-multiple img:first-child:nth-last-child(2) {
    grid-column: 1;
    grid-row: 1;
}

.reference-gallery-multiple img:first-child:nth-last-child(2) ~ img {
    grid-column: 2;
    grid-row: 1;
}

/* Pro 3 obrázky - první zabere celou horní řadu, zbylé dva dolní */
.reference-gallery-multiple img:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
    grid-row: 1;
}

.reference-gallery-multiple img:first-child:nth-last-child(3) ~ img {
    grid-row: 2;
}

.reference-gallery-multiple img:first-child:nth-last-child(3) ~ img:nth-child(2) {
    grid-column: 1;
}

.reference-gallery-multiple img:first-child:nth-last-child(3) ~ img:nth-child(3) {
    grid-column: 2;
}

/* Pro 4 obrázky - klasické 2x2 */
.reference-gallery-multiple img:first-child:nth-last-child(4) {
    grid-column: 1;
    grid-row: 1;
}

.reference-gallery-multiple img:first-child:nth-last-child(4) ~ img:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.reference-gallery-multiple img:first-child:nth-last-child(4) ~ img:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.reference-gallery-multiple img:first-child:nth-last-child(4) ~ img:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.reference-gallery-overlay {
    display: none;
}

.reference-card:hover .reference-gallery img {
    transform: scale(1.05);
}

/* Lightbox galerie */
.lightbox-overlay {
    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;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox-image {
    width: 50vw;
    height: 40vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    /* Zajištění jednotného zobrazení - menší velikost, celé obrázky */
    min-width: 350px;
    min-height: 250px;
    max-width: 50vw;
    max-height: 40vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.gallery-single img,
.gallery-multiple img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-single img:hover,
.gallery-multiple img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-next {
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 45px;
        height: 45px;
    }
    
    .lightbox-image-container {
        min-width: 250px;
        min-height: 150px;
        max-width: 95vw;
        max-height: 70vh;
    }
    
    .lightbox-image {
        width: 80vw;
        height: 35vh;
        min-width: 200px;
        min-height: 120px;
        max-width: 80vw;
        max-height: 35vh;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

.reference-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.reference-content {
    padding: 30px;
}

.reference-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.reference-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

.reference-detail i {
    color: var(--primary-dark);
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.reference-content h3 {
    font-family: var(--font-headings);
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.reference-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ==================
   CTA SECTION
   ================== */
.cta-section {
    padding: 100px 0;
    background: var(--gray-800);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.cta-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-family: var(--font-headings);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 400;
}

.cta-content p:last-child {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

/* ==================
   CONTACT SECTION
   ================== */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-item h3 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-info-item p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);
    margin: 0;
}

.contact-info-item a {
    color: var(--primary-dark);
    font-weight: 500;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--gray-50);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==================
   FOOTER
   ================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    box-shadow: none;
    width: 100px;
    height: 75px;
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-400);
}

.footer-column h3 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gray-300);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--gray-400);
    font-size: 16px;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
}


/* ==================
   BACK TO TOP BUTTON
   ================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==================
   ANIMATIONS
   ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   RESPONSIVE DESIGN
   ================== */

/* Laptop/Notebook */
@media (max-width: 1366px) and (min-width: 1025px) {
    .hero {
        min-height: 85vh;
        padding: 50px 0;
    }
    
    .hero-logo img {
        max-width: 650px;
    }
    
    .hero-slogan {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .header-content {
        gap: 30px;
    }
    
    .nav-list {
        gap: 25px;
    }
    
    .hero {
        min-height: 80vh;
        padding: 40px 0;
    }
    
    .hero-logo img {
        max-width: 550px;
    }
    
    .hero-slogan {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .header-content {
        padding: 15px 0;
    }
    
    .header-btn {
        display: none;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-list a {
        display: block;
        padding: 20px;
        font-size: 18px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 70vh;
        padding: 30px 0;
        margin-top: 80px;
    }
    
    .hero-logo img {
        max-width: 450px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 16px 30px;
    }
    
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 26px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-details {
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .reference-detail {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-icon {
        width: 60px;
        height: 45px;
    }
    
    .hero-logo img {
        max-width: 350px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .logo-text {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
}
