/* ===== CSS Variables ===== */
:root {
    --primary-color: #4a5568;
    --secondary-color: #2d3748;
    --accent-color: #718096;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #2d3748;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -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 {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Section Spacing ===== */
.section {
    padding: 4rem 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.3);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
    font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.3);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 55, 72, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

/* Slider içindeki butonlar için glassmorphism */
.slider .btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.slider .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider .btn-primary:hover::before {
    opacity: 1;
}

.slider .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider .btn-primary:hover::after {
    opacity: 1;
}

.slider .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider .btn-primary i,
.slider .btn-primary span {
    position: relative;
    z-index: 1;
}

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

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

.btn-cta {
    background: var(--bg-white);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 1rem 2.5rem;
}

.btn-cta:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 2rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    backdrop-filter: blur(20px);
}

.header-fixed {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0 !important;
    backdrop-filter: blur(20px);
}

.header-fixed .nav-logo img {
    height: 60px;
}

.header-fixed .nav-link {
    color: var(--text-dark) !important;
}

.header-fixed .nav-link:hover,
.header-fixed .nav-link.active {
    color: var(--secondary-color) !important;
}

.header-fixed .nav-btn,
.header-fixed .nav-contact-btn {
    background: var(--secondary-color) !important;
    color: var(--bg-white) !important;
}

.header-fixed .nav-btn:hover,
.header-fixed .nav-contact-btn:hover {
    background: var(--primary-color) !important;
    transform: translateY(-2px);
}

.header-fixed .nav-toggle {
    color: var(--text-dark) !important;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.nav-logo {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.nav-logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    transition: all 0.4s ease;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    object-fit: contain;
}

.logo-light {
    opacity: 1;
    visibility: visible;
}

.logo-dark {
    opacity: 0;
    visibility: hidden;
}

.header.scrolled .logo-light {
    opacity: 0;
    visibility: hidden;
}

.header.scrolled .logo-dark {
    opacity: 1;
    visibility: visible;
}

.header.scrolled .nav-logo img {
    height: 50px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
}

.nav-menu.show-menu {
    right: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bg-white);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

/* Mobilde menü her zaman beyaz arka planlı olduğu için linkler siyah olmalı */
@media screen and (max-width: 767px) {
    .nav-link {
        color: var(--text-dark) !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--secondary-color) !important;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-white);
    transition: width 0.3s ease;
}

.header.scrolled .nav-link::before {
    background: var(--secondary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bg-white);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--secondary-color);
}

.nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-contact-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.header.scrolled .nav-contact-btn {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

.header.scrolled .nav-contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bg-white);
    transition: var(--transition);
    margin-right: 1.5rem;
}

.header.scrolled .nav-toggle {
    color: var(--text-dark);
}

/* Ana sayfa dışındaki sayfalarda toggle siyah olmalı */
.header-fixed .nav-toggle {
    color: var(--text-dark) !important;
}

/* Mobile menu button */
.nav-item-btn {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===== Slider Section ===== */
.slider-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: var(--bg-dark);
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
    transform: scale(1);
    will-change: transform;
}

/* Desktop görselini mobilde gizle */
.slide-bg-mobile {
    display: none;
}

/* Mobil görünüm */
@media (max-width: 768px) {
    .slide-bg-desktop {
        display: none;
    }

    .slide-bg-mobile {
        display: block;
    }
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(74, 85, 104, 0.6));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--bg-white);
}

.slide.active .slide-content {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
}

.slide-description {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
    pointer-events: none;
}

@media screen and (min-width: 768px) {
    .slider-controls {
        padding: 0 3rem;
    }
}

.slider-btn {
    pointer-events: all;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--bg-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-btn:hover::before {
    opacity: 1;
}

.slider:hover .slider-btn {
    opacity: 0.8;
}

.slider-btn:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.slider-btn:active {
    transform: scale(1.05);
}

.slider-btn i {
    position: relative;
    z-index: 1;
    font-weight: 900;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
    background: rgba(45, 55, 72, 0.4);
    backdrop-filter: blur(20px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.4s ease;
}

.indicator.active {
    background: var(--bg-white);
    width: 32px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Scroll Down Wrapper */
.scroll-down-wrapper {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-white);
    animation: bounce 2s infinite;
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media screen and (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.service-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(45, 55, 72, 0.15);
    border-color: var(--secondary-color);
}

.service-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(45, 55, 72, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.service-content {
    padding: 2rem;
    text-align: left;
}

.service-content:has(.service-icon) {
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.2);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(45, 55, 72, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--bg-white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary-color);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.98rem;
}

.service-image + .service-content .service-description {
    margin-bottom: 1.75rem;
}

/* ===== Products Section ===== */
.filter-section {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--secondary-color);
    color: var(--bg-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.2);
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media screen and (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.product-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(45, 55, 72, 0.2);
    border-color: var(--secondary-color);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.1), rgba(74, 85, 104, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

.product-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.7;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.product-category {
    color: var(--text-light);
    font-weight: 500;
}

.product-category i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.product-unit {
    color: var(--text-dark);
    font-weight: 600;
    background: var(--bg-light);
    padding: 0.35rem 1rem;
    border-radius: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Detail Pages (Service & Product Detail) ===== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.detail-main {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
}

.detail-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
    background: var(--bg-light);
}

.detail-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.detail-image-wrapper:hover .detail-main-image {
    transform: scale(1.05);
}

.detail-image-main {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.detail-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.detail-section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.detail-content {
    padding: 3rem;
}

.detail-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.detail-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.detail-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-list li i {
    color: var(--secondary-color);
    font-size: 1.15rem;
}

/* Product Gallery */
.product-gallery {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.product-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
}

.thumbnail {
    width: calc(25% - 0.75rem);
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specifications Grid */
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.spec-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: var(--bg-white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.spec-item i {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.spec-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.spec-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Material & Process Grids */
.material-grid,
.process-steps,
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.material-item,
.process-step,
.advantage-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-item:hover,
.process-step:hover,
.advantage-item:hover {
    background: var(--bg-white);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.material-item i,
.advantage-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.material-item h4,
.process-step h4,
.advantage-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.material-item p,
.process-step p,
.advantage-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-card h3,
.sidebar-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.sidebar-card-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.quick-info-item:last-child {
    border-bottom: none;
}

.quick-info-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.sidebar-highlight {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
}

.sidebar-highlight h3 {
    color: var(--bg-white);
}

.sidebar-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.2);
}

.sidebar-btn i {
    font-size: 1.15rem;
}

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

.sidebar-links li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
}

.sidebar-links a i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.sidebar-info {
    text-align: center;
    background: var(--bg-light);
}

.sidebar-info i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.sidebar-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.sidebar-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Product Price Info */
.product-price-info {
    text-align: center;
}

.price-note {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.price-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1.05rem;
}

.price-cta i {
    font-size: 1.25rem;
}

/* Product Summary */
.product-summary {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-summary li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.product-summary li:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-light);
    font-weight: 500;
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== Gallery Section (Pinterest Style) ===== */
.gallery-grid.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(45, 55, 72, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info h3 {
    font-family: var(--font-heading);
    color: var(--bg-white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.gallery-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-link {
    opacity: 1;
    transform: scale(1);
}

.gallery-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive Gallery */
@media screen and (max-width: 1024px) {
    .gallery-grid.masonry {
        column-count: 2;
    }
}

@media screen and (max-width: 640px) {
    /* Hide slider navigation arrows on small mobile - swipe gestures work better */
    .slider-btn {
        display: none;
    }

    .gallery-grid.masonry {
        column-count: 1;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== References Section (Fallback) ===== */
.references-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media screen and (min-width: 640px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.reference-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.reference-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(45, 55, 72, 0.2);
}

.reference-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
}

.reference-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(74, 85, 104, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-overlay i {
    font-size: 3.5rem;
    color: var(--bg-white);
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-card:hover .reference-overlay {
    opacity: 1;
}

.reference-card:hover .reference-overlay i {
    transform: scale(1) rotate(0deg);
}

.reference-card:hover .reference-image img {
    transform: scale(1.2);
    filter: grayscale(0%);
}

.reference-content {
    padding: 2rem;
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
}

.reference-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.reference-card:hover .reference-title {
    color: var(--primary-color);
}

.reference-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.98rem;
}

/* ===== Lightbox Modal ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
    max-width: 600px;
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-close i,
.lightbox-prev i,
.lightbox-next i {
    font-size: 1.25rem;
}

/* Lightbox Responsive */
@media screen and (max-width: 768px) {
    /* Slider buttons - smaller on tablets */
    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 1rem;
    }

    .slider-btn.next {
        right: 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        padding: 1rem 1.5rem;
        margin-top: 1rem;
    }

    .lightbox-caption h3 {
        font-size: 1.25rem;
    }

    .lightbox-caption p {
        font-size: 0.9rem;
    }
}

/* ===== CTA Section ===== */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(rgba(45, 55, 72, 0.92), rgba(45, 55, 72, 0.92)),
                url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=1920') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--bg-white);
    text-align: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(74, 85, 104, 0.85));
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: start;
}

.about-image img {
    max-width: 400px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.about-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media screen and (min-width: 640px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-info-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.75rem;
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info-link {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--secondary-color);
}

.contact-info-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.required {
    color: #dc3545;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-success i {
    color: #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger i {
    color: #dc3545;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.contact-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.contact-info-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 55, 72, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media screen and (max-width: 639px) {
    .contact-form {
        padding: 1.5rem;
    }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--bg-white);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--secondary-color));
}

.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(113, 128, 150, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col {
    position: relative;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li {
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    width: 12px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 25px;
}

.footer-links a:hover::before {
    width: 16px;
    background: var(--bg-white);
}

.footer-links i {
    color: var(--primary-color);
    width: 18px;
    font-size: 0.9rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-social a i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inline {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: var(--bg-white);
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    font-size: 0.75rem;
}

.breadcrumb-item i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.85) 0%, rgba(74, 85, 104, 0.85) 100%),
                url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=1920&h=1080&fit=crop') center/cover no-repeat;
    padding: 4rem 0 3rem;
    margin-top: 82px;
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Responsive Design ===== */

/* Tablet */
@media screen and (min-width: 768px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    .nav-close,
    .nav-toggle {
        display: none;
    }

    .nav-contact-btn {
        display: flex;
    }

    .nav-item-btn {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .about-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .section {
        padding: 5rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop */
@media screen and (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

/* Tablet & Mobile - Detail Pages */
@media screen and (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-sidebar {
        position: static;
    }

    .specifications-grid,
    .material-grid,
    .process-steps,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        flex-wrap: wrap;
    }

    .thumbnail {
        width: calc(50% - 0.5rem);
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-column: 1;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

    .detail-content {
        padding: 1.5rem;
    }

    .detail-image-main {
        height: 300px;
    }

    .product-main-image {
        height: 350px;
    }

    .thumbnail {
        width: calc(50% - 0.5rem);
        height: 80px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== Float Action Buttons ===== */
.phone-float,
.whatsapp-float {
    position: fixed;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.phone-float {
    bottom: 7rem;
    background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
    color: white;
}

.whatsapp-float {
    bottom: 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.phone-float:hover,
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.phone-float:active,
.whatsapp-float:active {
    transform: translateY(-3px) scale(1.02);
}

/* Pulse animation for WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .phone-float,
    .whatsapp-float {
        width: 56px;
        height: 56px;
        right: 1.25rem;
    }

    .phone-float {
        bottom: 6.5rem;
    }

    .whatsapp-float {
        bottom: 1.5rem;
    }

    .phone-float svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .phone-float,
    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 1.25rem;
    }

    .phone-float {
        bottom: 6rem;
    }
}

/* ===== Article & Blog Styles ===== */

/* Article Meta Bar */
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta-bar .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-meta-bar .meta-item i {
    color: var(--secondary-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-date i {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Article Content */
.article-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.blog-description {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-sm);
}

.blog-description p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #145dbf;
    transform: translateY(-2px);
}

.share-twitter {
    background: #000000;
    color: white;
}

.share-twitter:hover {
    background: #333333;
    transform: translateY(-2px);
}

.share-linkedin {
    background: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background: #005582;
    transform: translateY(-2px);
}

.share-copy {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.share-copy:hover {
    background: var(--bg-white);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* No Content Message */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-content h3 {
    color: var(--heading-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.no-content p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Related Items in Sidebar */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.related-link:hover {
    color: var(--secondary-color);
}

.related-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.related-date i {
    font-size: 0.75rem;
}

/* Detail Actions */
.detail-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Pagination Wrapper */
.pagination-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===== Legal Page Styles ===== */

/* Legal Prose - Enhanced content styling */
.legal-prose {
    line-height: 1.8;
}

.legal-prose h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-weight: 700;
}

.legal-prose h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    font-weight: 600;
}

.legal-prose h4 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.legal-prose p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.legal-prose ul,
.legal-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-prose li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-prose strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-prose a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-prose a:hover {
    color: var(--primary-color);
}

/* Legal Meta */
.legal-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Legal Menu in Sidebar */
.legal-menu .quick-info-item {
    cursor: pointer;
}

.legal-menu .quick-info-item a {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
}

.legal-menu .quick-info-item:hover {
    background: var(--bg-light);
}

.legal-menu .quick-info-item:hover a {
    color: var(--secondary-color);
}

.legal-menu .quick-info-item.active {
    background: var(--bg-light);
    border-left: 3px solid var(--secondary-color);
    padding-left: 0.85rem;
}

.legal-menu .quick-info-item.active a {
    color: var(--secondary-color);
    font-weight: 600;
}

.legal-menu .quick-info-item.active i {
    color: var(--secondary-color);
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .scroll-top,
    .cta,
    .phone-float,
    .whatsapp-float,
    .social-share-buttons,
    .detail-actions {
        display: none;
    }
}
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 50%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 3rem;
    animation: logoFloat 0.8s ease-out, logoPulse 2s ease-in-out 0.8s infinite;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinRing 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #2d3748;
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-top-color: #4a5568;
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: #718096;
    animation-delay: -0.15s;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: #2d3748;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.05), rgba(113, 128, 150, 0.08));
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: -7s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes logoFloat {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-15px, 15px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, 20px) scale(1.05);
        opacity: 0.6;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .loading-logo {
        max-width: 180px;
        margin-bottom: 2rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .circle {
        opacity: 0.5;
    }

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

/* ===== Project Specific Styles ===== */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
}

.project-meta-item i {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.project-meta-item:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.project-meta-item:hover i {
    color: var(--bg-white);
}

.project-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.project-info-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.project-info-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.project-info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-info-item strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.project-info-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media screen and (min-width: 768px) {
    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .project-meta {
        gap: 0.5rem;
    }
    
    .project-meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-info-item {
        padding: 1rem;
    }
}

/* ===== Project Gallery Styles ===== */
.project-gallery {
    margin-bottom: 2rem;
}

.gallery-main-image {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-thumbnail {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.gallery-thumbnail:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.3);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (min-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 640px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-thumbnail {
        border-width: 2px;
    }
}
