/* ==== Premium CSS Variables & Theme ==== */
:root {
    /* Curated Color Palette */
    --brand-blue: #0b2239;
    --brand-blue-light: #163a5f;
    --brand-red: #d32f2f;
    --brand-red-glow: rgba(211, 47, 47, 0.4);
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(11, 34, 57, 0.15);
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-blue);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--brand-blue);
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==== Typography & UI Elements ==== */
.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
}

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

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-subtitle.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red), #b71c1c);
    color: var(--text-light);
    box-shadow: 0 10px 20px var(--brand-red-glow);
}

.btn-primary:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px var(--brand-red-glow);
}

.btn-secondary {
    background: var(--brand-blue);
    color: var(--text-light);
}

.btn-secondary:hover {
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(11, 34, 57, 0.3);
}

/* ==== Premium Header ==== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 40px rgba(11, 34, 57, 0.08);
}

.site-header.scrolled {
    top: 10px;
    width: 90%;
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 50px rgba(11, 34, 57, 0.12);
}

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

.header-counter-wrapper {
    display: flex;
    align-items: center;
}

.logo img {
    height: 85px;
    transition: var(--transition-smooth);
}

.site-header.scrolled .logo img {
    height: 65px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-nav a {
    color: var(--brand-blue);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:not(.btn-nav):hover {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.25);
    transform: translateY(-2px);
}

.main-nav a.btn-nav {
    background: var(--brand-blue);
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(11, 34, 57, 0.2);
    transition: var(--transition-smooth);
    margin-left: 0.5rem;
}

.main-nav a.btn-nav:hover {
    background: #081a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 34, 57, 0.3);
}

/* ==== Hero Section (Split Design) ==== */
.hero-section {
    position: relative;
    padding-top: 120px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(211, 47, 47, 0.1);
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-blue);
}

.hero-content h1 span {
    color: var(--brand-red);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    z-index: 1;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(11,34,57,0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==== Auto Slider ==== */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

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

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

/* ==== About Section ==== */
.about-section {
    padding: 8rem 0;
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-images {
    position: relative;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.img-main {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    width: 85%;
    position: relative;
    z-index: 1;
}

.img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
    border: 8px solid white;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.stats-card {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--brand-blue);
    color: var(--text-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(11, 34, 57, 0.3);
    text-align: center;
    z-index: 3;
}

.stats-card h3 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stats-card p {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-item {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-item:hover {
    background: var(--bg-card);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    color: var(--brand-red);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==== Products/Gallery Section ==== */
.products-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

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

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==== Gallery Section ==== */
.gallery-section {
    padding: 8rem 0;
    background: var(--bg-card);
}

.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 34, 57, 0.2);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

/* ==== Contact Section ==== */
.contact-section {
    padding: 8rem 0 4rem;
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-section .section-title::after {
    background: var(--brand-red);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info-wrapper {
    padding-right: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--brand-red);
    color: var(--text-light);
    transform: scale(1.1);
}

.contact-details h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.contact-form-box {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-main);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(11, 34, 57, 0.1);
}

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

/* ==== Footer ==== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 0;
    font-size: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    text-align: left;
}

.footer-widget h3 {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.footer-widget.contact-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-widget.contact-info li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: rgba(255,255,255,0.8);
}

.footer-widget.contact-info svg {
    color: var(--brand-red);
    flex-shrink: 0;
}

.footer-widget.contact-info a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-fast);
}

.footer-widget.contact-info a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-map iframe {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    filter: invert(90%) hue-rotate(180deg) contrast(80%);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem 2rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.visitor-counter {
    background: var(--brand-blue, #0B2239);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(11, 34, 57, 0.15);
    transition: var(--transition-smooth);
}

.visitor-counter:hover {
    background: #081a2b; /* Slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 34, 57, 0.25);
}

.visitor-counter svg {
    color: white !important;
}

.counter-label {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.counter-number {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-only-counter {
    display: none;
}

/* ==== Lightbox ==== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.2s;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--brand-red);
    transform: scale(1.1);
}

/* ==== Animations ==== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ==== Mobile Menu Toggle ==== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==== Responsive ==== */
@media (max-width: 1200px) {
    .site-header { width: 98%; }
    .main-nav ul { gap: 1rem; }
}

@media (max-width: 1024px) {
    .site-header {
        top: 10px;
        width: 95%;
        border-radius: 20px;
    }
    
    .header-container {
        justify-content: space-between;
        gap: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.5rem;
    }
    
    .mobile-only-counter {
        display: block;
        margin-top: 2rem;
    }

    .header-counter-wrapper {
        display: none;
    }

    .hero-content h1 { font-size: 3.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-container { flex-direction: column; text-align: center; padding: 4rem 0; justify-content: center; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; width: 100%; height: 400px; margin-top: 0; margin-bottom: 3rem; }
    .hero-image-wrapper { transform: none; }
    .hero-image-wrapper:hover { transform: none; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.25rem; }
    .hero-content p { font-size: 1.1rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .product-grid { grid-template-columns: 1fr; gap: 2rem; }
    .masonry-gallery { column-count: 2; }
    
    .about-images { padding: 0; }
    .img-main { width: 100%; }
    .img-secondary { position: relative; width: 80%; margin: -40px auto 0; display: block; border-width: 4px; }
    .stats-card { position: relative; top: 0; left: 0; margin-top: -2rem; z-index: 4; }
    
    .footer-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom-container { justify-content: center; text-align: center; }
    
    .contact-item { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .contact-info-wrapper { padding-right: 0; }
    .contact-form-box { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .masonry-gallery { column-count: 1; }
    .hero-visual { height: 300px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; }
}
