/* EGETE TEKNİK - Main Stylesheet */
/* Import all CSS modules */

@import url('reset.css');
@import url('variables.css');
@import url('layout.css');
@import url('components.css');
@import url('animations.css');
@import url('responsive.css');

/* ================================
   GOOGLE FONTS
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================
   BASE STYLES
   ================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* ================================
   BASE STYLES
   ================================ */
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Selection */
::selection {
    background-color: var(--accent-color);
    color: var(--text-white);
}

/* ================================
   HEADER STYLES
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: var(--space-6) 0;
    transition: all 0.4s var(--ease-out-quart);
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.header.scrolled {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0;
}

/* Navbar link colors for transparent header */
.header:not(.scrolled) .logo,
.header:not(.scrolled) .nav-link {
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header:not(.scrolled) .mobile-menu-btn span {
    background-color: var(--text-white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--accent-color);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    padding: 0 var(--space-6);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-xl);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-video {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
}

.about-content p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

/* ================================
   SERVICES SECTION
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

/* ================================
   PROJECTS SECTION
   ================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

/* ================================
   CATALOG SECTION
   ================================ */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.catalog-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

.catalog-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.catalog-image:hover img {
    transform: scale(1.05);
}

/* ================================
   PARTNERS SECTION
   ================================ */
.partners-slider {
    overflow: hidden;
    padding: var(--space-8) 0;
}

.partners-track {
    display: flex;
    gap: var(--space-16);
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    height: 60px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.4s var(--ease-out-quart);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.contact-info h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.contact-details p {
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.whatsapp-contact-cta {
    display: inline-block;
    margin-top: var(--space-5);
    padding: 10px 14px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-white);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 18px -12px rgba(230, 57, 70, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-contact-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 20px -12px rgba(230, 57, 70, 0.95);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.footer-brand h3 span {
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
}

.footer-credit {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.credit-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: var(--font-medium);
}

.credit-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px);
}

/* ================================
   UTILITY CLASSES
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Aspect ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* ================================
   FOOTER MOBILE FIX
   ================================ */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-14) 0 var(--space-8);
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: var(--space-7);
        margin-bottom: var(--space-10);
    }

    .footer-brand,
    .footer-links {
        min-width: 0;
    }

    .footer-brand p,
    .footer-links li,
    .footer-links a {
        font-size: 0.975rem;
        line-height: 1.65;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .footer-title {
        font-size: 1.15rem;
        margin-bottom: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
}
