/* Önder Motor - Main Stylesheet */

/* ================== FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================== CSS VARIABLES ================== */
:root {
    /* Colors - Lighter Dark Theme */
    --color-black: #0a0a0a;
    --color-dark-bg: #111111;
    --color-card-bg: #1a1a1a;
    --color-card-hover: #242424;
    --color-white: #ffffff;
    --color-primary: #dc2626;
    /* red-600 */
    --color-primary-dark: #b91c1c;
    /* red-700 */
    --color-primary-light: #ef4444;
    /* red-500 */

    /* Opacity variations - Improved Readability */
    --color-white-5: rgba(255, 255, 255, 0.05);
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-40: rgba(255, 255, 255, 0.5);
    --color-white-50: rgba(255, 255, 255, 0.6);
    --color-white-60: rgba(255, 255, 255, 0.75);
    --color-white-70: rgba(255, 255, 255, 0.85);
    --color-white-80: rgba(255, 255, 255, 0.92);

    --color-red-5: rgba(220, 38, 38, 0.05);
    --color-red-10: rgba(220, 38, 38, 0.1);
    --color-red-20: rgba(220, 38, 38, 0.2);
    --color-red-30: rgba(220, 38, 38, 0.3);
    --color-red-50: rgba(220, 38, 38, 0.5);

    /* Typography */
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding-x: clamp(1rem, 5vw, 6rem);
    --section-padding-y: clamp(4rem, 8vw, 8rem);

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ================== BASE STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-inter);
    background: linear-gradient(to bottom, var(--color-black), var(--color-dark-bg));
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ================== TYPOGRAPHY ================== */
.heading-xl {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.heading-md {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.body-lg {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-white-70);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.body-md {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-white-70);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(to right, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================== UTILITY CLASSES ================== */
.section-padding {
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
}

.glass-effect {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-white-10);
}

.glow-red {
    box-shadow: 0 0 40px var(--color-red-30);
}

.glow-red-strong {
    box-shadow: 0 0 60px var(--color-red-50);
}

/* ================== BUTTONS ================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    box-shadow: 0 12px 32px var(--color-red-50);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: transparent;
    color: var(--color-white) !important;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--color-white-30);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black) !important;
    transform: translateY(-2px);
    border-color: var(--color-white);
}

.btn-outline:active {
    transform: scale(0.95);
}

/* ================== CUSTOM SCROLLBAR ================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ================== SELECTION ================== */
::selection {
    background: var(--color-red-30);
    color: var(--color-white);
}

/* ================== ANIMATIONS ================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.7s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.7s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.7s ease-out forwards;
}

/* Intersection observer classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================== NAVIGATION ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-white-10);
}

.nav-link {
    position: relative;
    color: var(--color-white-70);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ================== CARDS ================== */
.card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-white-10);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.card:hover {
    background: var(--color-card-hover);
    background: var(--color-red-10);
    border-color: var(--color-red-30);
    transform: translateY(-4px);
}

/* ================== FORMS ================== */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--color-white-5);
    border: 1px solid var(--color-white-10);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-inter);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white-10);
    box-shadow: 0 0 0 3px var(--color-red-20);
}

.form-control::placeholder {
    color: var(--color-white-40);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white-80);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 991px) {
    .heading-xl {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .heading-lg {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding-x: 1.25rem;
        --section-padding-y: 3rem;
    }

    /* Add extra padding to container on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Ensure cards and sections have breathing room */
    .card {
        padding: 1.25rem;
    }

    /* Buttons should be more compact on mobile */
    .btn-primary,
    .btn-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ================== UTILITIES ================== */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-red {
    color: var(--color-primary);
}

.bg-black {
    background-color: var(--color-black);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}