/**
 * Main Stylesheet
 * Siverek Yetkili Teknik Servis Theme
 */

/* ==========================================
   CSS Custom Properties (Variables)
   ========================================== */
:root {
    --primary-color: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white-color: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   Reset and Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white-color);
}

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

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

a:hover {
    color: var(--secondary-color);
}

/* ==========================================
   Container and Layout
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Header Styles
   ========================================== */
.site-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding .site-title a {
    color: var(--dark-color);
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

.primary-menu-wrapper ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.primary-menu-wrapper a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
}

.mega-menu-wrapper {
    position: relative;
}

.mega-menu-toggle {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.mega-menu-toggle:hover {
    background-color: #1e3a8a;
}

.mega-menu-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.mega-menu-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.mega-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 10px;
    min-width: 400px;
    z-index: 1000;
}

.mega-menu-content.active {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mega-menu-item {
    padding: 10px 15px;
    background-color: var(--light-color);
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.mega-menu-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.header-cta .btn {
    white-space: nowrap;
}

/* ==========================================
   Button Styles
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

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

.btn-white:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-outline-white:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #1f2937 100%);
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M1200 120L0 16.48V0h1200v120z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* ==========================================
   Section Common Styles
   ========================================== */
section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

/* ==========================================
   Services Section
   ========================================== */
.services-section {
    background-color: var(--white-color);
}

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

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

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

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ==========================================
   Brands Section
   ========================================== */
.brands-section {
    background-color: var(--light-color);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.brand-card {
    background-color: var(--white-color);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.5s ease;
}

.brand-card:hover::before {
    left: 100%;
}

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.brand-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================
   Why Us Section
   ========================================== */
.why-us-section {
    background-color: var(--white-color);
}

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

.why-us-card {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-color);
}

.why-us-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.why-us-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.why-us-description {
    color: #6b7280;
    line-height: 1.6;
}

/* ==========================================
   Contact CTA Section
   ========================================== */
.contact-cta-section {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.contact-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Footer Styles
   ========================================== */
.site-footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer-widgets {
    padding: 60px 0 40px;
}

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

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white-color);
}

.footer-widget p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

.footer-widget ul li a {
    color: #d1d5db;
    transition: var(--transition);
}

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

.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 8px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #111827;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
}

/* ==========================================
   Animations
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .site-branding {
        order: 1;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .primary-menu-wrapper ul {
        flex-direction: column;
        width: 100%;
    }
    
    .mega-menu-content {
        position: static;
        min-width: auto;
        width: 100%;
    }
    
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-cta {
        order: 4;
        width: 100%;
    }
    
    .header-cta .btn {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cta-section {
        padding: 60px 0;
    }
    
    .contact-cta-title {
        font-size: 1.75rem;
    }
    
    .contact-cta-subtitle {
        font-size: 1.125rem;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
    }
    
    .contact-cta-buttons .btn {
        width: 100%;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-branding .site-title {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
}
