/* ============================================
   ViaMAS Sigorta Brokerliği - Özel Stiller
   ============================================ */

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}

/* ---- Responsive navbar logo ---- */
.nav-logo-img {
    position: absolute;
    top: 5px;
    height: 80px;
    width: auto;
    max-width: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top left;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Original colors */
    z-index: 50;
}

@media (max-width: 1024px) {
    .nav-logo-img {
        height: 60px;
        top: -3px;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        height: 45px;
        top: 0;
    }
}

/* ---- Scrollbar stili ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2E86C1;
}

/* ---- Hero Parallax BG ---- */
.hero-bg {
    background: linear-gradient(135deg, #0A2540 0%, #1B4F72 40%, #2E86C1 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(46, 134, 193, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 115, 232, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(10, 37, 64, 0.3) 0%, transparent 60%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

/* ---- City Silhouette ---- */
.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    z-index: 1;
    opacity: 0.08;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: contain;
}

/* ---- Animated gradient blob ---- */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 20s ease-in-out infinite;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* ---- Navbar scroll effect ---- */
.navbar-scrolled {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .nav-logo-img {
    height: 55px !important;
    top: -5px !important;
    transform: none !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* ---- Glassmorphism Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(46, 134, 193, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(46, 134, 193, 0.3);
}

/* ---- Service icon container ---- */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2E86C1, #1B4F72);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(46, 134, 193, 0.25);
}

.glass-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 35px rgba(46, 134, 193, 0.35);
}

/* ---- Team Card ---- */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(10, 37, 64, 0.15);
}

.team-card .team-overlay {
    transition: all 0.4s ease;
}

.team-card:hover .team-overlay {
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.6) 50%, transparent 100%);
}

/* ---- Counter Animation ---- */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ---- Fade-in animation on scroll ---- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 {
    transition-delay: 0.1s;
}

.fade-up-delay-2 {
    transition-delay: 0.2s;
}

.fade-up-delay-3 {
    transition-delay: 0.3s;
}

.fade-up-delay-4 {
    transition-delay: 0.4s;
}

/* ---- Floating shapes ---- */
.floating-shape {
    position: absolute;
    border: 2px solid rgba(46, 134, 193, 0.15);
    border-radius: 50%;
    animation: float-shape 6s ease-in-out infinite;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ---- Stat card ---- */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2E86C1, #1B4F72);
    border-radius: 0 4px 4px 0;
}

/* ---- Section divider ---- */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #2E86C1, #1B4F72);
    border-radius: 2px;
}

/* ---- About subsection ---- */
.about-subsection {
    padding-left: 16px;
    border-left: 3px solid rgba(46, 134, 193, 0.2);
    transition: border-color 0.3s ease;
}

.about-subsection:hover {
    border-left-color: #2E86C1;
}

/* ---- Animated underline ---- */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #2E86C1, #1B4F72);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* ---- Pulse dot ---- */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2E86C1;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #2E86C1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ---- Team photo placeholder ---- */
.team-photo-placeholder {
    background: linear-gradient(135deg, #1B4F72 0%, #2E86C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder span {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Outfit', sans-serif;
}

/* ---- Line Clamp ---- */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Team Bio Modal ---- */
.team-bio-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 37, 64, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-bio-modal.active {
    display: flex;
}

.team-bio-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: bio-modal-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes bio-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.team-bio-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.team-bio-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

.team-bio-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 400px;
}

.team-bio-photo {
    position: relative;
    overflow: hidden;
}

.team-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-bio-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
}

.team-bio-info {
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.team-bio-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #2E86C1, #1B4F72);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.team-bio-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 16px;
}

.team-bio-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #2E86C1, #1B4F72);
    border-radius: 2px;
    margin-bottom: 24px;
}

.team-bio-text {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

/* ---- Responsive Bio Modal ---- */
@media (max-width: 768px) {
    .team-bio-layout {
        grid-template-columns: 1fr;
    }

    .team-bio-photo {
        height: 280px;
    }

    .team-bio-info {
        padding: 24px;
    }

    .team-bio-name {
        font-size: 1.4rem;
    }
}

/* ---- Video Modal (Basında Biz) ---- */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 100%;
    max-width: 960px;
    position: relative;
    animation: bio-modal-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.video-modal-close:hover {
    background: #2E86C1;
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---- Line Clamp 2 ---- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Partner Logo Cards ---- */
.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px;
    min-height: 100px;
    width: 160px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.partner-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(46, 134, 193, 0.15);
    border-color: #2E86C1;
}

.partner-logo-img {
    max-height: 55px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-card:hover .partner-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}