/* Custom CSS for Tepe Isıtma Website */

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a5f;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #6c757d;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.navbar-brand {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--primary-color);
}

.navbar.bg-primary {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar.navbar-dark {
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 40px rgba(44, 90, 160, 0.2);
    border-bottom: 3px solid var(--primary-color);
}

.navbar-scrolled.bg-primary {
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-scrolled.navbar-dark {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Force white background on scroll */
.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar.navbar-scrolled.bg-primary {
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar.navbar-scrolled.navbar-dark {
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    overflow: hidden;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.navbar-brand:hover {
    transform: scale(1.05) translateY(-2px);
    color: var(--accent-color) !important;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
}

.navbar-brand:hover::before {
    left: 100%;
}

.navbar-brand i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(44, 90, 160, 0.3));
}

.navbar-brand:hover i {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.4));
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    color: var(--dark-text) !important;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    overflow: hidden;
    border: 2px solid transparent;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transform: none;
}

.navbar-nav .nav-link.active::before {
    opacity: 0;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.navbar-nav .nav-link.active::after {
    width: 0;
    background: transparent;
    height: 0;
}

.navbar-nav .nav-link.active:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Dark navbar overrides */
.navbar-dark .navbar-nav .nav-link {
    color: var(--dark-text) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transform: none;
}

.navbar-dark .navbar-nav .nav-link.active:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.navbar-toggler:hover {
    border-color: var(--accent-color);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
    background: rgba(255, 255, 255, 1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.3rem rgba(44, 90, 160, 0.25);
    border-color: var(--primary-color);
}

.navbar-toggler:active {
    transform: scale(0.98);
}

.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%2844, 90, 160, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(44, 90, 160, 0.3));
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: drop-shadow(0 2px 4px rgba(44, 90, 160, 0.4));
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 80vh;
    min-height: 600px;
    position: relative;
}

.hero-section .carousel-item img {
    object-fit: fill;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.hero-section .carousel-item:hover img {
    transform: scale(1.05);
}

/* Carousel Indicators */
.hero-section .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.hero-section .carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.hero-section .carousel-control-prev {
    left: 20px;
}

.hero-section .carousel-control-next {
    right: 20px;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.25);
    opacity: 1;
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    transition: all 0.3s ease;
}

.hero-section .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-section .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    transform: scale(1.1);
}

/* Services Section */
.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(44, 90, 160, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.card:hover .service-icon::before {
    width: 80px;
    height: 80px;
}

.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* About Section */
.about-img {
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.about-img:hover::before {
    opacity: 1;
}

/* References Section */
.reference-stats {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(255, 107, 53, 0.05));
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reference-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.reference-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 0 2px 2px 0;
}

.reference-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.02), rgba(255, 107, 53, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.reference-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

.reference-item:hover::after {
    opacity: 1;
}

.reference-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.reference-item p {
    color: var(--light-text);
    margin-bottom: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reference-item p i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* Reference Categories */
.reference-category {
    margin-bottom: 3rem;
}

.reference-category h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.reference-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.reference-category h3 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(44, 90, 160, 0.1));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-item:hover i {
    color: var(--accent-color) !important;
    transform: scale(1.2) rotate(10deg);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Phone Button */
.phone-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #2c5aa0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.phone-button:hover {
    background: #1e3a5f;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.6);
}

/* Social Links */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--accent-color) !important;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Google Adsense */
.adsbygoogle {
    display: block;
    text-align: center;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .carousel-item {
        height: 60vh;
        min-height: 500px;
    }
    
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 0.9;
    }
    
    .hero-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-section .carousel-control-next {
        right: 15px;
    }
    
    .hero-section .carousel-control-prev-icon,
    .hero-section .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }
    
    .whatsapp-button {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .phone-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        display: none;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

/* Card Enhancements */
.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
    border-radius: 15px;
}

/* Print Styles */
@media print {
    .whatsapp-button,
    .phone-button,
    .navbar,
    .adsbygoogle {
        display: none !important;
    }
}
