/* Custom Styles - Soft Black & White Theme */
:root {
    --primary-color: #2d3436;
    --secondary-color: #636e72;
    --accent-color: #f5f6fa;
    --gray-light: #f5f6fa;
    --gray-medium: #b2bec3;
    --gray-dark: #2d3436;
    --soft-black: #2d3436;
    --soft-white: #f5f6fa;
}

/* Override ALL Bootstrap Colors to Soft Black */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info,
.text-primary,
.text-secondary,
.text-success,
.text-danger,
.text-warning,
.text-info,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    --bs-primary: #2d3436 !important;
    --bs-primary-rgb: 45, 52, 54 !important;
    --bs-secondary: #2d3436 !important;
    --bs-success: #2d3436 !important;
    --bs-danger: #2d3436 !important;
    --bs-warning: #2d3436 !important;
    --bs-info: #2d3436 !important;
}

/* All Buttons */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    background-color: #2d3436 !important;
    border-color: #2d3436 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: #636e72 !important;
    border-color: #636e72 !important;
    color: #ffffff !important;
}

/* All Outline Buttons */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info {
    color: #2d3436 !important;
    border-color: #2d3436 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary.active,
.btn-outline-secondary:hover,
.btn-outline-secondary.active,
.btn-outline-success:hover,
.btn-outline-success.active,
.btn-outline-danger:hover,
.btn-outline-danger.active,
.btn-outline-warning:hover,
.btn-outline-warning.active,
.btn-outline-info:hover,
.btn-outline-info.active {
    background-color: #2d3436 !important;
    border-color: #2d3436 !important;
    color: #ffffff !important;
}

/* All Backgrounds */
.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info {
    background-color: #2d3436 !important;
}

/* All Badges */
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-info {
    background-color: #2d3436 !important;
    color: #ffffff !important;
}

/* All Text Colors */
.text-primary,
.text-secondary,
.text-success,
.text-danger,
.text-warning,
.text-info {
    color: #2d3436 !important;
}

/* Pagination */
.page-link {
    color: #2d3436 !important;
}

.page-item.active .page-link {
    background-color: #2d3436 !important;
    border-color: #2d3436 !important;
    color: #ffffff !important;
}

/* Alerts */
.alert-primary,
.alert-secondary,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info {
    background-color: #f5f6fa !important;
    border-color: #2d3436 !important;
    color: #2d3436 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d3436;
    background-color: #ffffff;
}

/* Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Larger font sizes for readability */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Full width images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 20px;
    }
    
    /* Navbar adjustments */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand span {
        font-size: 1rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 60px 0 !important;
    }

    .hero-section-index {
        min-height: 80vh;
        padding: 100px 0 80px !important;
    }

    .hero-video {
        display: none;
    }

    .hero-section-index {
        background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    }

    .hero-subtitle-top {
        font-size: 0.8rem;
        letter-spacing: 4px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-btn {
        min-width: 160px;
    }

    /* Reference slider */
    .reference-logo {
        width: 200px !important;
        height: 100px !important;
    }
    
    /* Project cards */
    .project-item {
        margin-bottom: 20px;
    }
    
    /* Filter buttons */
    .btn-group {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top:hover {
    background: #636e72;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background-color: #2d3436 !important;
}

.navbar-dark {
    background-color: #2d3436 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-brand i {
    color: #ffffff;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #2d3436;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

.dropdown-item {
    color: #dfe6e9;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.dropdown-item:hover {
    background-color: #636e72;
    color: #ffffff;
}

/* Navbar Social Icons */
.navbar-nav .nav-item .nav-link i {
    transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover i {
    transform: scale(1.2);
    color: #dfe6e9;
}

/* Hero Section */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15) !important;
}

/* Project Cards */
.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15) !important;
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 52, 54, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 0;
    padding: 14px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: #2d3436;
    border: 2px solid #2d3436;
    color: #ffffff;
}

.btn-primary:hover {
    background: transparent;
    color: #2d3436;
    border: 2px solid #2d3436;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 52, 54, 0.15);
}

.btn-light {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #000000;
}

.btn-light:hover {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline-primary {
    border: 2px solid #2d3436;
    color: #2d3436;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #2d3436;
    color: #ffffff;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 !important;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

/* Badge Styles */
.badge {
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
}

.bg-success {
    background-color: #2d3436 !important;
}

.bg-primary {
    background-color: #2d3436 !important;
}

/* Reference Slider */
.references-slider {
    width: 100%;
    overflow: hidden;
}

.references-track {
    display: flex;
    gap: 30px;
    animation: scroll-rtl 30s linear infinite;
}

.reference-item {
    flex-shrink: 0;
}

/* Projects Slider */
.projects-slider {
    width: 100%;
    overflow: hidden;
}

.projects-track {
    display: flex;
    gap: 30px;
    animation: scroll-rtl 40s linear infinite;
}

.projects-track .project-item {
    flex-shrink: 0;
    width: 350px;
}

.projects-track:hover {
    animation-play-state: paused;
}

.reference-logo {
    transition: all 0.3s ease;
    cursor: pointer;
}

.reference-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1) !important;
}

/* Sağdan sola kayma animasyonu */
@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hover'da animasyonu durdur */
.references-track:hover {
    animation-play-state: paused;
}

/* Social Media Icons */
.social-icon-link {
    text-decoration: none;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.linkedin {
    background: #0077b5;
}

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

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

/* ===== Index.php Specific Styles ===== */

/* Hero Section - Video Background */
.hero-section-index {
    margin-top: 56px;
    background: #2d3436;
    color: white;
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(45, 52, 54, 0.7) 0%,
        rgba(45, 52, 54, 0.5) 50%,
        rgba(45, 52, 54, 0.8) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-subtitle-top {
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    animation: fadeInDown 1s ease-out;
}

.hero-title {
    letter-spacing: -2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Hero Buttons */
.hero-btn {
    min-width: 200px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.btn-hero-primary {
    background: #ffffff;
    border: 2px solid #ffffff;
    color: #2d3436;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: #ffffff;
    color: #2d3436;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    animation: bounce 2s infinite;
}

.hero-scroll-indicator a {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for service cards */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.45s; }

/* Reference Logos */
.reference-logo-wrapper {
    width: 250px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.reference-logo-img {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.reference-icon {
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 10px;
}

.reference-company-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #636e72;
}

/* Service Cards */
.service-card-white {
    background: #ffffff;
    border: 2px solid #e0e0e0;
}

.service-card-dark {
    background: #2d3436;
    color: white;
    border: 2px solid #2d3436;
}

.service-icon {
    font-size: 3rem;
    color: #2d3436;
}

.service-icon-white {
    font-size: 3rem;
    color: #ffffff;
}

.service-title {
    letter-spacing: 1px;
    color: #2d3436;
    font-size: 1.3rem;
}

.service-title-white {
    letter-spacing: 1px;
    font-size: 1.3rem;
}

.service-description {
    font-size: 0.9rem;
}

.service-description-light {
    color: #dfe6e9;
    font-size: 0.9rem;
}

.service-list {
    font-size: 0.9rem;
}

.service-list-light {
    color: #dfe6e9;
    font-size: 0.9rem;
}

/* Navbar Offset Class (can be used in other pages) */
.navbar-offset {
    margin-top: 56px;
}
