/* DEKORX ELEKTRÄ°K - Ana Stil DosyasÄ± */
/* Koyu/Profesyonel Tema */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --accent-secondary: #0f3460;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-accent: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* Header & Navigation */
header {
    background: var(--gradient-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 50px;
}

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

.logo img {
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(180, 195, 215, 0.93), rgba(155, 175, 205, 0.88));
    padding: 3px 5px;
    object-fit: contain;
    border: 1px solid rgba(15, 52, 96, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(15, 52, 96, 0.15);
    transition: all 0.3s ease;
}

.logo img:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 25px rgba(15, 52, 96, 0.25);
    transform: translateY(-2px);
    border-color: rgba(15, 52, 96, 0.5);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

nav .logo .logo-text {
    display: none;
}

.logo-text span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent-color);
    color: var(--text-light);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding-top: 110px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/14.jpeg') center/cover;
    opacity: 0.55;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.4) 0%, rgba(22, 33, 62, 0.6) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero .slogan {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #c73e54;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--accent-color);
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Services Section */
.services {
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* About Section */
.about {
    background: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 10px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Contact Section */
.contact {
    background: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 15px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form {
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 15px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* Map Section */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 60px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: var(--gradient-dark);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.footer-logo {
    height: 55px;
    background: linear-gradient(145deg, rgba(180, 195, 215, 0.93), rgba(155, 175, 205, 0.88));
    border-radius: 12px;
    padding: 5px 8px;
    object-fit: contain;
    border: 1px solid rgba(15, 52, 96, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 15px rgba(15, 52, 96, 0.1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(15, 52, 96, 0.2);
    transform: translateY(-2px);
    border-color: rgba(15, 52, 96, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

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

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

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.6);
    }
}

/* Page Header */
.page-header {
    padding: 170px 0 80px;
    background: var(--gradient-dark);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Mobil Görünüm Ayarları */
@media (max-width: 768px) {
    
    /* 1. Hamburger Menü Butonu */
    .mobile-menu {
        display: flex;          /* Görünür yap */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 2002;          /* En üstte kalsın ki tıklanabilsin */
        position: relative;
    }

    /* 2. Açılır Menü Alanı (Düzeltilen Kısım) */
    .nav-links {
        position: fixed;
        top: 0;                 /* En tepeden başlasın (110px boşluk bırakma) */
        left: -100%;            /* Başlangıçta solda gizli */
        width: 100%;
        height: 100vh;          /* Tüm ekran boyunu kaplasın */
        background: var(--primary-color); /* Arka plan rengin */
        
        /* İçerik Ortalama (Flexbox) */
        display: flex;
        flex-direction: column;
        align-items: center;    /* Yatayda ortala */
        justify-content: center;/* Dikeyde ortala */
        gap: 20px;              /* Linkler arası boşluk */
        
        z-index: 2001;          /* Header'ın üzerinde kalsın */
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Yumuşak geçiş */
        padding: 0;
        margin: 0;
    }

    /* Menü Aktif Olduğunda (JS ile eklenen class) */
    .nav-links.active {
        left: 0; /* Ekrana getir */
    }

    /* 3. Linklerin Görünümü */
    .nav-links a {
        font-size: 1.3rem;      /* Mobilde yazılar daha büyük ve okunaklı olsun */
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
        opacity: 0;             /* Animasyon için başlangıçta gizle */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Menü açılınca linkler sırayla gelsin (İsteğe bağlı güzel bir efekt) */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Loading Animation */
/* Page Loader with Logo */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-logo {
    width: 280px;
    height: auto;
    max-height: 220px;
    border-radius: 20px;
    animation: logoPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(233, 69, 96, 0.4);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
}

.loader-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 3px;
}

.loader-text span {
    color: var(--accent-color);
}

.loader-spinner {
    display: flex;
    gap: 8px;
}

.loader-spinner span {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.loader-spinner span:nth-child(1) {
    animation-delay: 0s;
}

.loader-spinner span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-spinner span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(233, 69, 96, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(233, 69, 96, 0.5);
    }
}

@keyframes logoRotate {
    0%, 100% {
        transform: scale(1) rotateY(0deg);
    }
    25% {
        transform: scale(1.05) rotateY(10deg);
    }
    75% {
        transform: scale(1.05) rotateY(-10deg);
    }
}

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

