/*
Theme Name: Synergy RF Divi Child
Theme URI: https://synergyrf.com
Description: Elegantna Divi child tema inspirisana Synergy RF digital agencijom. Tamna tema sa zlatnim akcentima, modernim animacijama i premium dizajnom. Kompatibilna sa Divi 5.0 - 5.8.
Author: Web Team
Author URI: https://web-team.org
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, agency, portfolio, elegant, gold, modern
Text Domain: synergy-rf-divi-child
*/

/* ============================================
   IMPORT PARENT THEME STYLES
   ============================================ */
@import url('../Divi/style.css');

/* ============================================
   CSS VARIABLES - Design System
   ============================================ */
:root {
    /* Boje */
    --srf-black: #0a0a0a;
    --srf-dark: #111111;
    --srf-dark-secondary: #1a1a1a;
    --srf-dark-tertiary: #222222;
    --srf-gray: #333333;
    --srf-gray-light: #666666;
    --srf-gray-muted: #888888;
    --srf-silver: #aaaaaa;
    --srf-white: #ffffff;
    --srf-off-white: #f5f5f5;

    /* Zlatne akcent boje */
    --srf-gold: #c9a84c;
    --srf-gold-light: #d4b76a;
    --srf-gold-dark: #a88a3d;
    --srf-gold-muted: rgba(201, 168, 76, 0.15);

    /* Gradijenti */
    --srf-gradient-gold: linear-gradient(135deg, #c9a84c 0%, #d4b76a 50%, #a88a3d 100%);
    --srf-gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    --srf-gradient-card: linear-gradient(145deg, #1a1a1a 0%, #222222 100%);

    /* Tipografija */
    --srf-font-heading: 'Playfair Display', 'Georgia', serif;
    --srf-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --srf-font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Razmaci */
    --srf-space-xs: 0.5rem;
    --srf-space-sm: 1rem;
    --srf-space-md: 2rem;
    --srf-space-lg: 4rem;
    --srf-space-xl: 6rem;
    --srf-space-2xl: 8rem;

    /* Border radius */
    --srf-radius-sm: 4px;
    --srf-radius-md: 8px;
    --srf-radius-lg: 16px;
    --srf-radius-xl: 24px;

    /* Shadows */
    --srf-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --srf-shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --srf-shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --srf-shadow-gold: 0 0 30px rgba(201, 168, 76, 0.2);

    /* Transitions */
    --srf-transition-fast: 0.2s ease;
    --srf-transition-normal: 0.3s ease;
    --srf-transition-slow: 0.5s ease;
    --srf-transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   BASE STYLES & RESETS
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--srf-font-body);
    background-color: var(--srf-black);
    color: var(--srf-off-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--srf-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--srf-white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    color: var(--srf-silver);
    font-size: 1.05rem;
    line-height: 1.8;
}

a {
    color: var(--srf-gold);
    text-decoration: none;
    transition: var(--srf-transition-normal);
}

a:hover {
    color: var(--srf-gold-light);
}

/* ============================================
   DIVI HEADER CUSTOMIZATION
   ============================================ */
#main-header {
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
    transition: all 0.4s ease !important;
}

#main-header.et-fixed-header {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

#logo {
    max-height: 50px !important;
    transition: var(--srf-transition-normal);
}

/* Navigacija */
#top-menu-nav > ul > li > a {
    font-family: var(--srf-font-body) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--srf-silver) !important;
    padding: 0 18px !important;
    position: relative !important;
}

#top-menu-nav > ul > li > a:hover,
#top-menu-nav > ul > li > a:focus {
    color: var(--srf-gold) !important;
}

#top-menu-nav > ul > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -5px !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--srf-gold) !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
}

#top-menu-nav > ul > li > a:hover::after {
    width: 60% !important;
}

#top-menu-nav > ul > li.current-menu-item > a {
    color: var(--srf-gold) !important;
}

/* Mobile menu */
.et_mobile_menu {
    background: var(--srf-dark) !important;
    border: 1px solid rgba(201, 168, 76, 0.1) !important;
}

.et_mobile_menu li a {
    color: var(--srf-silver) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.et_mobile_menu li a:hover {
    color: var(--srf-gold) !important;
    background: rgba(201, 168, 76, 0.05) !important;
}

/* Mobile menu button */
.et_mobile_nav_menu .mobile_menu_bar {
    color: var(--srf-gold) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.srf-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--srf-gradient-dark);
}

.srf-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.srf-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.srf-hero-label {
    font-family: var(--srf-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--srf-gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.srf-hero-label::before,
.srf-hero-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--srf-gold);
    opacity: 0.4;
}

.srf-hero-label::before { right: calc(100% + 15px); }
.srf-hero-label::after { left: calc(100% + 15px); }

.srf-hero-title {
    font-family: var(--srf-font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--srf-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.srf-hero-title .gold-text {
    background: var(--srf-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.srf-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--srf-gray-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.srf-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.srf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--srf-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--srf-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.srf-btn-primary {
    background: var(--srf-gradient-gold);
    color: var(--srf-black) !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.srf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
    color: var(--srf-black) !important;
}

.srf-btn-outline {
    background: transparent;
    color: var(--srf-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.srf-btn-outline:hover {
    border-color: var(--srf-gold);
    color: var(--srf-gold) !important;
    background: rgba(201, 168, 76, 0.05);
}

/* ============================================
   TRUSTED BY / LOGO SCROLL
   ============================================ */
.srf-trusted-section {
    padding: 3rem 0;
    background: var(--srf-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.srf-trusted-label {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--srf-gray-muted);
    margin-bottom: 2rem;
}

.srf-logo-scroll {
    display: flex;
    gap: 4rem;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.srf-logo-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.srf-logo-item {
    font-family: var(--srf-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--srf-gray-light);
    opacity: 0.6;
    white-space: nowrap;
    transition: var(--srf-transition-normal);
    letter-spacing: 0.05em;
}

.srf-logo-item:hover {
    opacity: 1;
    color: var(--srf-gold);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.srf-section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.srf-section-label {
    font-family: var(--srf-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--srf-gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.srf-section-title {
    font-family: var(--srf-font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--srf-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.srf-section-subtitle {
    font-size: 1.1rem;
    color: var(--srf-gray-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.srf-services-section {
    padding: var(--srf-space-2xl) 0;
    background: var(--srf-black);
    position: relative;
}

.srf-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--srf-gold), transparent);
    opacity: 0.3;
}

.srf-service-card {
    background: var(--srf-gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--srf-radius-lg);
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.srf-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--srf-gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.srf-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: var(--srf-shadow-lg);
}

.srf-service-card:hover::before {
    transform: scaleX(1);
}

.srf-service-icon {
    width: 56px;
    height: 56px;
    background: var(--srf-gold-muted);
    border-radius: var(--srf-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--srf-gold);
    transition: var(--srf-transition-normal);
}

.srf-service-card:hover .srf-service-icon {
    background: var(--srf-gold);
    color: var(--srf-black);
    transform: scale(1.1);
}

.srf-service-title {
    font-family: var(--srf-font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--srf-white);
    margin-bottom: 1rem;
}

.srf-service-desc {
    color: var(--srf-gray-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.srf-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srf-service-list li {
    color: var(--srf-silver);
    font-size: 0.85rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.srf-service-list li:last-child {
    border-bottom: none;
}

.srf-service-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--srf-gold);
    font-weight: bold;
}

/* ============================================
   PORTFOLIO / PROJECTS
   ============================================ */
.srf-portfolio-section {
    padding: var(--srf-space-2xl) 0;
    background: var(--srf-dark);
    position: relative;
}

.srf-project-card {
    position: relative;
    border-radius: var(--srf-radius-lg);
    overflow: hidden;
    background: var(--srf-dark-secondary);
    transition: all 0.5s ease;
}

.srf-project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--srf-shadow-lg);
}

.srf-project-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.srf-project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.srf-project-card:hover .srf-project-image-wrap img {
    transform: scale(1.05);
}

.srf-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.95) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.srf-project-card:hover .srf-project-overlay {
    opacity: 0.95;
}

.srf-project-content {
    padding: 2rem;
    position: relative;
}

.srf-project-client {
    font-family: var(--srf-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--srf-white);
    margin-bottom: 0.5rem;
}

.srf-project-type {
    font-size: 0.85rem;
    color: var(--srf-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.srf-project-desc {
    color: var(--srf-gray-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.srf-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.srf-project-tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 100px;
    color: var(--srf-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.srf-about-section {
    padding: var(--srf-space-2xl) 0;
    background: var(--srf-black);
    position: relative;
}

.srf-about-content {
    max-width: 700px;
}

.srf-about-text {
    font-size: 1.1rem;
    color: var(--srf-silver);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.srf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.srf-stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--srf-gradient-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--srf-radius-lg);
    transition: var(--srf-transition-normal);
}

.srf-stat-item:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-5px);
}

.srf-stat-number {
    font-family: var(--srf-font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--srf-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.srf-stat-label {
    font-size: 0.85rem;
    color: var(--srf-gray-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.srf-team-section {
    padding: var(--srf-space-2xl) 0;
    background: var(--srf-dark);
}

.srf-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.srf-team-image {
    border-radius: var(--srf-radius-lg);
    overflow: hidden;
    position: relative;
}

.srf-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.srf-team-image:hover img {
    transform: scale(1.03);
}

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

/* ============================================
   FOOTER
   ============================================ */
#main-footer {
    background: var(--srf-dark) !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

#main-footer .footer-widget h4 {
    font-family: var(--srf-font-heading) !important;
    color: var(--srf-white) !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
}

#main-footer .footer-widget p,
#main-footer .footer-widget li a {
    color: var(--srf-gray-muted) !important;
    font-size: 0.9rem !important;
}

#main-footer .footer-widget li a:hover {
    color: var(--srf-gold) !important;
}

#footer-bottom {
    background: var(--srf-black) !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

#footer-info {
    color: var(--srf-gray-light) !important;
    font-size: 0.85rem !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.srf-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.srf-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.srf-delay-1 { transition-delay: 0.1s; }
.srf-delay-2 { transition-delay: 0.2s; }
.srf-delay-3 { transition-delay: 0.3s; }
.srf-delay-4 { transition-delay: 0.4s; }
.srf-delay-5 { transition-delay: 0.5s; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--srf-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--srf-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--srf-gold-dark);
}

/* ============================================
   DIVI BUILDER OVERRIDES
   ============================================ */
.et_pb_section {
    background-color: transparent !important;
}

.et_pb_row {
    max-width: 1200px !important;
}

.et_pb_column {
    margin-bottom: 0 !important;
}

/* Form styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    background: var(--srf-dark-secondary) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--srf-radius-md) !important;
    color: var(--srf-white) !important;
    padding: 1rem 1.25rem !important;
    font-family: var(--srf-font-body) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--srf-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
    outline: none !important;
}

/* Submit buttons */
.et_pb_contact_submit,
.et_pb_button {
    background: var(--srf-gradient-gold) !important;
    color: var(--srf-black) !important;
    font-family: var(--srf-font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: var(--srf-radius-md) !important;
    padding: 1rem 2.5rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.et_pb_contact_submit:hover,
.et_pb_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    .srf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .srf-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .srf-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .srf-stats-grid {
        grid-template-columns: 1fr;
    }

    .srf-service-card {
        padding: 1.5rem;
    }

    .srf-project-content {
        padding: 1.5rem;
    }

    .srf-hero-section {
        min-height: 80vh;
    }
}

/* ============================================
   DIVI 5 COMPATIBILITY
   ============================================ */
.et-db #et-boc .et_pb_section {
    background-color: transparent !important;
}

.et-db #et-boc .et_pb_row_4col > .et_pb_column,
.et-db #et-boc .et_pb_row_3col > .et_pb_column,
.et-db #et-boc .et_pb_row_2col > .et_pb_column {
    margin-bottom: 30px !important;
}

/* Fix for Divi 5 builder */
.et-db #et-boc .et_pb_module {
    animation: none !important;
}
