/* =========================================================
   BULGARISTAN VATANDAŞLIK — index.css
   Modern, Responsive, Mobile-First Design
   ========================================================= */

/* ── Custom Properties ─────────────────────────────────── */
:root {
    --hero-background-image: url('images/hero-background.png');
    --primary:       #1e3c72;
    --primary-light: #2a5298;
    --accent:        #667eea;
    --accent-2:      #764ba2;
    --success:       #25a244;
    --whatsapp:      #25d366;
    --bg:            #f5f7fa;
    --surface:       #ffffff;
    --text:          #2d3748;
    --text-muted:    #718096;
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-full: 9999px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:     0 6px 20px rgba(0,0,0,0.10);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.14);
    --shadow-accent: 0 6px 20px rgba(102,126,234,0.35);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { transition: all var(--transition); color: inherit; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── Container ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.75rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem;    } }

/* =========================================================
   HEADER / NAV
   ========================================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg,rgba(30,60,114,0.97) 0%,rgba(42,82,152,0.97) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
    gap: 1rem;
}
@media (min-width: 1024px) { nav { padding-inline: 2rem; } }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo::before { content: "🇧🇬"; font-size: 1.6rem; line-height: 1; }

nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }

nav ul li a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
nav ul li a:hover,
nav ul li a:focus-visible {
    background: rgba(255,255,255,0.15);
    color: #fff;
    outline: none;
}

/* Burger Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    z-index: 1001;
}
.burger-menu span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}
.burger-menu.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-menu.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 767px) {
    .burger-menu { display: flex; }

    nav ul {
        position: fixed;
        inset: 64px 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: linear-gradient(160deg,#1a3568 0%,#2a5298 100%);
        padding: 1rem 0 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
        z-index: 999;
    }
    nav ul.active { transform: translateX(0); opacity: 1; visibility: visible; }
    nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 0; }
    nav ul li a:hover { background: rgba(255,255,255,0.1); }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(460px, 80vh, 700px);
    padding: clamp(4rem, 10vw, 7rem) 1.25rem;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(135deg,rgba(102,126,234,0.84) 0%,rgba(118,75,162,0.84) 100%),
        var(--hero-background-image);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { background-attachment: fixed; } }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%,rgba(255,255,255,0.07) 0%,transparent 60%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; width: 100%; }

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.9s ease-out both;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
    opacity: 0.92;
    animation: fadeInUp 0.9s ease-out 0.15s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    padding: 0.9rem 2.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    animation: fadeInUp 0.9s ease-out 0.3s both;
    transition: transform var(--transition), box-shadow var(--transition);
    min-height: 52px;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.28); background: #eef2ff; }
.cta-button:active { transform: translateY(-1px); }

/* =========================================================
   SECTIONS — Generic
   ========================================================= */
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    position: relative;
    margin-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    border-radius: 2px;
    margin: 0.9rem auto 0;
}

/* =========================================================
   SPECIAL INFO CARDS (Services)
   ========================================================= */
.special-info {
    background: linear-gradient(135deg,#f0f4ff 0%,#e8eef8 100%);
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--accent);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.special-info:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.special-info-content { position: relative; z-index: 1; max-width: 1000px; margin-inline: auto; }

.special-info-title {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.3;
}

.special-info-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) { .special-info-grid { grid-template-columns: 200px 1fr; gap: 1.5rem; } }
@media (max-width: 620px) { .special-info-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

.special-info-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
@media (max-width: 620px) { .special-info-image { max-height: 220px; aspect-ratio: 16 / 9; } }

.special-info-text { display: flex; flex-direction: column; gap: 0.85rem; }
.special-info p { color: var(--text); font-size: 1rem; line-height: 1.8; }

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,300px), 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--accent-2); }
.service-icon { font-size: 2.75rem; margin-bottom: 1rem; line-height: 1; }
.service-card h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 700; }
.service-card p { color: var(--text-muted); line-height: 1.8; font-size: 0.875rem; }

/* =========================================================
   ADVANTAGES SECTION
   ========================================================= */
.advantages { background: linear-gradient(160deg,#f0f4ff 0%,#dce4f5 100%); }

.advantages-intro {
    text-align: center;
    max-width: 780px;
    margin-inline: auto;
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.8;
}
.advantages-intro strong { color: var(--primary); font-weight: 700; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,250px), 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.advantage-card {
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--success);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.advantage-card::after {
    content: '🇪🇺';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    opacity: 0.07;
    pointer-events: none;
}
.advantage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.advantage-icon { font-size: 2.5rem; margin-bottom: 0.85rem; line-height: 1; }
.advantage-card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1rem; font-weight: 700; }
.advantage-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.8; }

/* =========================================================
   WHY US SECTION
   ========================================================= */
.why-us { background: var(--bg); }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,210px), 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.feature h3 { color: var(--primary); margin-bottom: 0.65rem; font-size: 1rem; font-weight: 700; }
.feature p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

/* =========================================================
   OFFICE INFO SECTION
   ========================================================= */
.office-info {
    background: linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
    color: #fff;
    text-align: center;
}
.office-info .section-title { color: #fff; }
.office-info .section-title::after { background: rgba(255,255,255,0.55); }

.office-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,210px), 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.office-detail {
    padding: 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.12);
    transition: background var(--transition);
}
.office-detail:hover { background: rgba(255,255,255,0.14); }
.office-detail h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: rgba(255,255,255,0.95); }
.office-detail p { opacity: 0.8; font-size: 0.875rem; }

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact { background: var(--surface); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,250px), 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.contact-info {
    background: var(--bg);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-info h3 { color: var(--primary); margin-bottom: 1.25rem; font-size: 1.25rem; font-weight: 700; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
    margin-bottom: 0.25rem;
}
.contact-item:hover { background: rgba(102,126,234,0.07); transform: translateX(4px); }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; width: 32px; text-align: center; line-height: 1.4; }
.contact-item strong { display: block; color: var(--primary); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-item p { color: var(--text-muted); font-size: 0.875rem; margin: 0; line-height: 1.5; }
.contact-item a[href*="wa.me"] { color: var(--whatsapp); font-weight: 700; text-decoration: none; }
.contact-item a[href*="wa.me"]:hover { text-decoration: underline; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: #111827;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 1.25rem;
}
footer p { font-size: 0.875rem; line-height: 1.7; }
footer p + p { margin-top: 0.4rem; opacity: 0.6; font-size: 0.75rem; }

/* =========================================================
   FLOATING BUTTONS
   ========================================================= */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37,211,102,0.45);
    z-index: 1000;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: pulse-green 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37,211,102,0.55);
    animation: none;
}

.whatsapp-text {
    position: fixed;
    bottom: 1.9rem;
    right: 4.75rem;
    background: #1a1a1a;
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.whatsapp-float:hover + .whatsapp-text { opacity: 1; transform: translateX(0); }

.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg,var(--accent) 0%,var(--accent-2) 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-accent);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(102,126,234,0.55); }
.back-to-top:active { transform: translateY(-1px); }

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

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.70); }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE — Small Mobile (<=480px)
   ========================================================= */
@media (max-width: 480px) {
    .logo { font-size: 0.9rem; }
    .logo::before { font-size: 1.4rem; }
    .cta-button { display: block; width: 100%; text-align: center; padding: 0.9rem 1.5rem; }
    section { padding: 2.5rem 0; }
    .special-info { padding: 1.25rem; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 1.5rem; bottom: 1rem; right: 1rem; }
    .back-to-top { bottom: 4.75rem; right: 1rem; width: 42px; height: 42px; font-size: 1rem; }
    .whatsapp-text { bottom: 1.35rem; right: 4.25rem; font-size: 0.7rem; padding: 0.35rem 0.7rem; }
}

@media (max-width: 360px) {
    nav { height: 60px; }
    nav ul { top: 60px; }
    .logo { font-size: 0.85rem; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    header, .whatsapp-float, .whatsapp-text, .back-to-top { display: none !important; }
    .hero { background: none; color: #000; min-height: auto; padding: 2rem 0; }
    .hero h1, .hero p { color: #000; }
    a { color: #000; }
}
