:root {
    --primary: #3a8e7a; 
    --primary-dark: #2f574d; 
    --bg: #080808;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #edff47;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: -10px; 
    height: 100%;
    overflow: hidden; 
}

.logo img {
    height: 80px;  
    width: auto;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .logo img { height: 60px; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar { height: 80px; }
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.3); 
    backdrop-filter: blur(10px);
}

.menu { display: flex; gap: 35px; justify-content: center; }
.menu a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.menu a:hover { color: var(--primary); }

.menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}

@media (max-width: 968px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    
    .menu.active { right: 0; }
    
    .menu a { font-size: 20px; }
    
    .menu-btn { display: flex; z-index: 1000; }
    
    .nav-phone { display: none; }
}

.nav-phone a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    transition: 0.3s;
}
.nav-phone a:hover { background: var(--primary); color: #000; }

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: 
        linear-gradient(rgba(8, 8, 8, 0.65), rgba(8, 8, 8, 0.9)), 
        url('images/arkaplan_yeni.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        text-align: left;
        padding: 0 8%;
        justify-content: flex-start;
    }
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(58, 142, 122, 0.15);
    border: 1px solid rgba(58, 142, 122, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 { 
    font-size: clamp(45px, 7vw, 90px); 
    font-weight: 800; 
    line-height: 1.05; 
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.green-gradient {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(58, 142, 122, 0.3));
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin-bottom: 45px;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .hero-content p {
        margin-left: 0;
        margin-right: 0;
        border-left: 3px solid var(--primary);
        border-top: none;
        padding-left: 20px;
        padding-top: 0;
        font-size: 1.1rem;
        text-align: left;
    }
    .hero-btns {
        text-align: left;
    }
    .hero-content .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Stagger initial hero elements */
.hero-content .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero-content .reveal:nth-child(2) { transition-delay: 0.3s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.5s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.7s; }

/* --- SSS (AKORDİYON) --- */
.faq-section { padding: 60px 8% 80px; background: #0c0c0c; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    user-select: none;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #aaa;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active { border-color: var(--primary); }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-item.active .chevron { transform: rotate(180deg); color: var(--primary); }

/* --- SERVICES (CAROUSEL) --- */
.section-title { text-align: center; margin-top: 40px; margin-bottom: 50px; }
.section-title h2 { font-size: 42px; font-weight: 800; }
.section-title div { height: 4px; width: 60px; background: var(--primary); margin: 15px auto; border-radius: 2px; }

.services-carousel {
    position: relative;
    padding: 0 4% 80px;
    display: flex;
    align-items: center;
    gap: 30px; 
    max-width: 1600px;
    margin: 0 auto;
}

.services-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.services-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.service-card {
    flex: 0 0 calc((100% - 50px) / 3);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    min-height: 320px;
    border-radius: 24px;
    transition: 0.4s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(0, 255, 106, 0.05);
}

.slider-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slider-btn.disabled {
    opacity: 0.1;
    pointer-events: none;
}

@media(max-width: 1100px) {
    .service-card { flex: 0 0 calc((100% - 25px) / 2); }
}

@media(max-width: 768px) {
    .service-card { flex: 0 0 100%; }
    .slider-btn { display: none; } 
    .services-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
    .service-card { scroll-snap-align: start; }
}

/* --- CONTACT --- */
.contact-section { padding: 80px 8% 100px; background: #0f0f0f; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border);
}
.primary-text { color: var(--primary); }
.contact-info h2 { font-size: 32px; margin-bottom: 30px; }
.info-item { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 30px; 
    text-decoration: none; 
    color: inherit;
    transition: 0.3s;
}
.info-item:hover { transform: translateX(10px); }
.info-icon { 
    width: 50px; height: 50px; background: rgba(0,255,106,0.1); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.map-box iframe { width: 100%; height: 100%; min-height: 350px; border-radius: 20px; border: none; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 45px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(58, 142, 122, 0.4);
    position: relative;
    overflow: hidden;
}

.btn i { transition: 0.3s; }

.btn:hover { 
    transform: translateY(-5px); 
    background: #fff; 
    box-shadow: 0 20px 45px rgba(255, 255, 255, 0.2);
}

.btn:hover i { transform: translateX(5px); }

/* --- WHATSAPP --- */
.whatsapp {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; width: 65px; height: 65px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; z-index: 9999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: 0.3s; cursor: pointer;
}
.wa-menu {
    position: fixed; bottom: 105px; right: 30px;
    background: rgba(20, 20, 20, 0.95); border: 1px solid var(--border);
    border-radius: 15px; padding: 15px; display: none;
    flex-direction: column; gap: 10px; z-index: 9998;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); width: 260px;
    backdrop-filter: blur(10px);
}
.wa-menu.active { display: flex; animation: slideUp 0.3s ease forwards; }
.wa-option {
    background: rgba(255,255,255,0.05); color: #eee;
    padding: 12px; border-radius: 10px; text-decoration: none;
    font-size: 13px; transition: 0.3s; border: 1px solid transparent;
}
.wa-option:hover { background: rgba(0, 255, 106, 0.1); border-color: var(--primary); color: var(--primary); }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media(max-width: 968px){
    .contact-container { grid-template-columns: 1fr; padding: 30px; }
    .hero { text-align: left; justify-content: flex-start; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 32px; }
    .contact-info h2 { font-size: 28px !important; }
}

.kapat {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* WHATSAPP BUTON */
#wp-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* --- TEKLİF POPUP (MODERN) --- */
#teklifPopup {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 25px;
    width: 320px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    z-index: 9999;
    animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

#teklifPopup .close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #888;
    transition: 0.3s;
}

#teklifPopup .close-popup:hover { color: #fff; }

.popup-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.popup-icon { 
    width: 40px; height: 40px; background: rgba(58, 142, 122, 0.2); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}

#teklifPopup h3 { font-size: 18px; font-weight: 700; margin: 0; }
#teklifPopup p { font-size: 14px; color: #aaa; margin: 10px 0 20px 0; line-height: 1.4; }

.timer-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}
.timer-progress {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 1s linear;
}

/* --- STATS SECTION --- */
.stats-section { padding: 60px 8% 80px; background: linear-gradient(to bottom, #080808, #0c0c0c); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card h2 { font-size: 56px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.stat-card p { font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 2px; }

/* --- MACHINES SECTION --- */
.machines-section { padding: 60px 8% 80px; background: #080808; }
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .machines-grid {
        grid-template-columns: 1fr;
    }
    .machine-card { height: 300px; }
}
.machine-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--border);
}
.machine-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.machine-card:hover img { transform: scale(1.1); }
.machine-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}
.machine-tag {
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
}

/* FILTER */
.filter-buttons {
    margin-bottom: 30px;
}

.filter-buttons button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    background: #222;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: var(--primary);
    color: #000;
}

/* --- GALERİ & PROJELER --- */
.galeri { padding: 60px 10% 80px; background: #111; text-align: center; }
.galeri-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 25px; 
    align-items: center; 
    justify-content: center; 
}
.item { position: relative; cursor: pointer; overflow: hidden; border-radius: 15px; height: 300px; width: 100%; max-width: 450px; flex: 1 1 320px; }
.item img, .item video { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; display: block; }
.item:hover img, .item:hover video { transform: scale(1.1); }

.filter-buttons { margin-bottom: 30px; }
.filter-buttons button {
    padding: 10px 25px; margin: 5px; border: 1px solid var(--border); border-radius: 50px;
    background: #222; color: white; cursor: pointer; transition: 0.3s;
}
.filter-buttons button.active { background: var(--primary); color: #000; border-color: var(--primary); }

/* --- MODAL (KART GÖRÜM) --- */
#modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    justify-content: center; align-items: center; z-index: 9999; padding: 20px;
}
.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
.modal-box {
    position: relative; width: 100%; max-width: 500px;
    background: #141414; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden; z-index: 10001;
    animation: fadeZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.close-btn { 
    position: absolute; top: 15px; right: 15px; width: 35px; height: 35px;
    background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%;
    cursor: pointer; transition: 0.3s; z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
}
.close-btn:hover { background: #fff; color: #000; transform: rotate(90deg); }
.close-btn svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; margin: 0; }

.modal-media-wrapper {
    position: relative; width: 100%; height: 320px; background: #000;
}
#modal-img, #modal-video { 
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-badge {
    position: absolute; top: 15px; left: 15px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15); padding: 5px 12px; 
    border-radius: 30px; font-size: 11px; font-weight: 700; 
    letter-spacing: 1px; color: #fff; text-transform: uppercase;
}
.modal-content-area { padding: 30px; }
.modal-header-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; gap: 15px;
}
#modal-text { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.modal-controls { display: flex; gap: 8px; }
.modal-nav-btn {
    width: 40px; height: 40px; border-radius: 50%; position: relative;
    background: rgba(255,255,255,0.05); color: #fff;
    cursor: pointer; transition: 0.3s; border: 1px solid rgba(255,255,255,0.1);
}
.modal-nav-btn svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; margin: 0; width: 22px; height: 22px; }
.modal-nav-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,255,106,0.3); }
#prev-btn svg { transform: translate(-54%, -50%); } 
#next-btn svg { transform: translate(-46%, -50%); } 

#modal-desc { color: #a0a0a0; font-size: 14px; line-height: 1.7; margin-bottom: 25px; }

#wp-btn-modal { 
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #25D366; color: #fff; padding: 16px; border-radius: 12px; 
    text-decoration: none; font-weight: 700; font-size: 16px; transition: 0.3s; 
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2); width: 100%; box-sizing: border-box;
}
#wp-btn-modal:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); background: #fff; color: #000; }

@media(max-width: 600px){
    .modal-media-wrapper { height: 250px; }
    .modal-content-area { padding: 25px; }
    #modal-text { font-size: 20px; }
}

@keyframes fadeZoom { 
    from { opacity: 0; transform: translateY(20px) scale(0.96); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}
/* OVERLAY */
.item-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    opacity: 0;
    transition: 0.3s;
}

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