:root {
    --primary-color: #8B0000;
    /* Deep Red / Crimson */
    --secondary-color: #D4AF37;
    /* Gold */
    --accent-color: #1a1a1a;
    /* Almost Black */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #faf9f6;
    /* Subtle geometric pattern */
    background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px), radial-gradient(#d4af37 0.5px, #faf9f6 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-blend-mode: multiply;
    opacity: 0.98;
    /* Subtle tint */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Fix for dark text on dark backgrounds in case of inherit issues */
.hero a,
.page-header a {
    color: var(--white);
}

ul {
    list-style: none;
}

/* Header */
/* Header */
header {
    background-color: var(--primary-color);
    /* Deep Red for premium look */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    border-bottom: 3px solid var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    /* Reduced vertical padding, standard horizontal */
    width: 100%;
    /* Full width */
    max-width: 100%;
    /* Ensure it spans */
    margin: 0;
    box-sizing: border-box;
    /* Include padding in width */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    /* White text on Red bg */
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 70px;
    margin-right: 15px;
    border-radius: 50%;
    /* Circular */
    border: 3px solid var(--secondary-color);
    /* Gold border */
    background-color: var(--white);
    /* Background for transparency if any */
}

/* Prevent overlapping on mid-size screens */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .nav-links {
        gap: 15px;
        /* Reduce gap on smaller desktops */
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    /* Gold underline */
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    /* White toggle */
}

/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    background-color: #4a0404;
    /* Dark Red Fallback */
    position: relative;
    /* Create stacking context */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    overflow: hidden;
}

/* Background Image on Pseudo-element */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/images/hero-bg-custom.jpg');
    /* Custom Hero Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(5px);
    /* Add Blur Effect */
    transform: scale(1.1);
    /* Prevent blur edges from showing */
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 1.5s ease-out;
    position: relative;
    /* Ensure content is above background */
    z-index: 1;
}

.hero-logo {
    width: 150px;
    margin-bottom: 2rem;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-featured-img {
    width: 300px;
    /* Larger width for photo */
    max-width: 90%;
    height: auto;
    margin-bottom: 2rem;
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    /* Soft corners instead of circle */
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    /* Increased padding */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%);
    /* Gradient Red */
    color: var(--white);
    border: none;
    border-radius: 50px;
    /* Full pill shape */
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
    /* Colored shadow */
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.6);
    background: linear-gradient(135deg, #a00000 0%, var(--primary-color) 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
    /* No shadow initially */
    text-shadow: none;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    /* Gold shadow */
    transform: translateY(-3px);
}

/* Page Headers (Global) */
/* Page Headers (Global) */
.page-header {
    background: linear-gradient(to right, #2c3e50, #4a4a4a);
    /* Dark Gray Gradient */
    height: 200px;
    /* Slightly reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    padding-top: 80px;
    /* Account for fixed header */
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid var(--secondary-color);
}



.page-header h1 {
    font-size: 2.2rem;
    /* Reduced font size */
    color: var(--secondary-color);
    /* Gold Text */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    /* Ensure centered */
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* Sections General */
section {
    padding: 80px 20px;
    width: 100%;
}

/* Constrain all direct children of sections to prevent ultra-wide layouts */
section>* {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 25%;
}

/* About Section */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.about-img {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--white);
}

.heritage-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 15px 25px;
    font-family: var(--font-heading);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

/* Features/Highlights */
/* Features/Highlights */
.features {
    background: linear-gradient(135deg, #fffbf0 0%, #fff5e6 100%);
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Add a decorative pattern overlay */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid var(--secondary-color);
    /* Thicker accent */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-col p {
    margin-bottom: 15px;
    color: #ccc;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.socials a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive Header / Mobile Menu */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 20px;
    }

    .menu-toggle {
        display: block;
        color: var(--secondary-color);
        /* Gold for visibility on Red header */
        font-size: 1.8rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        /* Red background matching header */
        border-bottom: 3px solid var(--secondary-color);
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--secondary-color);
        background-color: rgba(0, 0, 0, 0.1);
    }

    .nav-links a::after {
        display: none;
        /* Remove underline animation on mobile */
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
        /* clear reduction from 2.2rem */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-logo {
        width: 100px;
        /* Reduced from 150px */
        margin-bottom: 1.5rem;
    }

    .logo img {
        height: 50px;
        /* Reduced from 70px */
        margin-right: 10px;
    }

    .logo span {
        font-size: 0.8rem;
        /* Reduce logo text size on mobile */
        line-height: 1.2;
    }

    .btn {
        display: block;
        width: 85%;
        /* Reduced from 100% */
        margin: 10px auto;
        /* Centered with vertical spacing */
        padding: 12px 20px;
        /* Reduced padding */
        font-size: 0.95rem;
        /* Slightly smaller text */
        box-sizing: border-box;
    }

    .btn-secondary {
        margin-left: auto;
        /* Reset margins for centering */
        margin-right: auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Screenshots */
.app-screenshots {
    padding: 80px 20px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.screenshots-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.screenshots-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0 40px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshots-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.screenshot-item {
    flex: 0 0 auto;
    width: 280px;
    /* Sabit Genişlik */
    height: 606px;
    /* Sabit Uzunluk (1284x2778 oranına uygun) */
    scroll-snap-align: center;
    border-radius: 12px;
    /* Hafif yuvarlatılmış kavis */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Resmin büyük boyutunun kutuyu patlatmasını tamamen önle */
    max-width: 280px;
    min-width: 280px;
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    /* Görseli bozmadan sığdırır */
    object-position: top center;
    /* Taşma durumunda tam ortalayarak başlat */
    display: block;
    /* Resmi basıltut sürükle (dragndrop) davranışından korur */
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.animated-bounce-x {
    animation: bounceX 2s infinite;
}

@keyframes bounceX {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-10px);
    }

    60% {
        transform: translateX(10px);
    }
}

@media (max-width: 768px) {
    .screenshot-item {
        width: 240px;
        height: 519px;
    }
}