/* ===== BuyGlobal Corporate Design System ===== */
:root {
    --primary: #1a3a5c;
    --primary-light: #2c5f8a;
    --primary-dark: #0d1f33;
    --accent: #e8a838;
    --accent-hover: #d4952e;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border: #e0e0e0;
    --success: #00b894;
    --danger: #e74c3c;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 1.5rem; }
.top-bar-left i { margin-right: 0.4rem; color: var(--accent); }
.top-bar-right a { color: #fff; margin-left: 1rem; font-size: 1rem; }
.top-bar-right a:hover { color: var(--accent); }

/* ===== Header ===== */
.site-header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; }
.logo-text { font-size: 1.8rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-highlight { color: var(--accent); }
.logo-sub { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; }

.main-nav { display: flex; gap: 0.5rem; align-items: center; }
.nav-link {
    padding: 0.6rem 1.1rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--primary); color: #fff; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* ===== Slider ===== */
.slider-section { position: relative; overflow: hidden; }
.slider-container { position: relative; width: 100%; height: 520px; }
.slider-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    color: #fff;
}
.slider-slide.active { opacity: 1; z-index: 1; }
.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,92,0.85) 0%, rgba(26,58,92,0.6) 100%);
}
.slider-content { position: relative; z-index: 2; max-width: 700px; }
.slider-content .slider-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent);
}
.slider-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.slider-content h1 span { color: var(--accent); }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.6rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,168,56,0.3); color: #fff; }

.btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    transition: var(--transition);
}
.btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== Section Styles ===== */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.4rem; font-weight: 700; color: var(--primary); margin-bottom: 0.8rem; }
.section-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== Service Cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2rem; }
.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-card .icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.6rem; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; color: var(--primary); margin-bottom: 0.8rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== About Section ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 1.5rem; }
.about-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.8; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 0;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p { opacity: 0.9; margin-bottom: 2rem; font-size: 1.1rem; }

/* ===== Blog Cards ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.blog-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.blog-card-body p { color: var(--text-light); font-size: 0.9rem; }
.blog-card-meta { padding: 0 1.5rem 1rem; font-size: 0.8rem; color: var(--text-light); }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-box {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
}
.contact-info-box h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-item i { font-size: 1.3rem; color: var(--accent); margin-top: 0.2rem; }
.contact-info-item p { margin: 0; }
.contact-info-item a { color: #fff; }
.contact-info-item a:hover { color: var(--accent); }
.contact-info-item strong { display: block; margin-bottom: 0.2rem; }

.contact-social { display: flex; gap: 1rem; margin-top: 2rem; }
.contact-social a {
    width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.15);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: var(--transition);
}
.contact-social a:hover { background: var(--accent); }

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute; inset: 0; background: rgba(26,58,92,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { font-size: 2rem; color: #fff; }

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header .breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.95rem; opacity: 0.8; }
.page-header .breadcrumb a { color: var(--accent); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 4px solid var(--accent); }
.team-card h4 { font-weight: 600; color: var(--primary); }
.team-card p { color: var(--text-light); font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #aaa; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-links.contact-info li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-links.contact-info i { color: var(--accent); margin-top: 0.15rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    color: #aaa; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
}

/* ===== Alert ===== */
.alert { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Loading ===== */
.loading { text-align: center; padding: 3rem; color: var(--text-light); }
.loading::after { content: ''; display: block; width: 40px; height: 40px; margin: 1rem auto; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 0.3rem; text-align: center; }
    .top-bar-left span { margin-right: 1rem; font-size: 0.8rem; }

    .mobile-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1rem; box-shadow: var(--shadow-lg); border-top: 2px solid var(--accent); }
    .main-nav.open { display: flex; }

    .hero-content h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-section { padding: 3rem 0; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .section { padding: 3rem 0; }
    .section-title h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.6rem; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ===== Blazor Error UI ===== */
.blazor-error-boundary { background: var(--danger); padding: 1rem; color: white; border-radius: 8px; }
.blazor-error-boundary::after { content: "Bir hata oluştu."; }

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.team-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.5);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.team-title {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.team-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.team-links a:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
    .team-photo { height: 220px; }
}

/* ===== Instagram Feed ===== */
.instagram-section { background: #fafafa; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.instagram-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
}
.instagram-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.instagram-card:hover img { transform: scale(1.08); }
.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.instagram-overlay i {
    font-size: 2.2rem;
    color: #fff;
}
.instagram-card:hover .instagram-overlay { opacity: 1; }

@media (max-width: 768px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 480px) {
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}