/*==========================================================
 * Dynomite Arıza Çözüm Merkezi - Global CSS & Design System
 *=========================================================*/

:root {
    /* Color Palette derived from Dynomite Logo & Industrial Feel */
    --color-primary: hsl(356, 95%, 46%); /* Vivid Red */
    --color-primary-dark: hsl(356, 95%, 36%); /* Darker Red for hovers */
    --color-dark: hsl(0, 0%, 7%); /* Almost Black */
    --color-dark-gray: hsl(210, 8%, 15%); /* Deep Gray */
    --color-gray: hsl(0, 0%, 40%); /* Neutral Gray for text */
    --color-light-gray: hsl(0, 0%, 96%); /* Backgrounds */
    --color-white: hsl(0, 0%, 100%);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Font Sizes */
    --fs-h1: clamp(2.5rem, 5vw, 4rem);
    --fs-h2: clamp(2rem, 4vw, 3rem);
    --fs-h3: clamp(1.5rem, 3vw, 2rem);
    --fs-h4: 1.25rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Spacing */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 4rem;     /* 64px */
    --spacing-xl: 6rem;     /* 96px */

    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base 16px */
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

/* Typography Utilities */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }
.section-subtitle {
    display: block;
    font-size: var(--fs-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Section Spacing */
.section {
    padding: var(--spacing-xl) 0;
}
.section-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent; /* Şeffaf yapıldı */
    color: var(--color-white);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 10, 10, 0.95); /* Kaydırınca hafif koyulaşır */
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Logo boyutu daha da büyütüldü */
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .btn-outline {
    color: var(--color-white);
    border-color: rgba(255,255,255,0.3);
}
.header-actions .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-white);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition);
    border-radius: 2px;
}

/* Responsive Menus */
@media screen and (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-dark);
        padding: 5rem 2rem 2rem;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
        transition: right var(--transition);
        display: flex;
        flex-direction: column;
        z-index: 999;
    }

    .nav.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .header-actions .btn {
        display: none; /* Hide top buttons on mobile and show inside menu or elsewhere */
    }
}

/*=============================================================
 * HERO SECTION
 *=============================================================*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
    background-color: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.7) 100%), 
                url('../img/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.hero-content {
    max-width: 600px;
    animation: fadeUp 1s ease-out forwards;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-box {
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 1.5s ease-out forwards;
}

.floating-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-hover);
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
}

.icon-pulse {
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(227, 6, 19, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

@media screen and (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-box {
        justify-content: center;
        margin-top: 2rem;
    }
}

/*=============================================================
 * SERVICES SECTION
 *=============================================================*/
.bg-light {
    background-color: var(--color-light-gray);
}

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

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(227, 6, 19, 0.08); /* slight primary tint */
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-link span {
    transition: transform var(--transition);
}

.service-link:hover span {
    transform: translateX(5px);
}

/*=============================================================
 * ABOUT & PROCESS SECTIONS
 *=============================================================*/
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-gray);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.features-list {
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-icon {
    color: var(--color-primary);
    background: rgba(227, 6, 19, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-weight: 600;
    color: var(--color-dark-gray);
    font-size: 0.95rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    padding: 2.5rem 1.5rem;
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-dark);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    border: 4px solid var(--color-light-gray);
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

@media screen and (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
    }
}

/*=============================================================
 * FAQ & TESTIMONIALS
 *=============================================================*/
.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    display: none;
    padding-bottom: 1rem;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.testimonial-card {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-primary);
}

.stars {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-dark-gray);
    margin-bottom: 1.5rem;
}

.author-info strong {
    display: block;
    color: var(--color-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/*=============================================================
 * CONTACT & FOOTER
 *=============================================================*/
.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.contact-list li p, .contact-list li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.contact-list li a:hover {
    color: var(--color-primary);
}

.contact-form-box {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

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

.footer-bottom {
    background-color: transparent;
}

/*=============================================================
 * FLOATING CONTACT BUBBLES
 *=============================================================*/
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
    position: relative;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: var(--color-white);
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: contactPulse 2s infinite;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}
.whatsapp-btn::before {
    background-color: rgba(37, 211, 102, 0.6);
}

.phone-btn {
    background-color: var(--color-primary); /* Dynomite Red */
}
.phone-btn::before {
    background-color: rgba(227, 6, 19, 0.6);
}

.instagram-btn {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.instagram-btn::before {
    background: rgba(214, 36, 159, 0.6);
}

@keyframes contactPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media screen and (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

/*=============================================================
 * BRANDS MARQUEE
 *=============================================================*/
.border-top { border-top: 1px solid rgba(0,0,0,0.05); }

.brands-marquee-container {
    background-color: var(--color-white);
    padding: 3rem 0;
}

.brands-marquee-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.brands-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.brands-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 35s linear infinite;
    padding-left: 4rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.brand-item {
    font-weight: 800;
    font-size: 2rem;
    color: var(--color-gray);
    opacity: 0.35;
    transition: all var(--transition);
    user-select: none;
    font-family: inherit;
    cursor: default;
}

.brand-item:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); }
}
