@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --brand-primary: #e10e1e;
    /* Vibrant Red */
    --brand-secondary: #ffffff;
    /* Pure White */
    --brand-dark: #0f1115;
    /* Dark background */
    --brand-gray: #1a1d24;
    /* Lighter dark for cards */
    --text-main: #ffffff;
    --text-muted: #a0aabf;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--brand-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-primary);
    transition: width var(--transition-speed);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--brand-primary);
    color: var(--brand-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

.btn-contact:hover {
    background-color: transparent;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background: url('../images/hero.png') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 17, 21, 1) 0%, rgba(15, 17, 21, 0.7) 50%, rgba(15, 17, 21, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--brand-secondary);
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--brand-primary), #b82a36);
    color: var(--brand-secondary);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
}

/* Services Section */
.services {
    padding: 100px 5%;
    background-color: var(--brand-dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--brand-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 57, 70, 0.3);
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-img-wrapper {
    overflow: hidden;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--brand-secondary);
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--brand-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-speed);
}

.service-card:hover .service-link {
    gap: 12px;
}

/* About Section */
.about {
    padding: 100px 5%;
    background-color: var(--brand-dark);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    font-size: 1.1rem;
    color: var(--brand-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

/* Stats Section */
.stats {
    padding: 60px 5%;
    background: linear-gradient(to right, var(--brand-primary), #b82a36);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-secondary);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #08090b;
    padding: 60px 5% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    display: inline-block;
}

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

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.2rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-link svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.contact-link:hover svg {
    color: var(--brand-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.developer-logo {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.3; /* Solgun görünüm */
}

.developer-logo img {
    height: 18px;
    width: auto;
    display: block;
}

.developer-logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Premium Design */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--brand-secondary);
    cursor: pointer;
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(15, 17, 21, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2001;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), #ff4757, #ff7e8a);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-links a::after {
    content: '→';
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--brand-primary);
}

.mobile-nav-links a:hover {
    background: rgba(225, 14, 30, 0.08);
    border-color: rgba(225, 14, 30, 0.2);
    color: var(--brand-primary);
    transform: translateX(8px);
}

.mobile-nav-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Daha karanlık (0.6 -> 0.8) */
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px); /* Daha yoğun blur (4px -> 8px) */
    -webkit-backdrop-filter: blur(8px);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-links,
    .btn-contact {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

/* -----------------------------
   Light Mode Overrides
----------------------------- */
html.light-mode {
    --brand-dark: #f0f2f5;
    --brand-gray: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --brand-secondary: #000000;
}

html.light-mode body {
    background-color: var(--brand-dark);
}

html.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .hero::before {
    background: linear-gradient(90deg, rgba(240, 242, 245, 1) 0%, rgba(240, 242, 245, 0.8) 50%, rgba(240, 242, 245, 0.3) 100%);
}

html.light-mode footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .service-card, 
html.light-mode .product-card, 
html.light-mode .contact-form-container, 
html.light-mode .contact-info-card, 
html.light-mode .filter-sidebar {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

html.light-mode .filter-group select, 
html.light-mode .form-group input, 
html.light-mode .form-group textarea {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

html.light-mode .filter-group select:focus, 
html.light-mode .form-group input:focus, 
html.light-mode .form-group textarea:focus {
    border-color: var(--brand-primary);
}

html.light-mode .category-tab {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

html.light-mode .category-tab.active {
    background: var(--brand-primary);
    color: #ffffff; /* Explicit white for active tab */
    border-color: var(--brand-primary);
}

html.light-mode .product-price-action {
    border-top: 1px solid rgba(0,0,0,0.1);
}

html.light-mode .page-header::before {
    background: rgba(240, 242, 245, 0.85);
}

html.light-mode .mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .mobile-nav-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .mobile-nav-links a {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html.light-mode .mobile-close-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

/* Floating Theme Toggle Button */
.theme-toggle-floating {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--brand-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(225, 14, 30, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.1);
}

.theme-toggle-floating:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 14, 30, 0.6);
}

.theme-toggle-floating svg {
    width: 24px;
    height: 24px;
    transition: transform 0.5s ease;
}

html.light-mode .theme-toggle-floating {
    background: var(--brand-dark); /* Using light background color for button */
    color: var(--brand-primary); /* Red icon on light mode */
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

html.light-mode .theme-toggle-floating:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

html.light-mode .developer-logo img {
    filter: invert(1) opacity(0.6);
}

html.light-mode .stat-number {
    color: #ffffff;
}

html.light-mode .btn-primary,
html.light-mode .btn-buy:hover {
    color: #ffffff;
}