/* 
   Air-Log Türkiye Redesign
   Modern, Premium, Dynamic CSS 
*/

/* --- Variables --- */
:root {
    /* Color Palette */
    --bg-color: #0d1117;
    /* Premium Dark Navy */
    --bg-surface: #161b22;
    /* Slightly lighter surface */
    --bg-surface-hover: #1f242c;

    --text-primary: #f0f6fc;
    /* Off-white */
    --text-secondary: #8b949e;
    /* Gray text */

    --accent-color: #0077ff;
    /* Vibrant Blue */
    --accent-hover: #3399ff;
    --accent-secondary: #00d2ff;
    /* Turquoise gradient stop */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* --- Top Bar --- */
.top-bar {
    background-color: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    /* Align all to the right since socials are gone */
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: var(--text-secondary);
}

.contact-item i,
.contact-item .icon {
    color: var(--accent-secondary);
    font-size: 14px;
}

.contact-item:hover {
    color: var(--text-primary);
}

a.contact-item:hover {
    color: var(--accent-secondary);
}

/* --- Header / Navigation --- */
.site-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(22, 27, 34, 0.85);
    /* Slightly more opaque on scroll */
}

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

.logo img {
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    min-width: 280px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

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

.dropdown-menu li a {
    display: block;
    padding: 8px 24px;
    color: var(--text-secondary);
}

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

.dropdown-menu li a:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
    padding-left: 28px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* --- Main Content Layout --- */
main {
    min-height: calc(100vh - 300px);
}

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

.bg-alt {
    background-color: transparent;
}

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

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

.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 200px 0 120px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, 0.8)),
        url('../assets/images/banner.jpg') no-repeat center center / cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    display: inline-block;
}

.hero-animated-path {
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 4px;
    margin-bottom: 24px;
    display: block;
    animation: line-expand 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 0.2s;
}

@keyframes line-expand {
    0% {
        width: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        width: 250px;
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* --- Intro Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.intro-text .lead {
    font-size: 20px;
    font-weight: 300;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.intro-text p {
    color: var(--text-secondary);
}

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

.stat-card {
    background: var(--bg-surface-hover);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-subtle);
}

.stat-card h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Application Areas --- */
.area-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.area-card {
    background: var(--bg-surface-hover);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 119, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.area-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0) 40%, rgba(13, 17, 23, 1) 100%);
    z-index: 1;
}

.card-content {
    padding: 25px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 15px;
    flex-grow: 1;
    margin-bottom: 24px;
}

.read-more {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    align-self: flex-start;
}

.area-card:hover .read-more {
    color: var(--accent-hover);
}

/* --- CTA Section --- */
.cta-box {
    background: linear-gradient(135deg, rgba(31, 36, 44, 0.8), rgba(22, 27, 34, 0.9)), url('../assets/images/vector4.png');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-box h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Main Content Layout ends, followed by Footer --- */

.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 0 0;
    margin-top: 80px;
}

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

.footer-brand img {
    height: 48px;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 300px;
}

.site-footer h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    font-size: 14px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    margin-right: 20px;
}

.footer-bottom-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom-copy {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

.scroll-top-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}


/* --- Custom Accordions --- */
.custom-accordion {
    background: var(--bg-surface-hover);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.custom-accordion:hover {
    border-color: var(--accent-secondary);
}

.custom-accordion summary {
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-accordion summary::-webkit-details-marker {
    display: none;
}

.custom-accordion summary::after {
    content: '+';
    font-size: 24px;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.custom-accordion[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px 20px;
}

.accordion-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Application Gallery --- */
.application-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0px;
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    background: var(--bg-surface-hover);
}

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

.gallery-caption {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
    transform: translateY(10px);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    background: rgba(0, 119, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);

    /* Initially hidden and animated */
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-content {
    display: block;
    max-width: 80%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    margin: auto;

    /* Scale animation */
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    margin: 20px auto;
    display: block;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #e5e5e5;
    font-size: 18px;
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-secondary);
    text-decoration: none;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Will implement mobile menu via JS */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .application-gallery {
        grid-template-columns: 1fr;
    }

    .lightbox-content {
        max-width: 95%;
    }

    #lightbox-caption {
        width: 95%;
        font-size: 16px;
    }
}