/**
 * Antalya Tabelacı - Ana Stil Dosyası
 * Modern, Kurumsal, Premium Dark Theme
 */

/* ============================
   CSS Variables
   ============================ */
:root {
    /* Colors */
    --primary: #d4a853;
    --primary-dark: #b8923f;
    --primary-light: #e8c97a;
    --secondary: #1a1a1a;
    --dark: #0d0d0d;
    --dark-gray: #1f1f1f;
    --medium-gray: #2a2a2a;
    --light-gray: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 15px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(212, 168, 83, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================
   Base Styles
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--dark);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ============================
   Preloader
   ============================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--medium-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================
   Header & Navigation
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition-base);
}

.site-header.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 15px;
    padding: 10px 25px !important;
    border-radius: var(--radius-md);
}

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============================
   Buttons
   ============================ */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: var(--dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ============================
   Hero / Slider Section
   ============================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px;
}

.hero-slide {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================
   Sections
   ============================ */
.section {
    padding: var(--section-padding) 0;
}

.section-dark {
    background: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   Service Cards
   ============================ */
.service-card {
    background: var(--dark-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--medium-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card .card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card .card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card .card-link:hover {
    color: var(--primary-light);
}

/* ============================
   Project Cards
   ============================ */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.project-card .overlay span {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ============================
   Stats Section
   ============================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: var(--dark);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.stat-item .label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   Page Header
   ============================ */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a853' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.page-header .breadcrumb {
    justify-content: center;
    background: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.page-header .breadcrumb-item {
    color: var(--text-secondary);
}

.page-header .breadcrumb-item a {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ============================
   Forms
   ============================ */
.form-control,
.form-select {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--dark-gray);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
}

/* ============================
   Footer
   ============================ */
.site-footer {
    background: var(--secondary);
    border-top: 1px solid var(--medium-gray);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-secondary);
}

.contact-info a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
}

.footer-bottom {
    background: var(--dark);
    padding: 20px 0;
}

.copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--primary);
}

/* ============================
   WhatsApp & Back to Top
   ============================ */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition-base);
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    color: var(--dark);
    transform: translateY(-5px);
}

/* ============================
   Alert Messages
   ============================ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 15px 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* ============================
   Gallery / Lightbox
   ============================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '\F52D';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================
   Feature List
   ============================ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-list li strong {
    display: block;
    margin-bottom: 5px;
}

.feature-list li span {
    color: var(--text-secondary);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark-gray);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--radius-md);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        margin: 15px 0 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: auto;
        min-height: 500px;
    }
    
    .hero-slide {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stat-item .number {
        font-size: 2rem;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .whatsapp-btn,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .whatsapp-btn {
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ============================
   Lazy Loading Images
   ============================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* ============================
   Utilities
   ============================ */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-dark-gray { background-color: var(--dark-gray) !important; }
