/* ============================================================
   Etimesgut Cam Balkoncu - Frontend Styles
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.top-bar a {
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Navbar */
.navbar {
    padding: 12px 0;
}

.navbar-brand {
    font-size: 20px;
    color: var(--secondary) !important;
}

.navbar-brand small {
    font-size: 14px;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: 8px 15px !important;
    position: relative;
    transition: color 0.2s;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 600px;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.6) 100%);
    z-index: 1;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
}

.hero-slider .carousel-caption h2 {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-slider .carousel-caption p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

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

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon-wrapper i {
    font-size: 28px;
    color: var(--primary);
}

.service-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Reference Cards */
.reference-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.reference-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.reference-card .card-body {
    padding: 20px;
}

.reference-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.reference-card .location {
    font-size: 13px;
    color: var(--text-light);
}

/* Video Cards */
.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-card .video-wrapper iframe,
.video-card .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Appointment Form */
.appointment-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.appointment-form .form-control,
.appointment-form .form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Contact Info */
.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.contact-info-card .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-info-card .icon i {
    font-size: 22px;
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
}

.site-footer h5, .site-footer h6 {
    color: #fff;
    font-weight: 600;
}

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

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.call-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s;
}

.call-float:hover {
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Gallery */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.gallery-item .overlay i {
    color: #fff;
    font-size: 30px;
}

/* Service Areas */
.area-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 4px;
}

/* Category Icons */
.cat-icon {
    padding: 20px 10px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.cat-icon:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.cat-icon i {
    font-size: 28px;
    color: var(--primary);
}
.cat-icon p {
    color: var(--secondary);
}

/* Badge CAM BALKON */
.badge-cam-balkon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.service-card {
    position: relative;
}

/* Why Card */
.why-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Project Filter */
.project-item {
    transition: all 0.3s;
}
.project-item.hidden {
    display: none;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider, .hero-slider .carousel-item {
        height: 380px;
    }
    
    .hero-slider .carousel-caption {
        left: 5%;
        right: 5%;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 24px;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 14px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .top-bar .col-md-6 {
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .call-float {
        bottom: 80px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .appointment-form {
        padding: 25px;
    }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow);
    z-index: 998;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
