/* Ersan Dark Theme - Kurumsal */

/* Header Solid */
.header-solid {
    background: color-mix(in srgb, var(--header-bg), transparent 5%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 168, 78, 0.1);
}

/* Gradient text — gold to silver */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Inner Page Hero */
.inner-hero {
    padding: 9rem 0 4rem;
    background: linear-gradient(135deg, var(--footer-bg) 0%, var(--header-bg) 40%, color-mix(in srgb, var(--header-bg), white 3%) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary-color), transparent 92%) 0%, transparent 60%);
    pointer-events: none;
}

/* Grid background pattern — subtle gold grid */
.grid-pattern {
    background-image:
        linear-gradient(color-mix(in srgb, var(--primary-color), transparent 97%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary-color), transparent 97%) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glow effects */
.glow-gold {
    box-shadow: 0 0 30px -5px color-mix(in srgb, var(--primary-color), transparent 70%),
        0 0 60px -10px color-mix(in srgb, var(--primary-color), transparent 90%);
}

/* Tech tag / pill */
.tech-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    border: 1px solid color-mix(in srgb, var(--primary-color), transparent 80%);
    background: color-mix(in srgb, var(--primary-color), transparent 92%);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: color-mix(in srgb, var(--primary-color), transparent 85%);
    border-color: color-mix(in srgb, var(--primary-color), transparent 60%);
    transform: translateY(-1px);
}

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-15px) rotate(3deg);
    }

    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

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

.floating-delay-1 {
    animation-delay: -2s;
}

.floating-delay-2 {
    animation-delay: -4s;
}

/* Stat card shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.stat-shimmer {
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--primary-color), transparent 90%) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Service card hover glow */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px color-mix(in srgb, var(--primary-color), transparent 85%);
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 1.25rem;
}

.masonry-tall {
    grid-row: span 2;
}

.masonry-item {
    cursor: pointer;
}

@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .masonry-tall {
        grid-row: span 1;
    }
}

/* Form styles */
.form-msg {
    padding: .75rem 1rem;
    border-radius: .75rem;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.form-msg.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.form-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary-color), transparent 70%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--primary-color), transparent 50%);
}

/* Selection */
::selection {
    background: color-mix(in srgb, var(--primary-color), transparent 60%);
    color: #fff;
}

/* Pulse gold */
@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color), transparent 60%);
    }

    50% {
        box-shadow: 0 0 20px 5px color-mix(in srgb, var(--primary-color), transparent 85%);
    }
}

.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Counter animation placeholder */
.counter-value {
    font-variant-numeric: tabular-nums;
}