/* assets/css/pages/mobil-uygulama.css */

/* --- ROOT VARIABLES: Premium Tech Palette --- */
:root {
    --ma-dark-bg: #0B1120;       /* Deepest Navy */
    --ma-card-bg: #151e32;       /* Slightly Lighter Navy */
    --ma-primary: #3b82f6;       /* Erpin Blue */
    --ma-accent: #8b5cf6;        /* Purple Accent */
    --ma-cyan: #06b6d4;          /* Cyan for glow */
    --ma-text-main: #f8fafc;     /* White/Grey */
    --ma-text-muted: #94a3b8;    /* Muted Blue-Grey */
    --ma-gradient-hero: linear-gradient(135deg, #0B1120 0%, #1e1b4b 100%);
    --ma-gradient-text: linear-gradient(to right, #3b82f6, #8b5cf6, #06b6d4);
    --ma-card-border: 1px solid rgba(255, 255, 255, 0.08);
    --ma-shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
}

/* --- GLOBAL RESETS & TYPOGRAPHY --- */
body.mobile-app-page {
    background-color: var(--ma-dark-bg);
    color: var(--ma-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.ma-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.ma-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* GRADIENT TEXT UTILITY */
.ma-gradient-text {
    background: var(--ma-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- HERO SECTION --- */
.ma-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--ma-gradient-hero);
    position: relative;
    padding-top: 120px; /* Header space */
}

/* Animated Background Elements */
.ma-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: floatOrb 10s infinite alternate;
}

.ma-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: floatOrb 15s infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

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

.ma-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.ma-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ma-cyan);
    letter-spacing: 0.5px;
}

.ma-badge i {
    color: var(--ma-accent);
}

.ma-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.ma-hero p {
    font-size: 1.2rem;
    color: var(--ma-text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}

.ma-btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.ma-btn-primary {
    background: var(--ma-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.ma-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.ma-btn-primary:hover::before {
    left: 100%;
}

.ma-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.ma-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.ma-btn-outline:hover {
    border-color: var(--ma-primary);
    background: rgba(59, 130, 246, 0.05);
    color: white;
}

.ma-hero-image-wrapper {
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.ma-hero-phone {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-8deg) rotateX(2deg); }
}

.ma-hero-image-wrapper:hover .ma-hero-phone {
    transform: rotateY(0) rotateX(0);
}

/* --- TECH STACK SECTION --- */
.ma-tech-stack {
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0;
}

.ma-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    opacity: 0.7;
}

.ma-tech-item img {
    height: 40px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.ma-tech-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- SERVICES SECTION --- */
.ma-services {
    background: var(--ma-dark-bg);
}

.ma-heading {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ma-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.ma-heading p {
    color: var(--ma-text-muted);
}

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

.ma-service-card {
    background: var(--ma-card-bg);
    border: var(--ma-card-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.ma-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ma-gradient-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.ma-service-card:hover::before {
    transform: scaleX(1);
}

.ma-service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--ma-primary);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.ma-service-card:hover .ma-service-icon {
    background: var(--ma-primary);
    color: white;
    transform: rotateY(180deg);
}

.ma-service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.ma-service-card p {
    color: var(--ma-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- PROCESS SECTION --- */
.ma-process {
    background: #0f172a;
    position: relative;
}

.ma-process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.ma-step {
    text-align: center;
    position: relative;
}

.ma-step-number {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--ma-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.ma-step:hover .ma-step-number {
    background: var(--ma-primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.ma-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.ma-step:last-child::after {
    display: none;
}

.ma-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.ma-step p {
    font-size: 0.85rem;
    color: var(--ma-text-muted);
}

/* --- FAQ SECTION (Redesigned) --- */
.ma-faq {
    background: var(--ma-dark-bg);
}

.ma-accordion-item {
    background: var(--ma-card-bg);
    border: var(--ma-card-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ma-accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ma-accordion-header:hover {
    color: var(--ma-primary);
}

.ma-accordion-header i {
    transition: transform 0.3s ease;
}

.ma-accordion-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.ma-accordion-header[aria-expanded="true"] {
    color: var(--ma-primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ma-accordion-body {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.ma-accordion-header[aria-expanded="true"] + .ma-accordion-body {
    padding: 20px 25px;
    max-height: 200px; /* Adjust as needed */
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .ma-hero {
        text-align: center;
        padding-top: 150px;
        min-height: auto;
    }
    
    .ma-hero-content {
        margin: 0 auto;
    }
    
    .ma-btn-group {
        justify-content: center;
    }
    
    .ma-hero-image-wrapper {
        margin-top: 60px;
        transform: scale(0.9);
    }
    
    .ma-process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ma-step::after {
        width: 2px;
        height: 100%;
        top: 0;
        left: 25px; /* Adjust for icon width center */
        transform: translateX(-50%);
    }
    
    .ma-step {
        display: flex;
        text-align: left;
        padding-left: 70px;
    }
    
    .ma-step-number {
        position: absolute;
        left: 0;
        top: 0;
    }
}
