/* === CSS Variables === */
:root {
    --bg-dark: #070a11;
    --bg-surface: #101625;
    --bg-surface-light: #1a2336;
    
    --accent-primary: #00d2ff;
    --accent-secondary: #0088ff;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    
    --glass-bg: rgba(16, 22, 37, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-sans: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.subtitle {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.text-center .description {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 10, 17, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-smooth);
}

/* === Hero Section === */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 10, 17, 0.9) 0%, rgba(7, 10, 17, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    max-width: 800px;
    background: linear-gradient(to right, #fff, #b0c4de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero p strong {
    color: var(--accent-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Products Section === */
.products {
    background-color: var(--bg-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.product-card:hover .card-link svg {
    transform: translateX(4px);
}

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

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.info-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

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

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.1);
}

/* === Footer === */
.footer {
    background: #04060a;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* === Animations === */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
}

.fade-up {
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* === Responsive Design === */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        border-left: 1px solid var(--glass-border);
    }

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

    .hero-actions {
        flex-direction: column;
    }

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

/* === Common Page Header === */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
}
.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Specific Header Backgrounds */
.header-contact {
    background: linear-gradient(to bottom, rgba(7, 10, 17, 0.9), var(--bg-dark)), url('../images/hero_bg.png') center/cover;
}
.header-service {
    background: linear-gradient(to bottom, rgba(7, 10, 17, 0.9), var(--bg-dark)), url('../images/equipment.png') center/cover;
}
.header-about {
    background: linear-gradient(to bottom, rgba(7, 10, 17, 0.9), var(--bg-dark)), url('../images/washing_machine.png') center/cover;
}

/* === Contact Page === */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem;
}
.phone-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 12px;
}
.phone-highlight svg {
    width: 40px;
    height: 40px;
}
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
    border: 1px solid var(--glass-border);
}
.other-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.other-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}
.other-info svg {
    color: var(--accent-primary);
    width: 20px;
    height: 20px;
}

/* === Service Page === */
.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}
.service-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.service-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.cta-banner {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0, 136, 255, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}
.cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.parts-supplies-section {
    background-color: var(--bg-surface);
    padding: 80px 0;
}
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.item-card {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}
.item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}
.item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-icon svg {
    width: 30px;
    height: 30px;
}
.item-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.item-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === About Us Page === */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.story-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.story-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}
.story-image img {
    width: 100%;
    height: auto;
    display: block;
}
.achievements-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-card {
    padding: 2rem;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.reference-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: var(--transition-smooth);
}
.reference-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
}
.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: rgba(0, 210, 255, 0.1);
    width: 40px;
    height: 40px;
}
.reference-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-primary);
}
.client-details h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.client-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .contact-page-wrapper, .story-section {
        grid-template-columns: 1fr;
    }
    .contact-page-wrapper {
        padding: 1.5rem;
    }
    .phone-highlight {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
}

/* === Products Page specific === */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.category-tab {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.category-tab:hover, .category-tab.active {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.css-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, var(--bg-surface-light), var(--bg-surface));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.css-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: rgba(0, 210, 255, 0.5);
}
.css-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Modifier for buttons dynamically generated */
button.card-link {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    cursor: pointer;
}

/* === Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-smooth);
    padding: 0;
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: var(--accent-primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image-wrapper {
    background: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 3rem;
}

.modal-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-details p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-details {
        padding: 2rem;
    }
}
