/* BYF Mühendislik - Ana Stil Dosyası */
/* Mobile-First Responsive Design */
/* Modern & Professional Color Palette - Elektrik Mühendisliği Teması */
/* Dark/Light Mode Support */

:root, [data-theme="light"] {
    /* ANA RENK PALETİ - Enerji & Güç Teması */
    --primary-color: #1e3a8a;       /* Derin Mavi - Güven & Profesyonellik */
    --primary-dark: #1e293b;        /* Koyu Lacivert - Güç */
    --primary-light: #3b82f6;       /* Parlak Mavi - Enerji */
    --secondary-color: #f59e0b;     /* Turuncu Altın - Elektrik & Enerji */
    --accent-color: #06b6d4;        /* Cyan - Teknoloji & İnovasyon */
    
    /* DURUM RENKLERİ - Net & Anlaşılır */
    --success-color: #10b981;       /* Modern Yeşil - Başarı */
    --warning-color: #f59e0b;       /* Turuncu - Dikkat */
    --danger-color: #ef4444;        /* Kırmızı - Hata */
    --info-color: #06b6d4;          /* Cyan - Bilgi */
    
    /* NÖTR RENKLER - Temiz & Modern */
    --light-bg: #f8fafc;            /* Çok açık gri-mavi */
    --white: #ffffff;               /* Saf beyaz */
    --dark-text: #0f172a;           /* Çok koyu lacivert metin */
    --gray-text: #64748b;           /* Orta gri-mavi metin */
    --border-color: #e2e8f0;        /* Açık gri-mavi border */
    --light-gray: #f1f5f9;          /* Açık gri arka plan */
    
    /* GRADIENT RENKLERİ - Modern & Dinamik */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    
    /* GÖLGE & EFEKTLER - Derinlik */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
    --shadow-secondary: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
    
    /* BORDER RADIUS - Yumuşak Köşeler */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    /* GEÇİŞLER - Smooth Animasyonlar */
    --transition-fast: all 0.15s ease-in-out;
    --transition: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* RESPONSIVE BREAKPOINTS */
    --breakpoint-mobile: 320px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop-sm: 1024px;
    --breakpoint-desktop-lg: 1440px;
    
    /* SPACING SYSTEM - Tutarlı Aralıklar */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
}

/* ===================================
   DARK MODE - Modern Koyu Tema
   =================================== */
[data-theme="dark"] {
    /* Ana Renkler - Daha Parlak */
    --primary-color: #3b82f6;
    --primary-dark: #60a5fa;
    --primary-light: #93c5fd;
    --secondary-color: #fbbf24;
    --accent-color: #22d3ee;
    
    /* Durum Renkleri */
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --info-color: #22d3ee;
    
    /* Nötr Renkler - Dark */
    --light-bg: #0f172a;
    --white: #1e293b;
    --dark-text: #f1f5f9;
    --gray-text: #94a3b8;
    --border-color: #334155;
    --light-gray: #1e293b;
    
    /* Gradient'ler */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Gölgeler - Daha Güçlü */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    --shadow-secondary: 0 10px 25px -5px rgba(251, 191, 36, 0.4);
}

/* Dark Mode - Image Optimization */
[data-theme="dark"] img:not([src*=".svg"]):not(.logo) {
    opacity: 0.9;
    filter: brightness(0.9);
}

/* Dark Mode - Card Background */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .blog-card {
    background: #1e293b;
    border-color: #334155;
}

/* Dark Mode - Input Focus */
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on all elements */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Ensure tables are responsive */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, li, span {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main-content {
    flex: 1;
    padding-top: 120px;
}

/* Container - Mobile-First Responsive */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-3);
    padding-right: var(--spacing-3);
}

/* Mobile: 320px */
@media (min-width: 320px) {
    .container {
        max-width: 100%;
    }
}

/* Tablet: 768px */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop Small: 1024px */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* Desktop Large: 1440px */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
}

/* Extra Large: 1920px */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
}

/* Typography - Mobile-First Responsive */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-text);
}

/* Mobile Base (320px) */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Tablet (768px) */
@media (min-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
}

/* Desktop (1024px) */
@media (min-width: 1024px) {
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Buton Stilleri - Unified Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.02em;
    position: relative;
    background: var(--gradient-primary);
    color: var(--white);
}

.btn:hover:not(:disabled) {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    color: var(--white);
}

.btn:hover i {
    transform: scale(1.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.25rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0056b3 0%, #3b82f6 100%);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-outline:hover:not(:disabled) {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-secondary);
}

.btn-danger,
.delete-btn,
button[name="delete"],
input[type="submit"][value*="Sil"],
a[href*="delete"],
.deletelink {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: var(--white) !important;
    border: 2px solid transparent !important;
    padding: 0.625rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: var(--border-radius) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    min-width: 100px !important;
    justify-content: center !important;
}

.btn-danger:hover:not(:disabled),
.delete-btn:hover,
button[name="delete"]:hover,
input[type="submit"][value*="Sil"]:hover,
a[href*="delete"]:hover,
.deletelink:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4) !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #b91c1c !important;
}

.btn-danger:active,
.delete-btn:active,
button[name="delete"]:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px -5px rgba(239, 68, 68, 0.4) !important;
}

.btn-danger:disabled,
.delete-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-info {
    background: var(--gradient-accent);
    color: var(--white);
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}

.btn-light {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-light:hover:not(:disabled) {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-light {
    background: var(--gradient-primary);
    color: var(--white);
}

[data-theme="dark"] .btn-light:hover:not(:disabled) {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-outline-light {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-outline-light i {
    color: var(--white);
    font-size: 1.2rem;
}

.btn-outline-light:hover:not(:disabled) {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover:not(:disabled) i {
    transform: scale(1.2);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: none;
    padding: 0.25rem 0.5rem;
}

.btn-link:hover:not(:disabled) {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Stilleri - Modern & Unified */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--dark-text);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232c3e50' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Kart Stilleri - Modern Cards */
.card,
.section-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2,
.section-header h3 {
    margin: 0;
    color: var(--dark-text);
}

.section-body {
    padding: 0;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* Alert Stilleri - Modern Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid;
}

.alert i {
    font-size: 1.25rem;
}

.alert-danger {
    background: #fee;
    color: #c0392b;
    border-left-color: var(--danger-color);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--info-color);
}

.alert-auto-close {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Stilleri */
.section-padding {
    padding: 3rem 0;
}

.bg-light {
    background-color: var(--light-color);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* Status Badges - Unified */
.status-badge,
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed,
.badge-completed,
.badge-active {
    background: #d4edda;
    color: #155724;
}

.status-in_progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-cancelled,
.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--gray-text); }
.text-primary { color: var(--primary-color); }

/* Hero Section - Unified */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Hero Image Container - Standart Boyutlar */
.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* Responsive Hero */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        aspect-ratio: 16 / 9;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        aspect-ratio: 1 / 1;
    }
}

/* Service Cards - Modern Image-Based Design */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.15);
}

/* Image Container - Fixed Height for Consistent Cards */
.service-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px 12px 0 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Icon Fallback - When no image */
.service-card-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.service-card-icon-fallback i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

/* Card Content */
.service-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-content h3 {
    color: var(--dark-text);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}


/* Dark Mode Service Cards */
[data-theme="dark"] .service-card {
    background: var(--white);
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .service-card-content h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .service-card-content p {
    color: var(--gray-text);
}

/* Dashboard Styles - Unified */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   IMAGE STANDARTLARI
   Tüm Fotoğraflar İçin Genel Kurallar
   =================================== */

/* About Image - Team/Company Photos */
.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Team Member Images - Square Format */
.team-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light-bg);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

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

/* Blog Post Images - Wide Format */
.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-bg);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service/Project Images - Flexible Format */
.service-image,
.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-bg);
}

.service-image img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-image:hover img,
.project-image:hover img {
    transform: scale(1.05);
}

/* General Image Container */
.img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-bg);
}

.img-container.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.img-container.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.img-container.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.img-container.ratio-3-4 {
    aspect-ratio: 3 / 4;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Images */
@media (max-width: 768px) {
    .about-image {
        aspect-ratio: 1 / 1;
    }
    
    .hero-image,
    .service-image,
    .project-image {
        aspect-ratio: 16 / 9;
    }
}

/* Messages Container */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

@media (max-width: 768px) {
    .messages-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-text);
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.empty-state h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding-top: 100px;
    }

    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ===================================
   DJANGO THEME TOGGLE - Native Support
   =================================== */
/* Django'nun varsayılan theme switcher'ı kullanılıyor */