/* Custom Styles for Seyyar Yazılım */

:root {
    --primary-color: #253046;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bs-primary: #253046;
    --bs-primary-rgb: 37, 48, 70;
}

/* Bootstrap Override for Primary Color */
.bg-primary {
    background-color: #253046 !important;
}

.text-primary {
    color: #1a202c !important;
}

.text-success {
    color: #28a745 !important;
}

.btn-primary {
    background-color: #253046 !important;
    border-color: #253046 !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1a2332 !important;
    border-color: #1a2332 !important;
}

.btn-outline-primary {
    color: #1a202c !important;
    border-color: #1a202c !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #1a202c !important;
    border-color: #1a202c !important;
    color: white !important;
}

.btn-outline-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-success:hover, .btn-outline-success:focus {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.btn-outline-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-outline-warning:hover, .btn-outline-warning:focus {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.btn-outline-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.btn-outline-info:hover, .btn-outline-info:focus {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: #ffffff !important;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 80px; /* Account for fixed navbar */
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2332 100%);
    position: relative;
    overflow: hidden;
}

.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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card-title {
    color: #1a202c !important;
}

.card-title.text-success {
    color: #28a745 !important;
}

.card-title.text-warning {
    color: #ffc107 !important;
}

.card-title.text-info {
    color: #17a2b8 !important;
}

/* Specific card title colors */
.card:nth-child(2) .card-title {
    color: #28a745 !important;
}

.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.service-icon i {
    transition: all 0.3s ease;
}

.card:hover .service-icon i {
    transform: scale(1.1);
}

/* Feature Boxes */
.feature-box {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon i {
    transform: scale(1.2);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ensure buttons are clickable */
.card .btn {
    pointer-events: all;
    display: inline-block;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Background Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2332 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--warning-color);
    color: var(--dark-color) !important;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: var(--warning-color);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
    padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem !important;
    }
    
    .feature-icon i {
        font-size: 1.8rem !important;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .feature-box {
        padding: 1.5rem 0.5rem;
    }
}

/* Additional Bootstrap Primary Color Overrides */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #253046 !important;
    color: white !important;
}

.nav-link.active {
    color: #ffc107 !important;
}

/* Override any remaining Bootstrap primary colors */
a.text-primary:hover,
a.text-primary:focus {
    color: #1a2332 !important;
}

.border-primary {
    border-color: #253046 !important;
}

.alert-primary {
    background-color: rgba(37, 48, 70, 0.125) !important;
    border-color: #253046 !important;
    color: #253046 !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .bg-light {
        background-color: #1a202c !important;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}
