/* ============================================
   Synergy RF - Custom CSS Overrides
   Dodatni stilovi za specifične elemente
   ============================================ */

/* Custom scrollbar za WebKit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(201, 168, 76, 0.3);
    color: #ffffff;
}

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(201, 168, 76, 0.5);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.srf-shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #222222 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glass morphism effect */
.srf-glass {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gold glow effect */
.srf-glow {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.srf-glow-hover:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
}

/* Text gradient */
.srf-text-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #d4b76a 50%, #a88a3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Divider line */
.srf-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    margin: 3rem 0;
}

/* Badge / Tag */
.srf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #c9a84c;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Card hover lift */
.srf-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srf-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image overlay gradient */
.srf-img-overlay {
    position: relative;
}

.srf-img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
}

/* Animated underline */
.srf-underline {
    position: relative;
    display: inline-block;
}

.srf-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.srf-underline:hover::after {
    width: 100%;
}

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(201, 168, 76, 0); }
}

.srf-pulse {
    animation: pulse-gold 2s infinite;
}

/* Grid pattern background */
.srf-grid-bg {
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Noise texture overlay */
.srf-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* Social icons styling */
.srf-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    transition: all 0.3s ease;
}

.srf-social-icon:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    transform: translateY(-3px);
}

/* Testimonial card */
.srf-testimonial {
    background: linear-gradient(145deg, #1a1a1a 0%, #222222 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.srf-testimonial::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(201, 168, 76, 0.2);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

/* Pricing card highlight */
.srf-pricing-featured {
    border: 2px solid #c9a84c;
    position: relative;
}

.srf-pricing-featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #c9a84c;
    color: #0a0a0a;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Timeline */
.srf-timeline {
    position: relative;
    padding-left: 2rem;
}

.srf-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #c9a84c, transparent);
}

.srf-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.srf-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: #c9a84c;
    border-radius: 50%;
    transform: translateX(-4px);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
}

/* Accordion custom styling */
.srf-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.srf-accordion-header {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.srf-accordion-header:hover {
    color: #c9a84c;
}

.srf-accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: #c9a84c;
    transition: transform 0.3s ease;
}

.srf-accordion-item.active .srf-accordion-header::after {
    transform: rotate(45deg);
}

.srf-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #888888;
    line-height: 1.7;
}

.srf-accordion-item.active .srf-accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Progress bar */
.srf-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.srf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c9a84c, #d4b76a);
    border-radius: 2px;
    transition: width 1s ease;
}

/* Tooltip */
.srf-tooltip {
    position: relative;
}

.srf-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: #222222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #aaaaaa;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.srf-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .srf-hero-title {
        font-size: 2rem !important;
    }

    .srf-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .srf-team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Print styles */
@media print {
    #main-header,
    #footer-bottom,
    .srf-hero-section::before {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !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;
    }

    .srf-logo-scroll {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .srf-service-card,
    .srf-project-card,
    .srf-stat-item {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
}
