/**
 * Tunelsan - Ana CSS Dosyası
 * Modern, Kurumsal, Responsive Tasarım
 */

/* ===== GENEL AYARLAR ===== */
:root {
    --primary-color: #1a237e;      /* Koyu lacivert */
    --secondary-color: #0d47a1;     /* Elektrik mavisi */
    --accent-color: #ffc107;        /* Enerji sarısı */
    --dark-color: #000000;           /* Siyah */
    --light-color: #f5f5f5;         /* Açık gri */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

/* ===== TOP HEADER ===== */
.top-header {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-header-left a,
.top-header-right a {
    color: var(--white);
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-header-left a:hover,
.top-header-right a:hover {
    color: var(--accent-color);
}

.top-header-right a {
    font-size: 18px;
    margin-right: 15px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .logo {
    height: auto;
    max-height: 80px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.navbar-nav a {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== SLIDER ===== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.slide video,
.slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

.slide iframe {
    pointer-events: none;
}

.slide .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    z-index: 2;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slide-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
}

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

/* Slider Pozisyon Sınıfları */
.position-x-left .container { justify-content: flex-start; }
.position-x-center .container { justify-content: center; }
.position-x-right .container { justify-content: flex-end; }

.position-y-top .container { align-items: flex-start; padding-top: 100px; padding-bottom: 0; }
.position-y-center .container { align-items: center; padding-top: 0; padding-bottom: 0; }
.position-y-bottom .container { align-items: flex-end; padding-bottom: 100px; padding-top: 0; }

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

.content-width-auto { max-width: 800px; }
.content-width-full { max-width: 100%; }
.content-width-half { max-width: 50%; }
.content-width-third { max-width: 33.333%; }

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 10;
    padding: 8px 16px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.9);
    transform: scale(1.3);
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,193,7,0.6);
}

.slider-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

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

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

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== PRODUCTS (Legacy - kept for compatibility) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    height: 220px;
    overflow: hidden;
    background: var(--light-color);
}

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

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.product-card .btn {
    width: 100%;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

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

.service-card-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== STATISTICS ===== */
.statistics {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-item-value {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== REFERENCES ===== */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.reference-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.reference-item img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

/* ===== BLOG (Legacy - kept for compatibility) ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    height: 240px;
    overflow: hidden;
    background: var(--light-color);
}

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

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

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Footer Contact Info */
.main-footer .contact-info {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.9);
}

.main-footer .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    background: transparent !important;
    padding: 0 !important;
}

.main-footer .contact-info li i {
    color: var(--accent-color);
    min-width: 20px;
}

.main-footer .contact-info li a {
    color: rgba(255,255,255,0.9);
}

.main-footer .contact-info li a:hover {
    color: var(--accent-color);
}

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

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

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        width: 100%;
    }
    
    .navbar-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-color);
    }
    
    .slide-content h1 {
        font-size: 32px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slide .container {
        padding-bottom: 60px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .products-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .top-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-header-left a {
        margin-right: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

