:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --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);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 10%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#languageSelector {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

#languageSelector:hover {
    border-color: var(--primary);
}

.ad-container {
    text-align: center;
    margin: 2rem auto;
    width: 100%;
    max-width: 1200px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-ad {
    margin-top: 1.5rem;
}

.responsive-ad {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .top-ad {
        display: none; /* Mobil cihazlarda çok büyük reklamları gizlemek veya esnek olanla değiştirmek gerekebilir */
    }
    .ad-container {
        margin: 1rem auto;
    }
}

main {
    flex: 1;
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.workspace {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.workspace h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.upload-area {
    margin: 2rem auto;
    max-width: 500px;
    padding: 3rem;
    border: 3px dashed #e2e8f0;
    border-radius: 24px;
    transition: all 0.3s;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: #f1f5f9;
    transform: translateY(-2px);
}

.upload-icon {
    color: var(--primary);
    opacity: 0.6;
    transition: transform 0.3s;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    opacity: 1;
}

.file-name-display {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    word-break: break-all;
}

input[type="file"][hidden] {
    display: none !important;
}

.upload-btn, .download-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    border: none;
}

.upload-btn:hover, .download-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.download-btn {
    background: var(--secondary);
    box-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.4);
    margin-top: 1.5rem;
}

.download-btn:hover {
    background: #db2777;
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.4);
}

#statusMsg {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.content-section {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.content-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.content-card h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.steps-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.info-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.faq-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.faq-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

footer {
    background: var(--white);
    color: var(--text-muted);
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    main { padding: 2rem 5%; }
    header { padding: 1rem 5%; }
}