/* ==========================================================================
   CENGİZ ÇAM ELEKTRİK - MODERN STYLE
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
    /* Colors */
    --primary: #2563eb;       /* Electric Blue */
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;     /* Secondary Blue */
    --dark: #0f172a;          /* Very Dark Navy */
    --dark-alt: #1e293b;      /* Dark Gray/Navy */
    --light: #f8fafc;         /* Off-white */
    --white: #ffffff;
    --text: #475569;          /* Slate 600 */
    --text-light: #94a3b8;    /* Slate 400 */
    --success: #10b981;
    --whatsapp: #25D366;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --topbar-height: 40px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

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

/* --- UTILITIES --- */
.text-primary { color: var(--primary); }
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fw-light { font-weight: 300; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }
.rounded-image { border-radius: var(--radius-lg); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-large { box-shadow: var(--shadow-lg); }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.glow-effect:hover {
    box-shadow: var(--shadow-glow);
}

/* --- SECTION HEADERS --- */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-header .title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-header .desc {
    color: var(--text);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.section-header.align-left .desc {
    margin-left: 0;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--dark);
    color: var(--text-light);
    font-size: 0.875rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info strong {
    color: var(--white);
}

.top-contact a:hover {
    color: var(--primary-light);
}

.top-info i, .top-contact i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* --- HEADER / NAVBAR --- */
.header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    top: 0;
    height: 70px;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-alt);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-btn {
    padding: 0.6rem 1.25rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://lirp.cdn-website.com/b06ea678/dms3rep/multi/opt/12-1920w.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--topbar-height));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

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

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--light);
}

.trust-item i {
    color: var(--primary-light);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.experience-badge span {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
}

.experience-badge p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
    display: inline-block;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 233, 0.05));
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* --- WHY US SECTION --- */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-box .icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: rotate(45deg);
    transition: var(--transition);
}

.feature-box:hover .icon-wrap {
    transform: rotate(0deg);
}

.feature-box .icon-wrap i {
    transform: rotate(-45deg);
    transition: var(--transition);
}

.feature-box:hover .icon-wrap i {
    transform: rotate(0deg);
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* --- REFERENCES SECTION --- */
.scroller {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-speed="slow"] { --_animation-duration: 60s; }
.scroller[data-speed="fast"] { --_animation-duration: 20s; }

@keyframes scroll {
    to { transform: translate(calc(-50% - 0.75rem)); }
}

.ref-card {
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

/* --- FAQ SECTION --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.faq-image-wrap {
    margin-top: 2rem;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--light);
}

.accordion-header[aria-expanded="true"] {
    background: var(--primary);
    color: var(--white);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: var(--white);
}

.accordion-body p {
    padding: 1.25rem 1.5rem;
    margin: 0;
}

/* --- CONTACT SECTION --- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.c-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.primary-card {
    background: var(--primary);
    color: var(--white);
}

.primary-card h3, .primary-card p, .primary-card .c-link, .primary-card .c-icon {
    color: var(--white);
}

.whatsapp-card {
    background: var(--whatsapp);
    color: var(--white);
}

.whatsapp-card h3, .whatsapp-card p, .whatsapp-card .c-link, .whatsapp-card .c-icon {
    color: var(--white);
}

.c-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.c-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.c-card p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.c-link {
    font-weight: 700;
    font-size: 1.1rem;
}

.c-link:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

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

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* --- FLOATING ELEMENTS --- */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.float-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.float-wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.float-call {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none; /* Only mobile */
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.scroll-top-btn {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 100px;
    right: 38px;
    background-color: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* --- ANIMATIONS (Reveal on Scroll) --- */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
}

.fade-up { transform: translateY(50px); }
.fade-up.active { transform: translateY(0); }

.fade-right { transform: translateX(-50px); }
.fade-right.active { transform: translateX(0); }

.fade-left { transform: translateX(50px); }
.fade-left.active { transform: translateX(0); }


/* --- RESPONSIVE (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .about-grid, .faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide topbar on mobile for cleaner look */
    }
    
    .header {
        top: 0;
        height: 70px;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: 0.4s ease-in-out;
        box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.25rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .float-call.mobile-only {
        display: flex;
    }
    
    .float-wa {
        bottom: 30px;
        right: 20px;
    }
    
    .float-call {
        bottom: 30px;
        left: 20px;
    }
    
    .scroll-top-btn {
        bottom: 100px;
        right: 27px;
    }
    
    .wa-tooltip {
        display: none;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .experience-badge {
        right: 0;
        bottom: -1rem;
        padding: 1rem;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
}
