* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-light: #1B5448;
    --primary-dark: #49C0FF;
    --secondary-light: #FF7F3F;
    --secondary-dark: #EC3B80;
    --bg-light: #F3F3F3;
    --bg-dark: #27283D;
    --text-light: #333333;
    --text-dark: #E6E6E6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

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

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

body.dark header {
    background: #2D2D47;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
    text-decoration: none;
}

body.dark .logo {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.theme-toggle {
    background: none;
    border: 2px solid currentColor;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-light);
}

body.dark .theme-toggle {
    color: var(--text-dark);
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Language Toggle Switch */
.lang-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
}

.lang-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lang-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    border-radius: 34px;
    overflow: visible;
    border: 2px solid #ddd;
}

body.dark .lang-slider {
    border-color: #555;
}

/* UK Flag (English) - default state */
.lang-slider {
    background-image: url('YigitAkture.github.io/assets/uk-flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Turkish Flag when checked */
input:checked + .lang-slider {
    background-image: url('YigitAkture.github.io/assets/tr-flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* White slider circle - moves when toggled */
.lang-slider .slider-circle {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .lang-slider .slider-circle {
    transform: translateX(36px);
}

.lang-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    min-width: 25px;
    transition: all 0.3s;
}

body.dark .lang-label {
    color: var(--text-dark);
}

.lang-label.active {
    color: var(--primary-light);
    transform: scale(1.1);
}

body.dark .lang-label.active {
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .hero h1 {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.app-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-light);
    color: white;
}

body.dark .btn-primary {
    background: var(--primary-dark);
    color: #27283D;
}

.btn-secondary {
    background: var(--secondary-light);
    color: white;
}

body.dark .btn-secondary {
    background: var(--secondary-dark);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

body.dark .features {
    background: #2D2D47;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.3s;
}

body.dark .feature-card {
    background: #41415D;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Screenshots Section */
.screenshot-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem 0.5rem; 
}

.screenshot-label {
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
    padding: 1rem;
}

.screenshots {
    padding: 4rem 0;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.screenshot-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: white;
}

body.dark .screenshot-card {
    background: #2D2D47;
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Policy Specific Styles */
.policy-wrapper {
    padding: 2rem 0 4rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

body.dark .back-link {
    color: var(--primary-dark);
}

.back-link:hover {
    transform: translateX(-5px);
}

.policy-nav {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

body.dark .policy-nav {
    background: #2D2D47;
}

.policy-nav h2 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

body.dark .policy-nav h2 {
    color: var(--primary-dark);
}

.policy-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.policy-tab {
    background: var(--bg-light);
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

body.dark .policy-tab {
    background: #41415D;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.policy-tab:hover {
    transform: translateY(-2px);
}

.policy-tab.active {
    background: var(--primary-light);
    color: white;
}

body.dark .policy-tab.active {
    background: var(--primary-dark);
    color: #27283D;
}

.policy-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
}

body.dark .policy-content {
    background: #2D2D47;
}

.policy-content.active {
    display: block;
}

.policy-content h1 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

body.dark .policy-content h1 {
    color: var(--primary-dark);
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-light);
}

body.dark .policy-content h2 {
    color: var(--secondary-dark);
}

.policy-content p, .policy-content li {
    margin-bottom: 1rem;
    text-align: justify;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content em {
    display: block;
    margin-top: 2rem;
    font-style: italic;
    opacity: 0.8;
}

.consent-notice {
    background: linear-gradient(135deg, rgba(27, 84, 72, 0.1), rgba(255, 127, 63, 0.1));
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-light);
}

body.dark .consent-notice {
    background: linear-gradient(135deg, rgba(73, 192, 255, 0.1), rgba(236, 59, 128, 0.1));
    border-left-color: var(--primary-dark);
}

.lang-section {
    display: none;
}

.lang-section.active {
    display: block;
}

/* Footer */
footer {
    background: var(--primary-light);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

body.dark footer {
    background: #1a1a2e;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

.content-section {
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Header adjustments */
    header {
        padding: 0.75rem 0;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        width: 40px !important;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .lang-toggle-container {
        gap: 0.3rem;
    }

    .lang-switch {
        width: 60px;
        height: 30px;
    }

    .lang-slider .slider-circle {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 2px;
    }

    input:checked + .lang-slider .slider-circle {
        transform: translateX(30px);
    }

    .lang-label {
        font-size: 0.8rem;
    }

    .theme-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    .download-buttons {
        gap: 0.75rem;
        padding: 0 10px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Features section */
    .features {
        padding: 2rem 0;
    }

    .features h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

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

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Screenshots section */
    .screenshots {
        padding: 2rem 0;
    }

    .screenshots h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

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

    .screenshot-image {
        padding: 1rem 0.5rem;
    }

    .screenshot-label {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    /* Policy pages */
    .policy-wrapper {
        padding: 1.5rem 0 2rem;
    }

    .back-link {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .policy-nav {
        padding: 1.5rem;
    }

    .policy-nav h2 {
        font-size: 1.5rem;
    }

    .policy-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .policy-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .policy-content {
        padding: 1.25rem;
    }

    .policy-content h1 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .policy-content h2 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }

    .policy-content p, 
    .policy-content li {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .policy-content ul {
        margin-left: 1.5rem;
    }

    .consent-notice {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
    .content-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .app-icon {
        width: 100px;
        height: 100px;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .features h2,
    .screenshots h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .policy-content h1 {
        font-size: 1.25rem;
    }

    .policy-content h2 {
        font-size: 1.1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }

    .app-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}