/* ========== GENEL AYARLAR ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #0a1628;
    background-image:
        /* Büyük grid çizgileri */
        linear-gradient(rgba(74, 144, 217, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 217, 0.06) 1px, transparent 1px),
        /* Küçük grid çizgileri */
        linear-gradient(rgba(74, 144, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 217, 0.03) 1px, transparent 1px),
        /* Radyal parlama efekti */
        radial-gradient(ellipse at 50% 0%, rgba(74, 144, 217, 0.08) 0%, transparent 60%);
    background-size:
        80px 80px,
        80px 80px,
        20px 20px,
        20px 20px,
        100% 100%;
    background-attachment: fixed;
}

/* Elektrik hattı canvas arka plan */
#powerlineCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== FADE-IN ANİMASYONU ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-top {
    background-color: #0a1628;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
}

.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.logo-text span {
    color: #fff;
}

.logo-subtitle {
    font-size: 0.95rem;
    color: #4a90d9;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.header-nav {
    background-color: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(74, 144, 217, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    position: relative;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    color: #8a9bb5;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a90d9;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger Menü */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.3) 0%, rgba(8, 16, 30, 0.9) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-text p {
    font-size: 1.05rem;
    color: #8a9bb5;
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid #4a90d9;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #4a90d9;
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.3);
    transform: translateY(-2px);
}

.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background-color: #25d366;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-whatsapp-hero:hover {
    background-color: #1fb855;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.hero-graphic {
    flex: 0 0 auto;
    position: relative;
}

.hero-graphic img {
    width: 320px;
    height: auto;
    opacity: 0.85;
}

/* ========== BÖLÜM BAŞLIKLARI ========== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.section-title p {
    color: #8a9bb5;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.7;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background-color: #4a90d9;
    margin: 0 auto;
}

/* Tüm bölümler içerik katmanı */
.hero, .services, .why-us, .faq, .contact, footer {
    position: relative;
    z-index: 1;
}

/* Anchor scroll offset - fixed header için */
.services, .why-us, .faq, .contact {
    scroll-margin-top: 160px;
}

/* ========== HİZMETLER ========== */
.services {
    padding: 100px 0;
    background-color: rgba(10, 22, 40, 0.85);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(15, 25, 45, 0.6);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 144, 217, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 217, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 144, 217, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(74, 144, 217, 0.08);
    background: rgba(20, 35, 60, 0.7);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    width: 75px;
    height: 75px;
    background: transparent;
    border-radius: 16px;
    border: 1.5px solid rgba(74, 144, 217, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .icon {
    border-color: rgba(74, 144, 217, 0.6);
    box-shadow: 0 0 20px rgba(74, 144, 217, 0.15);
    background: rgba(74, 144, 217, 0.08);
}

.service-card .icon i {
    font-size: 1.6rem;
    color: #4a90d9;
    transition: all 0.4s ease;
}

.service-card:hover .icon i {
    color: #6ab0ff;
    text-shadow: 0 0 10px rgba(74, 144, 217, 0.4);
}

.service-card h3 {
    font-size: 1.1rem;
    color: #e0e8f0;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: #7a8fa3;
    line-height: 1.6;
}

/* ========== NEDEN BİZ ========== */
.why-us {
    padding: 80px 0;
    background-color: rgba(8, 18, 32, 0.9);
}

.why-us-inner {
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 20px;
    padding: 50px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.why-us-inner h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
}

.why-us-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.why-us-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-us-item i {
    color: #25d366;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-us-item span {
    color: #c0cdd8;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a1628;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 220px;
    height: auto;
    margin-bottom: 30px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 217, 0.2);
    border-top: 3px solid #4a90d9;
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

/* ========== SSS ========== */
.faq {
    padding: 80px 0;
    background-color: rgba(8, 18, 32, 0.9);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(74, 144, 217, 0.35);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    gap: 15px;
}

.faq-question span {
    color: #e0e8f0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-question i {
    color: #4a90d9;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #8a9bb5;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== İLETİŞİM ========== */
.contact {
    padding: 80px 0;
    background-color: rgba(10, 22, 40, 0.85);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.contact-card {
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-card:hover {
    border-color: rgba(74, 144, 217, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card i {
    font-size: 1.5rem;
    color: #4a90d9;
}

.contact-card.whatsapp-card {
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-card.whatsapp-card i {
    color: #25d366;
}

.contact-card.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.5);
}

.contact-card h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.contact-card span {
    color: #7a8fa3;
    font-size: 0.85rem;
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 50px;
    padding: 15px 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-location i {
    color: #4a90d9;
    font-size: 1.1rem;
}

.contact-location span {
    color: #8a9bb5;
    font-size: 0.9rem;
}

/* ========== YUKARI ÇIK BUTONU ========== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(74, 144, 217, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(74, 144, 217, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #3a7bc8;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.4);
}

.scroll-top i {
    color: #fff;
    font-size: 1.2rem;
}

/* ========== WHATSAPP BUTONU ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    color: #fff;
    font-size: 1.8rem;
}

/* ========== FOOTER ========== */
footer {
    background-color: rgba(6, 15, 29, 0.85);
    color: #a0b4c8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-brand-title span {
    color: #4a90d9;
}

.footer-col-brand p {
    font-size: 0.9rem;
    color: #7a8fa3;
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: #7a8fa3;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #4a90d9;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: #4a90d9;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
    color: #7a8fa3;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #5a6a7a;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-graphic {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .why-us-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-top {
        padding: 15px 0;
    }

    .logo img {
        height: 70px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        display: flex;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .btn-hero,
    .btn-whatsapp-hero {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .why-us-inner {
        padding: 30px 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-contact-item {
        justify-content: center;
    }
}
