:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #ff006e;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #38b000;
    --warning: #ffbe0b;
    --danger: #d90429;
    --gray: #6c757d;
    --gray-light: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Kısmı */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span.highlight {
    color: var(--primary);
}

.logo .beta-label {
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 10px;
    letter-spacing: 1px;
    vertical-align: top;
    position: relative;
    top: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Ana içerik kısmı */
main {
    flex: 1;
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Yükleme alanı kısmı */
.upload-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: rgba(58, 134, 255, 0.03);
}

.upload-area.drag-over {
    border-color: var(--primary);
    background-color: rgba(58, 134, 255, 0.08);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.upload-text h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.upload-text p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.browse-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.browse-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.browse-btn:active {
    transform: translateY(0);
}

.preview-container {
    display: none;
    margin-top: 1.5rem;
}

.preview-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.file-name {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.remove-file {
    background-color: transparent;
    color: var(--danger);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.analyze-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.analyze-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.analyze-btn:active {
    transform: translateY(-1px);
}

.analyze-btn:disabled {
    background-color: var(--gray-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.analyze-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.analyze-btn.loading .spinner {
    display: inline-block;
}

.analyze-btn.loading .btn-text {
    display: none;
}

/* Sonuç Bölümü Kısmı */
.result-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-container.active {
    opacity: 1;
    transform: translateY(0);
}

.result-header {
    padding: 1rem;
    color: white;
    text-align: center;
}

.result-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.result-content {
    padding: 1.5rem;
}

.result-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-icon {
    font-size: 2.5rem;
}

.result-details h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-details p {
    color: var(--gray);
    margin: 0;
}

.probability-bars {
    margin-top: 1.5rem;
}

.probability-item {
    margin-bottom: 1rem;
}

.probability-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.probability-bar {
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Özellikler kısmı */
.features {
    margin-top: 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    display: none !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-section h2 {
    margin-top: 50px; /* İstediğiniz kadar boşluk */
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Footer Yapısı */
footer {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span.highlight {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Yapı */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .result-main {
        flex-direction: column;
        text-align: center;
    }
}

/* İletişim Sayfası Stilleri */
.contact-section {
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-light);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 4px 16px rgba(58, 134, 255, 0.12);
    color: var(--primary);
}

.contact-icon {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background-color: var(--primary);
    color: white;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.about-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    margin-top: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}



@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .about-section {
        padding: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}
