/* ============================================
   EGE OFSET - Main Stylesheet
   ============================================ */

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

:root {
    --primary: #c8102e;
    --secondary: #1a1a1a;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

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

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

.main-nav a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    transition: var(--transition);
    border-radius: 8px;
}

.main-nav a:hover {
    color: var(--primary);
    background: rgba(200, 16, 46, 0.08);
}

.main-nav a.btn-header {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    margin-left: 10px;
}

.main-nav a.btn-header:hover {
    background: var(--secondary);
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.lang-switcher a {
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--text-light);
}

.lang-switcher a.active {
    background: var(--secondary);
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* ============================================
   SLIDER
   ============================================ */
.slider-section {
    margin-top: 80px;
    position: relative;
    padding: 0 !important;
}

.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.6) 0%, rgba(200,16,46,0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 560px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 0;
}

.slider-nav:hover { background: var(--primary); border-color: var(--primary); }
.slider-nav.prev { left: 30px; }
.slider-nav.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background: #fff; width: 40px; border-radius: 6px; }

/* ============================================
   VIDEO SLIDER
   ============================================ */
.slide-video-type {
    background: #000;
}

.slide-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Ses kontrol butonu */
.video-sound-btn {
    position: absolute;
    bottom: 80px;
    right: 30px;
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.video-sound-btn:hover {
    background: rgba(0,0,0,0.7);
    border-color: #fff;
    transform: scale(1.1);
}

.slider-placeholder {
    height: 500px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.slider-placeholder h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section { background: var(--bg-alt); }

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #e63348 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.service-icon svg { width: 34px; height: 34px; }

.service-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
}

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

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

.product-body { padding: 24px; }

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.product-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-section { background: #fff; }

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

.about-content .section-tag { margin-bottom: 10px; }

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   GLOBAL SECTION
   ============================================ */
.global-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.global-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(200,16,46,0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(200,16,46,0.15) 0%, transparent 50%);
}

.global-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.global-content h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.global-content p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-section { background: var(--bg-alt); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--secondary);
}

.project-image {
    width: 100%;
    height: 100%;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
    transition: var(--transition);
}

.project-country {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 10px;
}

.project-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-client {
    font-size: 14px;
    opacity: 0.85;
}

/* ============================================
   QUOTE FORM
   ============================================ */
.quote-section {
    background: linear-gradient(135deg, var(--primary) 0%, #8b0a20 100%);
    color: #fff;
}

.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.quote-info .section-tag {
    color: #fff !important;
    opacity: 0.8;
}

.quote-info h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.quote-info > p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.quote-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item strong {
    display: block;
    opacity: 0.7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-item a {
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover { opacity: 0.8; }

.quote-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    color: var(--text);
}

.form-group { margin-bottom: 16px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.quote-form textarea { resize: vertical; min-height: 100px; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--secondary); }

.btn-block { width: 100%; }

.form-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.form-alert.show { display: block; }
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: #fff; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-card {
    padding: 24px;
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.contact-card h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card p {
    font-size: 16px;
    color: var(--secondary);
    font-weight: 500;
}

.contact-card a { color: var(--primary); }

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-text { color: #fff; }

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20bd5a;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .slide-title { font-size: 40px; }
    .section-header h2,
    .about-content h2,
    .quote-info h2,
    .global-content h2 { font-size: 32px; }
    
    .about-grid,
    .quote-wrapper,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 70px 0; }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-200%);
        transition: var(--transition);
    }
    
    .main-nav.open { transform: translateY(0); }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .main-nav a { padding: 14px 16px; }
    .main-nav a.btn-header { margin: 10px 0 0; text-align: center; }
    
    .mobile-toggle { display: flex; }
    
    .slider { height: 500px; }
    .slide-title { font-size: 30px; }
    .slide-subtitle { font-size: 16px; }
    
    .slider-nav { width: 40px; height: 40px; font-size: 22px; }
    .slider-nav.prev { left: 15px; }
    .slider-nav.next { right: 15px; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .quote-form { padding: 25px; }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-header h2,
    .about-content h2,
    .quote-info h2,
    .global-content h2 { font-size: 26px; }
    .slide-title { font-size: 24px; }
    .header-inner { height: 70px; }
    .slider-section { margin-top: 70px; }
}

/* ============================================
   MATH CAPTCHA
   ============================================ */
.captcha-group { margin-bottom: 18px; }

.captcha-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    letter-spacing: .3px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 10px;
    padding: 14px 16px;
    backdrop-filter: blur(4px);
}

.captcha-question {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.captcha-input {
    width: 90px !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.5) !important;
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 8px !important;
}

.captcha-input::placeholder { color: rgba(255,255,255,.5); }
.captcha-input:focus { outline: none; border-color: #fff !important; background: rgba(255,255,255,.25) !important; }

/* Sayı spin butonlarını gizle */
.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input[type=number] { -moz-appearance: textfield; }
