/* ============================================
   Serkan Şentuna Portfolio - Custom Styles
   ============================================ */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050511;
}
::-webkit-scrollbar-thumb {
    background: #15172E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #BD00FF;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #00F0FF;
}

/* Glass Card */
.glass-card {
    background: rgba(11, 12, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

/* Neon border glow */
.neon-border {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.neon-border:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* Neural background */
.neural-bg {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(189, 0, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 25%);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(to right, #00F0FF, #ffffff, #BD00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(to right, #00FF94, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.6); }
}

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

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 5, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    padding: 1rem 2rem;
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: #00F0FF;
}

/* Grayscale hover */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.7s ease;
}

.grayscale-hover:hover,
.group:hover .grayscale-hover {
    filter: grayscale(0%);
}

/* Product card logos */
.product-logo-circle {
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Form styles */
.form-input,
input.form-input,
textarea.form-input,
select.form-input {
    width: 100%;
    background: #0B0C1E !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #e5e7eb !important;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #e5e7eb;
}

.form-input:focus {
    border-color: #00F0FF;
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.form-input::placeholder {
    color: #4B5563;
}

/* Honeypot field */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #00FF94, #00F0FF);
    color: #050511;
}

.toast.error {
    background: linear-gradient(135deg, #ff4444, #BD00FF);
}

/* Accordion (detail pages) */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-content {
    max-height: 2000px;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

/* Detail page glass panel */
.glass-panel {
    background: rgba(11, 12, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid background for detail pages */
.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(51, 65, 85, 0.3) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(51, 65, 85, 0.3) 1px, transparent 1px);
}

/* Line clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Picture element fallback */
picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* reCAPTCHA v3 badge - hidden (privacy note in footer) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}
