/* assets/css/styles.css */

/* ================================
   ROOT VARIABLES – LIGHT THEME
   ================================ */
:root {
    --bg-body: #f7f7f9;
    --bg-elevated: #ffffff;
    --bg-elevated-alt: #f1f5f9;
    --bg-hero: radial-gradient(circle at top left, #fef3f2 0, #f7f7f9 45%, #ffffff 100%);

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #4b5563;

    --border-subtle: rgba(15, 23, 42, 0.06);

    --primary: #f05523;
    --primary-soft: rgba(240, 85, 35, 0.08);
    --primary-strong: #dc3f11;
    --primary-gradient: linear-gradient(135deg, #f97316, #ef4444, #f05523);

    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-border: rgba(15, 23, 42, 0.06);

    --card-radius: 18px;
    --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);

    --hero-float-bg: rgba(15, 23, 42, 0.82);
    --hero-float-text: #f9fafb;
}

/* ================================
   DARK THEME OVERRIDES
   ================================ */
html[data-theme="dark"] {
    --bg-body: #020617;
    --bg-elevated: #020617;
    --bg-elevated-alt: #020617;
    --bg-hero: radial-gradient(circle at top left, #111827 0, #020617 50%, #000000 100%);

    --text-main: #e5e7eb;
    --text-muted: #d1d5db;
    --text-soft: #cbd5f5;

    --border-subtle: rgba(148, 163, 184, 0.35);

    --primary: #f97316;
    --primary-soft: rgba(249, 115, 22, 0.12);
    --primary-strong: #fb923c;
    --primary-gradient: linear-gradient(135deg, #fb923c, #f97316, #facc15);

    --navbar-bg: rgba(2, 6, 23, 0.98);
    --navbar-border: rgba(148, 163, 184, 0.35);

    --card-radius: 18px;
    --card-shadow: 0 20px 50px rgba(15, 23, 42, 0.85);

    --hero-float-bg: rgba(15, 23, 42, 0.95);
    --hero-float-text: #f9fafb;
}

/* ================================
   GLOBAL RESET & BASE
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-strong);
    text-decoration: underline;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ================================
   NAVBAR
   ================================ */
.main-navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--navbar-border);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-brand .agency-name {
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    padding-inline: 0.9rem !important;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 999px;
}

/* ================================
   THEME TOGGLE BUTTON
   ================================ */
.btn-outline-theme {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    padding-inline: 0.9rem;
    padding-block: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    color: var(--text-main);
}

.btn-outline-theme:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-strong);
}

.theme-icon {
    font-size: 1.1rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    background: var(--bg-hero);
}

.hero-title {
    letter-spacing: -0.04em;
}

.hero-subtitle {
    color: var(--text-soft);
}

.hero-meta small {
    color: var(--text-muted);
}

.hero-badge {
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: var(--primary-soft);
    color: var(--primary-strong);
    border: 1px solid rgba(248, 113, 113, 0.5);

    /* ОВА Е БИТНО ЗА MOBILE */
    white-space: normal;      /* дозволи нов ред */
    display: inline-block;    /* за да се шири повеќередно */
    max-width: 100%;          /* да не излегува од екранот */
}


/* Hero image */
.hero-image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #000000;
}

.hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-float-card {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    border-radius: 18px;
    padding: 14px 16px;
    background: var(--hero-float-bg);
    color: var(--hero-float-text);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    font-size: 0.86rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    margin-bottom: 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.hero-list li {
    margin-bottom: 2px;
}

.hero-outline-btn {
    border-color: rgba(148, 163, 184, 0.5) !important;
    color: var(--text-main) !important;
}

html[data-theme="dark"] .hero-outline-btn {
    border-color: rgba(148, 163, 184, 0.9) !important;
    color: #e5e7eb !important;
}

/* ================================
   SECTION GENERIC
   ================================ */
.section-padding {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-elevated-alt);
}

.section-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    font-weight: 600;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.section-text {
    font-size: 0.98rem;
    color: var(--text-soft);
}

/* ================================
   TIMELINE
   ================================ */
.timeline-card {
    background: var(--bg-elevated);
    border-radius: var(--card-radius);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--card-shadow);
}

.timeline {
    border-left: 1px solid rgba(148, 163, 184, 0.6);
    margin-left: 0.6rem;
}

.timeline-item {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0.2rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3);
}

.timeline-year {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-strong);
    margin-bottom: 0.15rem;
}

.timeline-body {
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* ================================
   SERVICE CARDS
   ================================ */
.service-card {
    background: var(--bg-elevated);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-subtle);
    padding: 1.35rem 1.4rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(248, 113, 113, 0.6);
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.3), var(--bg-elevated));
}

html[data-theme="dark"] .service-card {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.service-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--primary-soft);
    margin-bottom: 0.1rem;
}

/* ================================
   WHY CARDS
   ================================ */
.why-card {
    background: var(--bg-elevated);
    border-radius: var(--card-radius);
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-soft);
}

.why-highlight {
    background: var(--primary-soft);
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    font-size: 0.86rem;
    color: var(--text-main);
}

/* ================================
   CLIENT LOGOS
   ================================ */
.clients-grid .client-logo-placeholder {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px dashed var(--border-subtle);
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* ================================
   CONTACT BLOCKS
   ================================ */
.contact-info-card,
.contact-form-card {
    background: var(--bg-elevated);
    border-radius: var(--card-radius);
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.form-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
}

.form-control {
    font-size: 0.9rem;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    border-top: 1px solid var(--navbar-border);
    background: rgba(15, 23, 42, 0.02);
}

.ivsoft-link {
    font-weight: 500;
}

/* ================================
   BUTTON OVERRIDES
   ================================ */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-strong);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary-soft);
}

/* ================================
   LOGO SWITCH LIGHT / DARK
   ================================ */
.logo-light {
    display: inline-block;
}

.logo-dark {
    display: none;
}

/* Кога е dark тема: крие colour лого, покажува бело */
html[data-theme="dark"] .logo-light {
    display: none;
}

html[data-theme="dark"] .logo-dark {
    display: inline-block;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }

    .hero-section {
        padding-top: 3rem !important;
    }
}


/* ================================
   FIXES: DARK MODE NAV + BUTTON HOVER
   ================================ */

/* 1) Active tab underline in DARK (make it brighter + thicker) */
html[data-theme="dark"] .nav-link.active {
  color: var(--primary-strong);
}

html[data-theme="dark"] .nav-link.active::after {
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18), 0 10px 22px rgba(0, 0, 0, 0.45);
  bottom: 0.18rem;
}

/* 2) "Види ги сите услуги" hover (outline button) */
html[data-theme="dark"] .btn-outline-primary:hover,
html[data-theme="dark"] .btn-outline-primary:focus {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #020617; /* dark text for strong contrast on orange/yellow gradient */
  text-decoration: none;
}

/* ако копчето е hero-outline-btn (ако го користиш таму) */
html[data-theme="dark"] .hero-outline-btn:hover,
html[data-theme="dark"] .hero-outline-btn:focus {
  background: var(--primary-gradient);
  border-color: transparent !important;
  color: #020617 !important;
  text-decoration: none;
}
