/* =======================================================
*  GeMarkt Modern Design System
*  Premium, Modern, Glassmorphism-based Design
* ======================================================= */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =======================================================
*  CSS Custom Properties - Design Tokens
* ======================================================= */
:root {
    /* GeMarkt Brand Colors */
    --gemarkt-red: #FF1F1F;
    --gemarkt-red-dark: #CC0000;
    --gemarkt-red-darker: #990000;
    --gemarkt-red-light: #FF4444;
    --gemarkt-red-lighter: #FF6666;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF1F1F 0%, #CC0000 50%, #990000 100%);
    --gradient-light: linear-gradient(135deg, #FF4444 0%, #FF1F1F 50%, #CC0000 100%);
    --gradient-radial: radial-gradient(circle at top right, #FF1F1F, #CC0000);
    --gradient-mesh: linear-gradient(135deg, rgba(255, 31, 31, 0.1) 0%, rgba(204, 0, 0, 0.1) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-red: 0 10px 40px rgba(255, 31, 31, 0.3);
    --shadow-red-lg: 0 20px 60px rgba(255, 31, 31, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
    --glass-blur-strong: blur(20px);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* =======================================================
*  Global Resets & Base Styles
* ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0;
}

/* Navigation fixed olduğu için hero section'ın üstünde boşluk olmamalı */
.hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* Links */
a {
    color: var(--gemarkt-red);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--gemarkt-red-dark);
}

/* Selection */
::selection {
    background: var(--gemarkt-red);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--gemarkt-red);
    color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gemarkt-red);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gemarkt-red-dark);
}

/* =======================================================
*  Utility Classes
* ======================================================= */

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

/* Section Spacing */
.section {
    padding: var(--spacing-4xl) 0;
}

.section-sm {
    padding: var(--spacing-3xl) 0;
}

.section-lg {
    padding: 6rem 0;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: var(--color-white);
}

.text-red {
    color: var(--gemarkt-red);
}

.text-gray {
    color: var(--color-gray-600);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* =======================================================
*  Modern Button Styles
* ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-red-lg);
    color: var(--color-white);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--gemarkt-red);
    border: 2px solid var(--gemarkt-red);
}

.btn-secondary:hover {
    background: var(--gemarkt-red);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* Ghost Button */
.btn-ghost {
    background: rgba(255, 31, 31, 0.1);
    color: var(--gemarkt-red);
}

.btn-ghost:hover {
    background: var(--gemarkt-red);
    color: var(--color-white);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

/* =======================================================
*  Modern Card Component
* ======================================================= */
.card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-100);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-glass {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-900);
}

.card-text {
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* =======================================================
*  Grid System
* ======================================================= */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =======================================================
*  Animations
* ======================================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
*  Go to Top Button
* ======================================================= */
.gototop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gototop.active {
    opacity: 1;
    visibility: visible;
}

.gototop a {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--gemarkt-red);
    text-align: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 31, 31, 0.2);
    box-shadow: 0 8px 24px rgba(255, 31, 31, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gototop a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 31, 31, 0.15), rgba(204, 0, 0, 0.15));
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gototop a:hover::before {
    width: 100%;
    height: 100%;
}

.gototop a i {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gototop a:hover,
.gototop a:active,
.gototop a:focus {
    text-decoration: none;
    outline: none;
    color: #fff;
    background: var(--gradient-primary);
    border-color: rgba(255, 31, 31, 0.4);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 31, 31, 0.35),
        0 0 0 4px rgba(255, 31, 31, 0.15);
}

.gototop a:active {
    transform: translateY(-2px) scale(1.05);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gototop {
        bottom: 25px;
        right: 25px;
    }

    .gototop a {
        width: 52px;
        height: 52px;
    }

    .gototop a i {
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .gototop {
        bottom: 20px;
        right: 20px;
    }

    .gototop a {
        width: 48px;
        height: 48px;
    }

    .gototop a i {
        height: 48px;
        font-size: 20px;
    }
}
