:root {
    --logo-red: #ff0000;
    --logo-black: #000000;
    --dark-bg: #1a1a1a;
    --light-bg: #f4f4f4;
    --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-red {
    background-color: #25D366;
    color: white;
}
.btn-red:hover { background-color: #128C7E; }

.btn-solid-red {
    background-color: var(--logo-red);
    color: white;
}
.btn-solid-red:hover { background-color: #cc0000; }

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}
.btn-outline-white:hover {
    background: white;
    color: var(--logo-black);
}

#main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--logo-black);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: var(--logo-red);
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    height: 100vh;
    background: url('../img/2.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-top-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
}

.location-badge {
    display: inline-block;
    background: rgba(255, 0, 0, 0.2);
    color: var(--logo-red);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid var(--logo-red);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
}

.highlight {
    color: var(--logo-red);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-action { display: none; }
    .mobile-menu-icon { display: block; }
    
    .nav-menu { 
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu ul li {
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 20px;
        text-align: center;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { padding: 30px 20px; }
    .ba-slider { height: 300px; }
}

.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-style: italic;
    color: var(--logo-black);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--logo-red);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 0, 0, 0.1);
    color: var(--logo-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--logo-red);
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--logo-black);
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
}

.before-after-section {
    padding: 80px 0;
    background-color: white;
}

.ba-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #ddd;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.grayscale-effect {
    filter: grayscale(40%) contrast(110%);
}

.before-image {
    width: 50%;
    z-index: 2;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 15px;
    color: white;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 5;
}

.label-before {
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.label-after {
    right: 20px;
    background-color: rgba(255, 0, 0, 0.8);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-handle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--logo-black);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
}

@media (max-width: 768px) {
    .ba-slider { height: 300px; }
}

.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info {
    padding: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 10px;
}

.contact-desc {
    color: #666;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--logo-red);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--logo-black);
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--logo-red);
}

.contact-map {
    min-height: 400px;
}

.main-footer {
    background-color: var(--logo-black);
    color: white;
    padding: 40px 0;
    border-top: 4px solid var(--logo-red);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

.footer-content p {
    color: #aaa;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--logo-red);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding: 30px 20px;
    }
}

.ai-section {
    padding: 80px 0;
    background-color: white;
}

.ai-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--logo-red);
    background: rgba(255,0,0,0.02);
}

.upload-area i {
    font-size: 40px;
    color: #888;
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.1rem;
    color: var(--logo-black);
    margin-bottom: 5px;
}

.btn-outline-dark {
    border: 2px solid var(--logo-black);
    color: var(--logo-black);
    background: transparent;
    margin-top: 15px;
}

.btn-outline-dark:hover {
    background: var(--logo-black);
    color: white;
}

.preview-area {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.ai-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--logo-red);
    box-shadow: 0 0 15px var(--logo-red), 0 0 30px var(--logo-red);
    animation: scan 2s infinite linear;
    display: none;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.w-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.result-area {
    background: white;
    border-left: 4px solid var(--logo-red);
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.result-area h4 {
    color: var(--logo-black);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-response {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.mt-4 { margin-top: 16px; }

.portfolio-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ba-images {
    display: flex;
    width: 100%;
}

.ba-img-box {
    position: relative;
    width: 50%;
    height: 200px;
}

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

.ba-label {
    position: absolute;
    top: 8px;
    z-index: 2;
    
    height: fit-content !important; 
    width: fit-content !important;
    display: inline-block;
    line-height: 1;
    bottom: auto;
    
    padding: 5px 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ba-label.before {
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
}

.ba-label.after {
    right: 8px;
    background: rgba(220, 20, 60, 0.7);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    color: var(--logo-black);
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.ba-modal {
    display: none;
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.ba-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: transparent;
}

.ba-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ba-close:hover { color: var(--logo-red); }

.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: #111;
}

.ba-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.img-before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    z-index: 10;
    cursor: col-resize;
}

.ba-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2px;
    height: 100%;
    background: transparent;
}
.ba-slider-input::-moz-range-thumb {
    width: 2px;
    height: 100%;
    background: transparent;
    border: none;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    pointer-events: none;
    z-index: 5;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--logo-red);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}