/* ============================
   Öz Yiğit Hafriyat - Modern Premium CSS
   Hafriyat Sektörü Özel Tasarım
   ============================ */

/* Root Variables */
:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FCD34D;
    --secondary: #111827;
    --accent: #EF4444;
    --success: #10B981;
    --construction-orange: #EA580C;
    --construction-yellow: #FACC15;
    --safety-red: #DC2626;
}

/* Premium Font Settings */
body {
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 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(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-primary {
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== HERO SECTION ===== */
.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Construction Pattern Overlay */
.hero-pattern {
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(245, 158, 11, 0.03) 10px,
            rgba(245, 158, 11, 0.03) 20px);
}

/* ===== 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 excavator-dig {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes truck-move {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes dust-particle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 0 80px rgba(245, 158, 11, 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 border-dance {

    0%,
    100% {
        border-color: rgba(245, 158, 11, 0.3);
    }

    50% {
        border-color: rgba(245, 158, 11, 0.8);
    }
}

/* 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-excavator {
    animation: excavator-dig 3s ease-in-out infinite;
}

.animate-truck {
    animation: truck-move 2s ease-in-out infinite;
}

.animate-dust {
    animation: dust-particle 2s 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-border {
    animation: border-dance 2s 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-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

.card-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.7s ease;
}

.card-premium:hover::before {
    left: 100%;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #F59E0B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.gradient-text-construction {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 50%, #FACC15 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTON STYLES ===== */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::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;
    z-index: -1;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-construction {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    position: relative;
    overflow: hidden;
}

.btn-construction::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px);
    animation: rotate-slow 60s linear infinite;
}

/* ===== CONSTRUCTION STRIPES ===== */
.construction-stripes {
    background: repeating-linear-gradient(-45deg,
            #F59E0B,
            #F59E0B 10px,
            #111827 10px,
            #111827 20px);
}

.construction-stripes-light {
    background: repeating-linear-gradient(-45deg,
            rgba(245, 158, 11, 0.1),
            rgba(245, 158, 11, 0.1) 10px,
            transparent 10px,
            transparent 20px);
}

/* ===== ICON CONTAINERS ===== */
.icon-float {
    position: relative;
}

.icon-float::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(5px);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1F2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F59E0B, #EA580C);
    border-radius: 6px;
    border: 2px solid #1F2937;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FCD34D, #F59E0B);
}

/* ===== SELECTION ===== */
::selection {
    background-color: #F59E0B;
    color: #111827;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
    outline: 2px solid #F59E0B;
    outline-offset: 3px;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #e2e2e2 25%, #f5f5f5 50%, #e2e2e2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== 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;
    }
}

/* ===== HAFRIYAT SPECIFIC ELEMENTS ===== */

/* Excavator Arm Animation */
.excavator-arm {
    transform-origin: bottom center;
    animation: excavator-dig 4s ease-in-out infinite;
}

/* Dirt Particles */
.dirt-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #92400E;
    border-radius: 50%;
    animation: dust-particle 2s ease-out infinite;
}

/* Safety Helmet Icon Bounce */
.helmet-bounce {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Truck Loading Animation */
.truck-loading {
    position: relative;
}

.truck-loading::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #92400E;
    border-radius: 2px;
    animation: fadeInUp 0.5s ease-out infinite;
}

/* Progress Bars for Equipment Status */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 2px;
    transition: width 1s ease;
}

/* Equipment Card Status Indicator */
.status-active {
    position: relative;
}

.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 Hover Effect */
.material-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Timeline Connector */
.timeline-connector {
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -32px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #F59E0B, transparent);
}

/* Floating Action Buttons */
.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;
}

/* Neon Glow Effect */
.neon-glow {
    box-shadow:
        0 0 5px #F59E0B,
        0 0 10px #F59E0B,
        0 0 20px #F59E0B,
        0 0 40px #F59E0B;
}

/* Image Parallax Effect */
.parallax-container {
    overflow: hidden;
}

.parallax-img {
    transition: transform 0.3s ease-out;
}

.parallax-container:hover .parallax-img {
    transform: scale(1.1) translateY(-5px);
}

/* Section Dividers */
.divider-wave {
    position: relative;
}

.divider-wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F3F4F6' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,50 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* Counter Animation */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* 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: #111827;
    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);
}