﻿/* =========================================
   ALPHEX SAVUNMA VE KALİTE DANIŞMANLIK
   Main Stylesheet
   ========================================= */

/* --- CSS Variables --- */
:root {
    /* Color Palette - Soft & Professional */
    --primary-color: #1e3a8a; /* Soft Navy Blue */
    --primary-light: #3b82f6;
    --primary-dark: #1e3a5f;
    --accent-color: #d97706;  /* Soft Gold/Amber */
    --accent-hover: #b45309;
    
    --text-main: #334155;     /* Dark Slate Gray */
    --text-light: #64748b;    /* Light Slate Gray */
    --text-white: #ffffff;
    
    --bg-main: #f8fafc;       /* Off-white / Very light gray */
    --bg-white: #ffffff;
    --bg-dark: #0f172a;       /* Dark slate for footer */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --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);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

/* --- Layout Classes --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

/* --- Typography Classes --- */
.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem; font-weight: 400; color: #555;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Header --- */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo span {
    display: block;
    font-weight: 300;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.2;
    margin-top: 2px;
}

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bg-main);
    color: var(--text-main);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-main);
    color: var(--primary-color);
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.lang-btn img {
    border-radius: 2px;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: calc(100vh - 80px); /* Full height minus header */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-dark); /* Fallback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Soft overlay to make text readable */
    background-color: rgba(15, 23, 42, 0.6);
    background-blend-mode: overlay;
    transform: scale(1.05);
    transition: transform 6s linear; /* Slight zoom effect */
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Backgrounds from resimler folder */
.placeholder-bg-1 { background-image: url('resimler/slider1.png'); }
.placeholder-bg-2 { background-image: url('resimler/slider2.png'); }
.placeholder-bg-3 { background-image: url('resimler/slider3.png'); }

.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-white);
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.2;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide-content .btn {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}

.slide.active .slide-content h2,
.slide.active .slide-content p,
.slide.active .slide-content .btn {
    transform: translateY(0);
    opacity: 1;
}

/* --- Scroll Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none; /* Let clicks pass through empty space */
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 6px;
}

/* --- Intro Section --- */
.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* --- Internal Pages (Hakkımızda vb.) --- */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    color: var(--text-white);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.content-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.content-wrapper.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

    .content-logo.float-left {
        float: none;
        display: block;
        width: 100%;
        max-width: 500px;
        max-height: none;
        margin: 0 auto 30px;
        box-shadow: var(--shadow-md);
    }
    .content-text {
        text-align: justify;
    }

.content-text p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding-top: 60px;
    margin-top: auto;
}

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

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 20px;
}

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

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

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #94a3b8;
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    color: #94a3b8;
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem; font-weight: 400; color: #555;
}

/* --- References Slider --- */
.references-slider-wrapper {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.references-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.ref-slide {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.ref-slide img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition);
    pointer-events: none;
}



/* --- Services Carousel Section --- */
.services-section {
    background-color: var(--bg-light);
}

.services-carousel-wrapper {
    position: relative;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

.services-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.services-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.service-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.service-scroll-btn:hover {
    background-color: var(--primary-dark);
}

.service-scroll-btn.left-btn {
    left: -20px;
}

.service-scroll-btn.right-btn {
    right: -20px;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    text-align: left;
}

.contact-heading {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #000;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem; font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

.checkbox-group {
    margin-bottom: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    font-size: 0.9rem; font-weight: 400; color: #555;
    color: #444;
}

.custom-checkbox input {
    margin-top: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    margin-top: 10px;
    width: auto;
    min-width: 150px;
    padding: 12px 25px;
    font-size: 1.05rem;
}

.form-message {
    padding: 12px 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 1.1rem; font-weight: 600;
    font-weight: 500;
}

.form-message.error {
    background-color: #fde8e8;
    color: #c81e1e;
    border: 1px solid #f8b4b4;
}

.form-message.success {
    background-color: #def7ec;
    color: #03543f;
    border: 1px solid #84e1bc;
}

.contact-details-list {
    list-style: none;
    padding: 0;
}

.contact-details-list li {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.5;
}

.contact-details-list li strong {
    font-weight: 600;
    margin-right: 5px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .slide-content h2 { font-size: 2.8rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .service-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    /* Header adjustments */
    .header-container {
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .logo a {
        gap: 10px;
    }
    .logo-img {
        height: 35px;
    }
    .logo h1 {
        font-size: 1.1rem;
    }
    .logo span {
        font-size: 0.7rem;
    }

    .logo { order: 1; }
    .mobile-menu-btn { order: 3; display: block; }

    .main-nav {
        order: 2;
        display: flex !important;
        position: static;
        width: auto;
        margin-left: auto;
        margin-right: 15px;
        background-color: transparent;
        box-shadow: none;
        padding-bottom: 0;
        flex-direction: row;
        overflow: visible;
    }
    
    .main-nav .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        display: none;
        flex-direction: column;
        padding-bottom: 15px;
        z-index: 1000;
        gap: 0;
        order: 2;
    }
    
    .main-nav.active .nav-links {
        display: flex;
    }
    
    .main-nav a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem; font-weight: 600;
        text-align: right;
        border-bottom: 1px solid var(--bg-main);
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0; text-align: right;
        background-color: var(--bg-main);
    }
    
    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 0.9rem; font-weight: 400; color: #555;
        text-align: right;
        border-bottom: 1px solid #e2e8f0;
    }

    .lang-switcher {
        order: 1;
        padding: 0;
        border-bottom: none;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .lang-btn img {
        width: 22px !important;
        height: auto;
    }

    /* Slider adjustments */
    .hero-slider {
        min-height: 400px;
        height: 80vh;
    }
    .slide-content {
        padding: 0 35px;
    }
    .slide-content h2 { 
        font-size: 1.8rem; 
        margin-bottom: 15px;
    }
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .slider-controls {
        padding: 0 5px;
    }
    
            .content-logo.float-left {
        float: none;
        display: block;
        width: 100%;
        max-width: 500px;
        max-height: none;
        margin: 0 auto 30px;
        box-shadow: var(--shadow-md);
    }
    .content-text {
        text-align: justify;
    }

    /* Sections */
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .content-wrapper {
        padding: 30px 20px;
    }

    /* Services Grid for Mobile (3-3-1 Layout) */
    .services-track {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 10px;
        padding: 0 5px;
    }
    .service-card {
        flex: 0 0 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
        margin-bottom: 5px;
    }
    .service-card h3 {
        font-size: 0.65rem;
        padding: 10px 5px;
        min-height: 55px;
        line-height: 1.2;
    }
    .service-scroll-btn {
        display: none;
    }

    /* Contact Page */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .slide-content h2 { 
        font-size: 1.5rem; 
    }
    .logo-text {
        max-width: 200px;
    }
}

/* =========================================
   WhatsApp Float Button
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0,0,0,0.4);
    background-color: #20b858;
    color: #fff;
}