/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/logo2.webp') center/cover no-repeat, linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--secondary-color);
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    opacity: 1 !important; /* Hero always visible - no scroll animation */
}

/* Prevent hero elements from getting scroll animation */
.hero .scroll-animate {
    opacity: 1 !important;
    animation: none !important;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
}

.hero-title span {
    display: block !important;
}

.hero-title .subtitle {
    display: block !important;
    margin-top: 0.8rem;
    font-size: 0.50em;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 5px 15px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.scroll-indicator {
    display: none; /* Gri çizgi kaldırıldı */
}

/* Companies Section */
.companies-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    position: relative;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.companies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(102, 102, 102, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.companies-section.section-active::before {
    opacity: 1;
}

/* Ensure section titles start hidden for scroll animation */
.companies-section .section-title,
.companies-section .section-subtitle {
    opacity: 1; /* Will be overridden by .scroll-animate class */
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.company-card {
    /* Corporate clean card - now clickable link */
    --card-radius: 14px;
    border-radius: var(--card-radius);
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: none;
    will-change: transform;
    opacity: 0;
    transform: translateY(100px) scale(0.98);
    cursor: pointer;
    display: grid;                 /* logo left, content right */
    grid-template-columns: 84px 1fr;
    grid-auto-rows: min-content;
    column-gap: 1rem;
    text-decoration: none;
    color: inherit;
}

/* Disable floating decorative animation for a calmer corporate look */
.company-card.animate-in::after { animation: none; opacity: 0; }
.company-card::before { display: none; }
.company-card:hover::before { opacity: 0; }

/* Icon/logo area: bigger and static */
.card-icon {
    width: 84px;
    height: 84px;
    margin: 0;                 /* align to top-left */
    border-radius: 8px;        /* tile look like sample */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #111;
    transition: none; /* stop motion */
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.12);
    border: 1px solid #eef1f4;
    opacity: 1;            /* always visible */
    transform: none;       /* no intro transform */
    grid-column: 1;
    grid-row: 1 / span 2;  /* span title + description */
}

/* Stop intro animation on logos */
.company-card.animate-in .card-icon { animation: none !important; }

/* Images inside logo area */
.card-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    background: transparent;
}

/* No hover movement for logos */
.company-card:hover .card-icon { transform: none; box-shadow: none; }

/* Slightly calmer hover for the whole card */
.company-card:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.10);
    border-color: #dfe3e8;
}

/* Typography polish for corporate tone */
.company-card h3 {
    grid-column: 2;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0.25rem 0 0.4rem 0;
    color: #0f172a; /* slate-900 */
    letter-spacing: -0.01em;
}

.company-card p {
    grid-column: 2;
    color: #475569; /* slate-600 */
    line-height: 1.7;
    font-size: 0.98rem;
    letter-spacing: 0;
    margin: 0; /* no extra spacing */
    border-top: 3px solid #e31e24; /* red divider like sample */
    padding-top: 0.75rem;
}

/* Hide the card button - card itself is clickable now */
.card-btn {
  display: none;
}

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

@keyframes companyCardAppear {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(40px) scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes cardIconBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotate(10deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes cardContentSlide {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation utility classes */
.scroll-animate {
    opacity: 0;
    transition: none;
}

.scroll-animate.animate-in {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}

.scroll-animate.fade-up {
    animation-name: fadeInUp;
}

.scroll-animate.fade-left {
    animation-name: fadeInLeft;
}

.scroll-animate.fade-right {
    animation-name: fadeInRight;
}

.scroll-animate.fade-in {
    animation-name: fadeIn;
}

.scroll-animate.scale-in {
    animation-name: scaleIn;
}

/* Stagger animation delays */
.scroll-animate.delay-100 { animation-delay: 0.1s; }
.scroll-animate.delay-200 { animation-delay: 0.2s; }
.scroll-animate.delay-300 { animation-delay: 0.3s; }
.scroll-animate.delay-400 { animation-delay: 0.4s; }
.scroll-animate.delay-500 { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    /* Tablet ve mobil için farklı arka plan resmi */
    .hero {
        background: url('../images/qaflogo.webp') center/contain no-repeat, 
                    #ffffff;
        background-size: 90% auto;
        background-position: center center;
        min-height: 100vh;
        height: auto;
        padding: 2rem 0;
    }
    
    .hero::before {
        background: rgba(0, 0, 0, 0.75);
    }

    .hero-title {
        font-size: 3.5rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
                     0 2px 10px rgba(0, 0, 0, 0.4);
        color: #ffffff;
    }

    .hero-title span {
        display: block !important;
    }
    
    .hero-title .subtitle {
        font-size: 0.46em;
    }

    .hero-description {
        font-size: 1.25rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.95);
    }
    
    .hero-btn {
        padding: 1.1rem 3rem;
        font-size: 1.05rem;
        background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
        color: #1a1a1a;
    }
    
    .hero-btn:hover {
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .companies-section {
        padding: 4rem 0;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Mobile/Tablet: remove rounded corners on company cards */
    .company-card {
        --card-radius: 0;
        border-radius: 0 !important;
    }
    
    /* Faster animations for mobile */
    .company-card.animate-in {
        animation-duration: 0.8s;
    }
    
    .company-card.animate-in .card-icon {
        animation-duration: 0.6s;
    }
    
    .company-card.animate-in h3,
    .company-card.animate-in p,
    .company-card.animate-in .card-btn {
        animation-duration: 0.4s;
    }
    
    /* Remove blur effect on mobile for performance */
    @keyframes companyCardAppear {
        0% {
            opacity: 0;
            transform: translateY(60px) scale(0.9);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 480px) {
    /* Küçük mobil ekranlar için qaflogo.webp kullan */
    .hero {
        background: url('../images/qaflogo.webp') center/contain no-repeat, 
                    #ffffff;
        background-size: 85% auto;
        background-position: center center;
        min-height: 100vh;
        height: auto;
        padding: 1.5rem 0;
    }
    
    .hero::before {
        background: rgba(0, 0, 0, 0.75);
    }

    .hero-title {
        font-size: 2.5rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6),
                     0 2px 8px rgba(0, 0, 0, 0.4);
        color: #ffffff;
    }

    .hero-title span {
        display: block !important;
    }
    
    .hero-title .subtitle {
        font-size: 0.44em;
    }

    .hero-description {
        font-size: 1.1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
        color: #1a1a1a;
    }
    
    .hero-btn:hover {
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
