/* VAS TECHNİC — vastechnic.com.tr teması (#c32026, #202e31) */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Hind:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #c32026;
    --secondary-color: #8f161b;
    --accent-color: #e2464b;
    --dark-bg: #202e31;
    --darker-bg: #151d20;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --text-dark: #202e31;
    --text-light: #505050;
    --gradient-primary: linear-gradient(135deg, #c32026 0%, #202e31 100%);
    --gradient-dark: linear-gradient(135deg, #202e31 0%, #151d20 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Bootstrap 5 uyumu */
    --bs-primary: #c32026;
    --bs-primary-rgb: 195, 32, 38;
    --topbar-height: 36px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
    padding-top: var(--topbar-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
}

/* Modern Navbar — koyu slate (referans site) */
.navbar {
    background: linear-gradient(180deg, #202e31 0%, #151d20 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid var(--primary-color);
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    z-index: 1050;
}

.public-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: #111a1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1060;
    font-size: 0.72rem;
}

.public-topbar .container {
    height: 100%;
}

.public-topbar-left a,
.public-topbar-left .topbar-address {
    color: rgba(255, 255, 255, 0.82);
    margin-right: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.public-topbar-left a:hover {
    color: #fff;
}

.topbar-social {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.topbar-social:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
}

@media (max-width: 991px) {
    :root { --topbar-height: 32px; }
    .public-topbar-left .topbar-address,
    .public-topbar-left a span {
        display: none;
    }
    .public-topbar-left a {
        margin-right: 8px;
    }
}

.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-nav {
    align-items: center;
    gap: 0.1rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.78rem;
    margin: 0 0.08rem;
    padding: 0.45rem 0.7rem !important;
    color: var(--white) !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle::after {
    display: none !important;
}

.nav-dd-arrow {
    margin-left: 6px;
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.nav-gallery-dd.show .nav-dd-arrow,
.nav-gallery-dd:hover .nav-dd-arrow {
    transform: rotate(180deg);
}

.navbar .dropdown-menu {
    border: 1px solid rgba(195, 32, 38, 0.28);
    background: rgba(24, 33, 37, 0.97);
    border-radius: 12px;
    /* margin-top boşluk bırakınca imleç ara alanda hover kaybediyor; alt menü kapanıyordu */
    padding: 10px 8px 8px;
    margin-top: 0;
    min-width: 190px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.navbar .dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
    background: rgba(195, 32, 38, 0.18);
    color: #fff;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(195, 32, 38, 0.12);
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(195, 32, 38, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white) !important;
}

.navbar .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(195, 32, 38, 0.45);
}

.navbar .btn-primary i {
    margin-right: 0.5rem;
}

.navbar-toggler {
    border: 2px solid rgba(195, 32, 38, 0.45);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(195, 32, 38, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Slider - Header altında başlasın */
.carousel {
    position: relative;
    overflow: hidden;
    margin-top: calc(73px + var(--topbar-height)); /* topbar + navbar */
}

.carousel-item {
    position: relative;
    height: calc(100vh - 73px);
    min-height: 500px;
}

.vas-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 2;
    pointer-events: none;
}

.vas-hero-floats {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.vas-float-icon {
    position: absolute;
    opacity: 0.5;
    animation: vas-float-drift 14s ease-in-out infinite;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* Porsche imleç */
body.has-porsche-cursor,
body.has-porsche-cursor a,
body.has-porsche-cursor button,
body.has-porsche-cursor .btn {
    cursor: none !important;
}

body.has-porsche-cursor input,
body.has-porsche-cursor textarea,
body.has-porsche-cursor select,
body.has-porsche-cursor [contenteditable="true"] {
    cursor: text !important;
}

.porsche-cursor {
    position: fixed;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.68);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.06s linear;
}

.porsche-cursor img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.4));
}

.porsche-cursor-fallback {
    display: none;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.porsche-cursor.is-clicked {
    animation: porsche-cursor-spin 0.55s ease;
}

@keyframes porsche-cursor-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.vas-float-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.vas-float-fallback {
    display: none;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.vas-float-icon--a { top: 14%; left: 7%; animation-duration: 13s; }
.vas-float-icon--b { top: 20%; right: 8%; animation-duration: 11s; animation-delay: -2s; }
.vas-float-icon--c { bottom: 18%; left: 10%; animation-duration: 15s; animation-delay: -4s; }
.vas-float-icon--d { bottom: 13%; right: 12%; animation-duration: 12s; animation-delay: -1s; }
.vas-float-icon--e { top: 46%; left: 51%; animation-duration: 16s; animation-delay: -5s; }

@keyframes vas-float-drift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
    50% { transform: translate3d(16px, -12px, 0) rotate(2deg); }
}

.vas-hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    bottom: 15%;
    left: 10%;
    right: 10%;
    text-align: left;
    border-left: 4px solid var(--primary-color);
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.carousel-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 7;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section (Slider yoksa) */
.hero-section {
    margin-top: calc(73px + var(--topbar-height));
    height: calc(100vh - 73px - var(--topbar-height));
    min-height: 500px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23c32026" stroke-width="0.5" opacity="0.12"/></svg>') repeat;
    background-size: 100px 100px;
}

/* Modern Cards - Kırmızı Aksan */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* =============== ADMIN PANEL =============== */
.admin-body {
    background: var(--gradient-dark);
    color: #e5e7eb;
}

.admin-body .card {
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 1px solid rgba(195, 32, 38, 0.22);
}

.admin-body .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(195, 32, 38, 0.28);
    color: #e5e7eb;
}

.admin-navbar {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--primary-color);
}

.admin-navbar .navbar-brand {
    font-weight: 800;
    color: var(--white) !important;
}

.admin-navbar .navbar-brand i {
    color: var(--primary-color);
}

.admin-navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.admin-navbar .nav-link:hover {
    background: rgba(195, 32, 38, 0.2);
    color: var(--primary-color) !important;
}

.admin-navbar .dropdown-menu {
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid rgba(195, 32, 38, 0.28);
}

.admin-navbar .dropdown-item {
    color: #e5e7eb;
}

.admin-navbar .dropdown-item:hover {
    background: rgba(195, 32, 38, 0.28);
}

.admin-body .table {
    color: #e5e7eb;
}

.admin-body .table thead {
    background: rgba(195, 32, 38, 0.2);
}

.admin-body .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Modern Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(195, 32, 38, 0.35);
    background: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Feature Circles */
.rounded-circle.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Modern Footer */
footer {
    background: var(--darker-bg);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

footer h5 {
    color: var(--white);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .carousel {
        margin-top: 65px;
    }
    
    .carousel-item {
        height: calc(100vh - 65px);
    }
    
    .hero-section {
        margin-top: 65px;
        height: calc(100vh - 65px);
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .navbar .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .navbar .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .carousel-item {
        min-height: 400px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(195, 32, 38, 0.28);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Star Icon Color Fix */
.fa-star {
    color: var(--primary-color) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}
