/* ---- CSS Variables & Reset ---- */
:root {
    --primary-color: #d4af37; /* Metallic Gold */
    --primary-dark: #b38b22;
    --bg-dark: #0a0b0a;      /* Very dark green-black */
    --bg-card: rgba(20, 25, 20, 0.7); /* Translucent dark green */
    --text-main: #f5f5f5;
    --text-muted: #a0aab0;
    --border-color: rgba(212, 175, 55, 0.15);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-border: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; 
}

/* Background Canvas */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; opacity: 0.3;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary-color); }
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--primary-color);
    transition: width 0.2s, height 0.2s, top 0.1s, left 0.1s ease-out;
}

/* Container & Typography */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
a { text-decoration: none; color: inherit; transition: var(--transition-slow); }
ul { list-style: none; }
.section { padding: 100px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title .subtitle {
    color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 3px; display: block; margin-bottom: 10px; font-weight: 500;
}
.section-title h2 { font-size: 3rem; color: #fff; margin-bottom: 20px; }
.divider { height: 3px; width: 60px; background: var(--primary-color); margin: 0 auto; }
.divider.center { margin: 20px auto; }

/* Oil Flow Animation */
.oil-animation-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 40px;
}
.oil-line {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    border-radius: 2px;
    overflow: visible;
    margin-top: 15px;
}
.oil-press-plate {
    position: absolute;
    width: 80px;
    height: 4px;
    background: #333;
    border: 1px solid var(--primary-color);
    top: -20px;
    left: 50%;
    margin-left: -40px;
    border-radius: 2px;
    animation: platePress 3s infinite ease-in-out;
}
.oil-drop {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 0 50% 50% 50%;
    transform: rotate(45deg);
    top: 0;
    left: 50%;
    margin-left: -6px;
    box-shadow: 0 0 15px var(--primary-color);
    animation: dropFall 3s infinite cubic-bezier(0.5, 0, 0.7, 0.5);
    opacity: 0;
}
.oil-stream {
    position: absolute;
    top: -2px;
    left: 0;
    width: 0;
    height: 8px;
    background: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color);
    animation: streamFlow 3s infinite ease-in-out;
}

/* Oil Flow Animation Variants */
.oil-animation-wrapper.sm {
    height: 30px;
    margin: 5px 0;
}
.oil-animation-wrapper.sm .oil-line {
    width: 60px;
    height: 2px;
}
.oil-animation-wrapper.sm .oil-press-plate {
    width: 30px;
    height: 2px;
    top: -10px;
    margin-left: -15px;
}
.oil-animation-wrapper.sm .oil-drop {
    width: 6px;
    height: 6px;
    margin-left: -3px;
}
.oil-animation-wrapper.sm .oil-stream {
    height: 4px;
    top: -1px;
}

/* Fix mobile section title gaps */
@media (max-width: 768px) {
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: 1.8rem; }
    .oil-animation-wrapper { height: 40px; margin-top: -10px; }
}

/* Logo Specific Large Animation */
.oil-animation-wrapper.logo-anim {
    height: 30px;
    margin: -5px 0 0 0; /* Explicitly set all margins to override defaults */
    width: 100%;
    display: flex;
    justify-content: center;
}
.oil-animation-wrapper.logo-anim .oil-line {
    width: 150px; 
    height: 4px;
}
.oil-animation-wrapper.logo-anim .oil-press-plate {
    width: 100px;
    height: 4px;
    top: -15px;
    margin-left: -50px;
}
.oil-animation-wrapper.logo-anim .oil-drop {
    width: 12px;
    height: 12px;
    margin-left: -6px;
}

@keyframes platePress {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(12px); border-color: #fff; }
    50% { transform: translateY(12px); }
}

@keyframes platePressSm {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(6px); border-color: #fff; }
    50% { transform: translateY(6px); }
}

.oil-animation-wrapper.sm .oil-press-plate {
    animation-name: platePressSm;
}

/* We'll use the same dropFall but for SM we might need shorter distance */
.oil-animation-wrapper.sm .oil-drop {
    animation-name: dropFallSm;
}

@keyframes dropFallSm {
    0% { transform: scale(0) rotate(45deg); top: 0; opacity: 0; }
    35% { transform: scale(0) rotate(45deg); top: 0; opacity: 0; }
    40% { transform: scale(1) rotate(45deg); top: 0; opacity: 1; }
    60% { transform: scale(1.1) rotate(45deg); top: 15px; opacity: 1; filter: blur(0px); }
    85% { transform: scale(0.8, 1.2) rotate(45deg); top: 30px; opacity: 0; filter: blur(2px); }
    100% { transform: scale(0) rotate(45deg); top: 30px; opacity: 0; }
}

@keyframes dropFall {
    0% { transform: scale(0) rotate(45deg); top: 0; opacity: 0; }
    35% { transform: scale(0) rotate(45deg); top: 0; opacity: 0; }
    40% { transform: scale(1) rotate(45deg); top: 0; opacity: 1; }
    60% { transform: scale(1.1) rotate(45deg); top: 40px; opacity: 1; filter: blur(0px); }
    85% { transform: scale(0.8, 1.2) rotate(45deg); top: 90px; opacity: 0; filter: blur(2px); }
    100% { transform: scale(0) rotate(45deg); top: 90px; opacity: 0; }
}

@keyframes streamFlow {
    0%, 30% { width: 0; left: 50%; opacity: 0; }
    40% { width: 60%; left: 20%; opacity: 1; }
    80% { width: 0; left: 80%; opacity: 0; }
    100% { width: 0; left: 100%; opacity: 0; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; font-size: 1rem; font-weight: 500; letter-spacing: 1px;
    border-radius: 4px; cursor: pointer; text-transform: uppercase;
    transition: all 0.3s ease; z-index: 10; position: relative; overflow: hidden;
}
.btn-primary { background-color: var(--primary-color); color: #000; border: none; }
.btn-primary:hover { background-color: #fff; color: #000; }
.btn-outline { background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: #000; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Header & Nav */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: all 0.4s ease; border-bottom: 1px solid transparent;
}
header.scrolled {
    background: rgba(10, 11, 10, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.text-logo {
    display: flex; 
    flex-direction: column;
    align-items: center; /* Center everything */
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.text-logo:hover { transform: scale(1.03); }
.logo-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #aa8b2c 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-text .brand {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    color: #fff; letter-spacing: 2px; line-height: 1; margin-bottom: 4px;
}
.logo-text .desc {
    font-size: 0.65rem; color: var(--primary-color); font-weight: 600;
    letter-spacing: 3px; line-height: 1; text-transform: uppercase;
}
.nav-list { display: flex; gap: 30px; }
.nav-link {
    font-size: 0.95rem; color: var(--text-main); font-weight: 500;
    position: relative; text-transform: uppercase; letter-spacing: 1px;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0;
    height: 2px; background: var(--primary-color); transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Animation variant for nav links */
.nav-link .oil-animation-wrapper.sm {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-link:hover .oil-animation-wrapper.sm, .nav-link.active .oil-animation-wrapper.sm {
    opacity: 1;
}
.mobile-toggle { display: none; font-size: 1.5rem; color: #fff; cursor: pointer; }

/* Hero Section */
.hero-section {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('arkaplan.jpg') center/cover no-repeat;
    position: relative; padding-top: 0; padding-bottom: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(10,11,10,0.6) 100%); z-index: 1;
}
.hero-container { position: relative; z-index: 2; text-align: center; }
.hero-text { max-width: 900px; margin: 160px auto 0; } /* Total approx 4cm (160px) gap */
.glitch-title {
    font-size: 3.5rem; color: #fff; margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: fadeInDown 1s ease-out;
}
.hero-desc {
    font-size: 1.15rem; color: rgba(255,255,255,0.9); margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; animation: fadeInUp 1s ease-out 0.6s both; }
.scroll-down { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s infinite; }
.scroll-down i { font-size: 2rem; color: rgba(255,255,255,0.5); transition: color 0.3s ease; }
.scroll-down:hover i { color: var(--primary-color); }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Hakkımızda Section */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-muted); }
.about-text p strong { color: #fff; font-size: 1.2rem; font-family: var(--font-heading); }
.image-wrapper { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.image-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.7s ease; }
.image-wrapper:hover img { transform: scale(1.05); }
.experience-badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--primary-color); color: #000;
    width: 140px; height: 140px; border-radius: 50%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 8px solid var(--bg-dark);
}
.experience-badge .years { font-size: 2rem; font-weight: 700; line-height: 1; }
.experience-badge .text { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-top: 5px; }

/* Üretim İzni Section */
.permit-section { background: url('uretim-izni-bg.jpg') center/cover fixed; }
.permit-card {
    background: rgba(15, 18, 15, 0.85); backdrop-filter: blur(15px); border: 1px solid var(--border-color);
    padding: 60px; border-radius: 15px; text-align: center; max-width: 800px; margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.permit-icon { font-size: 4rem; color: var(--primary-color); margin-bottom: 20px; }
.permit-card h2 { font-size: 2.5rem; }
.permit-card p { font-size: 1.15rem; margin-bottom: 15px; color: #ddd; }
.permit-card strong { color: var(--primary-color); }
.quality-badges { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.badge {
    background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px; border-radius: 30px; color: var(--primary-color); font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}

/* Fabrikalar Section */
.factories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.factory-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.factory-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: var(--border-color); }
.factory-img { position: relative; height: 300px; overflow: hidden; }
.factory-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.factory-img.slider img.slide { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease-in-out, transform 0.6s ease; }
.factory-img.slider img.slide.active { opacity: 1; z-index: 1; }
.factory-card:hover .factory-img img.active, .factory-card:hover .factory-img:not(.slider) img { transform: scale(1.1); }
.factory-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); z-index: 2; }
.factory-overlay h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; opacity: 0; transition: all 0.3s ease; }
.factory-img:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: var(--primary-color); color: #000; border-color: var(--primary-color); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.factory-info { padding: 30px 20px; }
.factory-info p { color: var(--text-muted); }

/* Galeri Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: #1a1c1a;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 2;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}
.gallery-overlay span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* İletişim Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
    background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); padding: 40px;
    border-radius: 12px; position: relative; overflow: hidden; transition: all 0.4s ease;
}
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: var(--primary-color); transition: height 0.4s ease;
}
.contact-card:hover { background: rgba(20, 25, 20, 0.9); transform: translateY(-5px); }
.contact-card:hover::before { height: 100%; }
.branch-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.contact-card h3 { font-size: 1.8rem; margin-bottom: 25px; color: #fff; }
.contact-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: var(--text-muted); }
.contact-list i { color: var(--primary-color); font-size: 1.2rem; margin-top: 4px; }
.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--primary-color); }
.map-btn-wrap { margin-top: 30px; }

/* Contact Form */
.contact-form-wrapper { max-width: 800px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; background: rgba(5,6,5,0.8);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: #fff; font-family: var(--font-body); font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212,175,55,0.2); background: rgba(0,0,0,0.9);
}
.contact-form .btn-primary { width: 100%; border-radius: 8px; padding: 16px; font-weight: 600; }
.form-message { margin-bottom: 20px; padding: 15px; border-radius: 8px; display: none; }
.form-message.success { display: block; background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.form-message.error { display: block; background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; }

/* Footer */
footer { background: #050605; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { display: flex; align-items: center; margin-bottom: 10px; }
.footer-version .logo-icon { font-size: 1.8rem; }
.footer-version .logo-text .brand { font-size: 1.2rem; }
.footer-version .logo-text .desc { font-size: 0.55rem; }
footer p { color: var(--text-muted); font-size: 0.9rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; transition: all 0.3s ease; }
.social-links a:hover { background: var(--primary-color); color: #000; transform: translateY(-3px); }

/* Animations Classes for JS */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s ease; }
.active.reveal-up, .active.reveal-left, .active.reveal-right, .active.reveal-scale { opacity: 1; transform: translate(0) scale(1); }

/* Responsive */
@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .glitch-title { font-size: 2.8rem; }
    .experience-badge { right: 0; bottom: 0; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    header { padding: 15px 0; }
    header.scrolled { padding: 10px 0; }
    .container { padding: 0 20px; width: 100%; }
    .header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 5px 0; }

    .text-logo { flex-direction: column; align-items: flex-start; gap: 5px; }
    .logo-brand-wrap { gap: 8px; }
    .logo-icon { font-size: 1.8rem; }
    .logo-text .brand { font-size: 1.1rem; letter-spacing: 1px; margin-bottom: 2px; }
    .logo-text .desc { font-size: 0.55rem; letter-spacing: 2px; line-height: 1; }
    .oil-animation-wrapper.logo-anim { 
        transform: none; 
        height: 20px; 
        margin-top: 5px; 
        justify-content: flex-start;
    }
    .oil-animation-wrapper.logo-anim .oil-line { width: 140px; height: 3px; }
    .oil-animation-wrapper.logo-anim .oil-press-plate { top: -10px; width: 60px; height: 3px; margin-left: -30px; }
    
    .mobile-toggle { 
        display: block !important; 
        font-size: 1.8rem; 
        margin-left: auto; 
        margin-right: 40px;
        padding: 5px 10px;
        color: var(--primary-color) !important;
    }

    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: rgba(10, 11, 10, 0.98);
        padding: 20px 0; display: flex; flex-direction: column; align-items: center;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease-in-out;
    }
    .nav-menu.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-list { flex-direction: column; align-items: center; gap: 40px; }
    .nav-link .oil-animation-wrapper.sm { 
        bottom: -25px; 
        position: relative; 
        left: 0; 
        transform: none; 
        margin: 5px auto 0;
    }
    .hero-section { 
        height: 100dvh; 
        background-attachment: scroll; 
        background-position: center center;
        background-size: cover;
    }
    .glitch-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .factories-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .permit-card { padding: 40px 20px; }
    .cursor-dot, .cursor-outline { display: none; }
}

/* Floating WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.wa-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-toggle-btn:hover { transform: scale(1.1); background-color: #128c7e; }
.wa-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.wa-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}
.wa-chat-box.active { display: flex; }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.wa-header {
    background: #075e54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.wa-header-text { display: flex; flex-direction: column; }
.wa-header-text strong { font-size: 1rem; }
.wa-header-text span { font-size: 0.75rem; opacity: 0.8; }
.wa-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.wa-body { background: #e5ddd5; padding: 20px; min-height: 80px; }
.wa-message {
    background: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    color: #333;
    max-width: 90%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-footer { padding: 15px; background: #f0f0f0; }
.wa-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s;
}
.wa-send-btn:hover { background: #128c7e; }

@media (max-width: 480px) {
    .wa-widget { right: 20px; bottom: 20px; }
    .wa-chat-box { width: 280px; }
}
