/* ================================================
   Sonik Makina - Ana Stil Dosyası (Light Theme)
   Ana Renk: #007ab5
   İkinci Renk: #bedaed
   ================================================ */

/* -------------------- Base Styles -------------------- */
:root {
    --primary: #007ab5;
    --primary-light: #339fc7;
    --primary-dark: #006291;
    --secondary: #bedaed;
    --secondary-light: #d4e8f5;
    --secondary-dark: #9fc8e0;
    --light-50: #ffffff;
    --light-100: #f8fafc;
    --light-200: #f1f5f9;
    --light-300: #e2e8f0;
    --light-400: #cbd5e1;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--light-100);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* -------------------- Custom Scrollbar -------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light-200);
}

/* -------------------- Gradient Text -------------------- */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-reverse {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------- Glass Effect -------------------- */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* -------------------- Glow Effects -------------------- */
.glow {
    box-shadow: 0 0 40px rgba(0, 122, 181, 0.3);
}

.glow-secondary {
    box-shadow: 0 0 40px rgba(190, 218, 237, 0.2);
}

.glow-hover:hover {
    box-shadow: 0 0 50px rgba(0, 122, 181, 0.4);
}

/* -------------------- Wave Animation -------------------- */
.wave-bar {
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* -------------------- Float Animation -------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* -------------------- Pulse Animation -------------------- */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* -------------------- Slide Up Animation -------------------- */
@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* -------------------- Fade In Animation -------------------- */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* -------------------- Noise Texture Overlay -------------------- */
.noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* -------------------- Scroll Reveal Animation -------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

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

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

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

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* -------------------- Button Styles -------------------- */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* -------------------- Card Styles -------------------- */
.card {
    background: #ffffff;
    border: 1px solid var(--light-300);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 181, 0.1);
}

.card-highlight {
    background: linear-gradient(135deg, rgba(0, 122, 181, 0.08) 0%, rgba(190, 218, 237, 0.15) 100%);
    border: 1px solid rgba(0, 122, 181, 0.2);
}

/* -------------------- Badge Styles -------------------- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: rgba(0, 122, 181, 0.15);
    color: var(--primary-dark);
}

.badge-secondary {
    background-color: rgba(190, 218, 237, 0.5);
    color: var(--primary-dark);
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

/* -------------------- Form Styles -------------------- */
.form-input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--light-300);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 181, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--light-300);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 181, 0.15);
}

/* -------------------- Product Card -------------------- */
.product-card {
    background: #ffffff;
    border: 1px solid var(--light-300);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 122, 181, 0.12);
}

.product-card-image {
    background: linear-gradient(135deg, var(--light-200) 0%, var(--light-300) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-card-body {
    padding: 1.5rem;
}

/* -------------------- Stat Card -------------------- */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* -------------------- Navigation -------------------- */
.nav-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--primary);
}

/* -------------------- Section Styles -------------------- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------- Filter Buttons -------------------- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--light-300);
}

.filter-btn:hover {
    background: var(--light-200);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* -------------------- Testimonial Card -------------------- */
.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--light-300);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    background: #ffffff;
    border-color: rgba(0, 122, 181, 0.3);
    box-shadow: 0 10px 25px rgba(0, 122, 181, 0.1);
}

.testimonial-stars {
    color: #f59e0b;
}

/* -------------------- Footer -------------------- */
.footer {
    background: var(--light-200);
    border-top: 1px solid var(--light-300);
}

.footer-link {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* -------------------- Utility Classes -------------------- */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

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

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

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}

/* -------------------- Responsive Adjustments -------------------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .product-card-image {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    /* Card spacing */
    .card {
        padding: 1.25rem;
    }
    
    /* Touch-friendly buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Smaller cards on mobile */
    .card {
        padding: 1rem;
        border-radius: 0.75rem;
    }
    
    .product-card-image {
        min-height: 120px;
        padding: 1rem;
    }
    
    .product-card-body {
        padding: 1rem;
    }
    
    /* Badge adjustments */
    .badge {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Stat cards */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* -------------------- Touch & Mobile Optimizations -------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .product-card:hover {
        transform: none;
    }
    
    /* Better tap targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover transitions */
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* -------------------- Safe Area for notched devices -------------------- */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .fixed.bottom-8 {
        bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* -------------------- Minimal & Clean Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

/* -------------------- Smooth Scroll -------------------- */
html {
    scroll-behavior: smooth;
}

/* -------------------- Better Focus States -------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* -------------------- Loading Performance -------------------- */
img {
    content-visibility: auto;
}

/* -------------------- WhatsApp Button Mobile -------------------- */
@media (max-width: 640px) {
    .fixed.bottom-24.right-8 {
        bottom: 5rem;
        right: 1rem;
        width: 3.25rem;
        height: 3.25rem;
    }
    
    .fixed.bottom-8.right-8 {
        bottom: 1rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}
