/* ============================
   Öz Yiğit Hafriyat - Kurumsal Mavi Tema
   Gündüz: Mavi-Beyaz | Gece: Mavi-Siyah
   ============================ */

/* Root Variables - Light Mode (Default) */
:root {
    /* Primary Blues */
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-lighter: #60A5FA;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;

    /* Secondary / Dark */
    --secondary: #0F172A;
    --secondary-light: #1E293B;
    --secondary-lighter: #334155;

    /* Accent Colors */
    --accent: #0EA5E9;
    --accent-dark: #0284C7;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Backgrounds */
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-blue-subtle: #F0F9FF;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Borders */
    --border-light: #E2E8F0;
    --border-blue: rgba(37, 99, 235, 0.2);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --primary-lighter: #93C5FD;
    --primary-50: #1E3A5F;
    --primary-100: #1E40AF;

    --secondary: #020617;
    --secondary-light: #0F172A;
    --secondary-lighter: #1E293B;

    --bg-light: #0F172A;
    --bg-white: #1E293B;
    --bg-blue-subtle: #0C1929;

    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;

    --border-light: #334155;
    --border-blue: rgba(59, 130, 246, 0.3);
}

/* Auto Dark Mode based on time (optional - controlled by JS) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #3B82F6;
        --primary-dark: #2563EB;
        --bg-light: #0F172A;
        --bg-white: #1E293B;
        --text-primary: #F1F5F9;
        --text-secondary: #CBD5E1;
        --border-light: #334155;
    }
}

/* Premium Font Settings */
body {
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-light);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-primary {
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.glass-white {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ===== CORPORATE PATTERN ===== */
.corporate-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

.hero-pattern {
    background-image:
        linear-gradient(135deg, rgba(37, 99, 235, 0.03) 25%, transparent 25%),
        linear-gradient(225deg, rgba(37, 99, 235, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(37, 99, 235, 0.03) 25%, transparent 25%),
        linear-gradient(315deg, rgba(37, 99, 235, 0.03) 25%, transparent 25%);
    background-size: 40px 40px;
}

/* ===== ADVANCED ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6), 0 0 80px rgba(37, 99, 235, 0.4);
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes truck-move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes excavator-dig {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInScale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-ring {
    animation: pulse-ring 1.5s ease-out infinite;
}

.animate-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-flow 4s ease infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate-slow 20s linear infinite;
}

.animate-truck {
    animation: truck-move 2s ease-in-out infinite;
}

.animate-excavator {
    animation: excavator-dig 4s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* ===== PREMIUM CARD EFFECTS ===== */
.card-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(37, 99, 235, 0.1),
            transparent);
    transition: left 0.7s ease;
}

.card-premium:hover::before {
    left: 100%;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px -12px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 50%, #2563EB 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.gradient-text-corporate {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== CORPORATE STRIPES ===== */
.corporate-stripes {
    background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 50%, #2563EB 100%);
}

.corporate-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563EB, #1D4ED8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3B82F6, #2563EB);
}

/* ===== SELECTION ===== */
::selection {
    background-color: #2563EB;
    color: white;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
    outline: 2px solid #2563EB;
    outline-offset: 3px;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== DARK MODE SPECIFIC ===== */
[data-theme="dark"] .glass-white {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card-premium {
    background: var(--secondary-light);
    border-color: var(--border-light);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .fixed,
    #mobile-menu-btn,
    .animate-bounce-slow {
        display: none !important;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle::before {
    content: '☀️';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

[data-theme="dark"] .theme-toggle::before {
    content: '🌙';
    left: auto;
    right: 5px;
}

[data-theme="dark"] .theme-toggle::after {
    right: auto;
    left: 5px;
}

/* ===== EQUIPMENT STATUS ===== */
.status-active::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-ring 2s infinite;
}

/* ===== MATERIAL CARDS ===== */
.material-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== NEON GLOW ===== */
.neon-glow {
    box-shadow:
        0 0 5px #2563EB,
        0 0 10px #2563EB,
        0 0 20px #2563EB,
        0 0 40px #2563EB;
}

/* ===== FAB BUTTON ===== */
.fab {
    position: relative;
    overflow: visible;
}

.fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    border-radius: inherit;
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
}