/*
Theme Name: Abdullahoglu Tema
Theme URI: https://ornek.com/
Author: Senin Adın veya Firma
Author URI: https://ornek.com/
Description: Abdullahoglu projesi için hazırlanan özel tema.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abdullahoglu
*/

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

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #12141a;
    --bg-tertiary: #191c24;
    --text-primary: #ffffff;
    --text-secondary: #a3abb8;
    --accent: #e63946; /* Premium Crimson Red */
    --accent-hover: #ff4d5a;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Poppins', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(10, 11, 13, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ============================================
   LIGHT MODE — CSS Variable Overrides
   ============================================ */
:root.light-mode {
    --bg-primary:    #c4c8d4;   /* cool medium-gray — not blinding */
    --bg-secondary:  #2a2e3a;   /* intentionally dark so white logos remain visible */
    --bg-tertiary:   #b8bcc9;
    --text-primary:  #12151f;
    --text-secondary:#3a4055;
    --border-color:  rgba(0, 0, 0, 0.12);
    --glass-bg:      rgba(180, 185, 200, 0.9);
    --glass-border:  rgba(0, 0, 0, 0.1);
}

/* ---- Body & page background ---- */
:root.light-mode body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ---- Navbar ---- */
:root.light-mode .navbar.scrolled {
    background-color: rgba(185, 190, 205, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

:root.light-mode .nav-menu-btn,
:root.light-mode .menu-text {
    color: #12151f;
}

:root.light-mode .hamburger-icon span {
    background-color: #12151f;
}

:root.light-mode .lang-btn {
    color: rgba(18, 21, 31, 0.45);
}
:root.light-mode .lang-btn.active {
    color: var(--accent);
}
:root.light-mode .lang-divider {
    color: rgba(18, 21, 31, 0.2);
}

/* ---- Slide-out Menu ---- */
:root.light-mode .side-menu {
    background: linear-gradient(135deg, #c8ccda 0%, #b8bcc9 100%);
}
:root.light-mode .side-menu-content .menu-link { color: #12151f; }
:root.light-mode .side-menu-content .menu-link:hover,
:root.light-mode .side-menu-content .menu-link.active { color: var(--accent); }
:root.light-mode .side-menu-content .side-menu-footer p { color: #3a4055; }
:root.light-mode .side-menu-content .social-icons a { color: #3a4055; }
:root.light-mode .close-overlay { color: #12151f; }

/* ---- Hero ---- */
:root.light-mode .hero-content .hero-subtitle { color: var(--accent); }
:root.light-mode .hero-title  { color: #ffffff; }   /* hero is always on video */
:root.light-mode .hero-description { color: rgba(255,255,255,0.85); }

/* ---- About section ---- */
:root.light-mode .about-section { background-color: var(--bg-primary); }
:root.light-mode .section-title { color: var(--text-primary); }
:root.light-mode .about-text    { color: var(--text-secondary); }
:root.light-mode .stat-label    { color: var(--text-secondary); }
:root.light-mode .stat-number   { color: var(--text-primary); }

/* Stat dividers */
:root.light-mode .stat-item:not(:last-child) {
    border-color: rgba(0,0,0,0.12);
}

/* ---- Brands section ---- */
:root.light-mode .brands-section { background-color: transparent; } /* keep parallax bg */

/* Keep cards dark so white logos remain legible */
:root.light-mode .brand-item-card {
    background-color: #1e212d;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
:root.light-mode .brand-item-card h3 { color: #ffffff; }
:root.light-mode .brand-item-card p  { color: rgba(255,255,255,0.6); }

:root.light-mode .brand-item-img-wrapper {
    background-color: rgba(18, 21, 31, 0.5);
    border-color: rgba(255,255,255,0.04);
}

:root.light-mode .brands-section .section-badge { color: var(--accent); }
:root.light-mode .brands-section .section-title  { color: #ffffff; }

/* ---- Category cards (hero bottom) — keep dark ---- */
:root.light-mode .category-card {
    background: rgba(18, 20, 24, 0.55);
}

/* ---- Footer — always dark for both modes ---- */
:root.light-mode .footer {
    background: linear-gradient(180deg, #0d0f16 0%, #12151f 100%);
    color: #ffffff;
}
:root.light-mode .footer h4            { color: #ffffff; }
:root.light-mode .footer p,
:root.light-mode .footer a,
:root.light-mode .footer-about         { color: rgba(255,255,255,0.65); }
:root.light-mode .footer a:hover       { color: var(--accent); }
:root.light-mode .footer-bottom        { border-top-color: rgba(255,255,255,0.06); }
:root.light-mode .footer-bottom p      { color: rgba(255,255,255,0.35); }
:root.light-mode .footer-socials a     { background: rgba(255,255,255,0.07); color: #fff; }

/* ---- Scrollbar ---- */
:root.light-mode ::-webkit-scrollbar-track { background: #b8bcc9; }
:root.light-mode ::-webkit-scrollbar-thumb { background: #7a8099; }

/* ---- Back to top button ---- */
:root.light-mode .back-to-top {
    background: rgba(180, 185, 200, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    color: #12151f;
}
:root.light-mode .back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

/* ---- History page ---- */
:root.light-mode .history-page-main    { background-color: var(--bg-primary); }
:root.light-mode .history-grid-card    {
    background-color: #1e212d;
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
:root.light-mode .hist-card-year       { color: #ffffff; }
:root.light-mode .hist-card-desc       { color: rgba(255,255,255,0.6); }
:root.light-mode .history-main-title   { color: var(--text-primary); }
:root.light-mode .history-header .section-badge { color: var(--accent); }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.55s ease, color 0.55s ease;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Utilities */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 5% 80px 5%;
}

.section-badge {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.section-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 1px;
    background-color: var(--accent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 18px 0;
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Menu Toggle Button */
.nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 8px 0;
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 22px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-menu-btn:hover .hamburger-icon span:first-child {
    transform: translateX(4px);
    background-color: var(--accent);
}

.nav-menu-btn:hover .hamburger-icon span:last-child {
    transform: translateX(-4px);
    background-color: var(--accent);
}

.nav-menu-btn:hover .menu-text {
    color: var(--accent);
}

.menu-text {
    transition: var(--transition-smooth);
}

/* Center Logo */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

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

.logo-img {
    height: 40px; /* Highly visible premium logo height */
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.4));
}

.side-menu-logo-img {
    height: 65px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 8px;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Overlays (Search & Slide Menu) */
.search-overlay, .side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.search-overlay {
    background-color: rgba(10, 11, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-overlay.active, .side-menu.active {
    opacity: 1;
    visibility: visible;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 5%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-overlay:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.search-box {
    display: flex;
    width: 90%;
    max-width: 600px;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.search-overlay.active .search-box {
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.5rem;
    padding-right: 40px;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-submit:hover {
    transform: translateY(-50%) translateX(5px);
}

/* Side Menu */
.side-menu {
    background-color: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    width: 50%;
    border-right: 1px solid var(--border-color);
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .side-menu {
        width: 100%;
        border-right: none;
        box-shadow: none;
    }
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 0 20px;
}

.side-menu-logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 50px;
}

.side-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.menu-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.menu-link:hover {
    color: var(--accent);
}

.menu-link:hover::after {
    width: 100%;
}

.side-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.side-menu-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 230px; /* Space for flush overlay cards at the bottom */
    overflow: hidden;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 11, 13, 0.4) 0%,
        rgba(10, 11, 13, 0.25) 50%,
        rgba(10, 11, 13, 0.6) 100%
    );
}

.hero-content {
    max-width: 900px;
    margin: 120px auto 0 0;
    padding: 0 5%;
    text-align: left;
    z-index: 10;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 0 40px 0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Category Cards */
.category-cards-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    z-index: 100;
}

.category-card {
    height: 230px;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background-color: rgba(18, 20, 24, 0.55); /* Translucent premium gray */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.category-card:last-child {
    border-right: none;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 120%, rgba(230, 57, 70, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
    transition: var(--transition-smooth);
    opacity: 0;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateZ(40px); /* 3D pop effect */
}

.brand-card-logo {
    max-width: 85%;
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Hover effects for logos */
.category-card:hover .brand-card-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.5));
}

.brand-card-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.category-card:hover .brand-card-sub {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.4);
}

.card-number, .card-title, .card-desc, .card-btn {
    display: none; /* Deactivated since logos are used instead of text */
}

/* Card Hover States */
.category-card:hover {
    background-color: rgba(230, 57, 70, 0.08); /* Glow red glass tint */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 -4px 0 0 var(--accent);
}

.category-card:hover .card-overlay {
    opacity: 1;
}

.category-card:hover .card-number {
    color: rgba(230, 57, 70, 0.25);
    transform: translateZ(20px);
}

.category-card:hover .card-title {
    color: var(--accent);
}

.category-card:hover .card-desc,
.category-card:hover .card-btn {
    opacity: 1;
    transform: translateY(0);
}

/* About Us Section */
.about-section {
    background-color: var(--bg-secondary);
    padding-top: 100px; /* Reset padding since cards are flush at the bottom of hero */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 300;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 5px;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.about-image-card:hover .about-img {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 70%;
    height: 70%;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

/* Featured Projects */
.projects-section {
    background-color: var(--bg-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.view-all-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}

.view-all-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
    gap: 12px;
}

/* Brands Section & Grid */
.brands-section {
    position: relative;
    background-image: url('assets/brands_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.brands-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 11, 13, 0.9) 0%, rgba(10, 11, 13, 0.75) 50%, rgba(10, 11, 13, 0.9) 100%);
    z-index: 1;
}

.brands-section .section-container {
    position: relative;
    z-index: 2;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.brand-item-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.brand-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 57, 70, 0.2);
}

.brand-item-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(18, 20, 24, 0.35); /* Subtle dark container for logos */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 25px;
    overflow: hidden;
}

.brand-item-img-wrapper img {
    max-width: 85%;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.brand-item-card:hover .brand-item-img-wrapper img {
    transform: scale(1.05);
}

.brand-item-info {
    padding: 25px;
}

.brand-item-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.brand-item-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

/* History / Timeline Section */
.history-section {
    background-color: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid var(--bg-secondary);
    top: 28px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: inline-block;
    max-width: 100%;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.project-card:hover .project-card-overlay {
    background: rgba(10, 11, 13, 0.1);
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.brand-col .footer-logo {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-about {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.links-col h4, .contact-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.links-col h4::after, .contact-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col ul a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.links-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-col p i {
    color: var(--accent);
    margin-top: 4px;
}

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

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}


/* -------------------------------------------------------------
 * Responsive Design (Breakpoints)
 * ------------------------------------------------------------- */

/* Large Tablets & Small Laptops */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    /* Removed cards overrides to keep them flush */
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: span 2;
    }
}

/* Timeline specific responsive breakpoint */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }
}

/* Mobile Screens */
@media (max-width: 600px) {
    .navbar {
        padding: 20px 0;
    }

    .logo-text-bold {
        font-size: 1.3rem;
    }

    .logo-text-sub {
        display: none;
    }

    .logo-text-divider {
        display: none;
    }

    .menu-text {
        display: none;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px auto;
    }

    .category-cards-container {
        grid-template-columns: 1fr;
        position: relative;
        left: 0;
        width: 100%;
        padding: 0;
        bottom: 0;
        margin-top: 0;
    }

    .category-card {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .category-card:last-child {
        border-bottom: none;
    }

    .hero-section {
        padding-bottom: 60px;
        min-height: auto;
        height: auto;
    }

    .video-background-container {
        height: 100%;
    }

    .about-section {
        padding-top: 80px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-item-img-wrapper {
        height: 180px;
    }

    .brand-item-info {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* History Page Grid Layout (Yelkenci Dönüm Noktaları) */
.history-page-main {
    padding-top: 140px;
    background-color: var(--bg-primary);
}

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

.history-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 10px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.history-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.history-grid-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition-smooth);
}

.history-grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.hist-card-img-box {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-tertiary);
}

.hist-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.history-grid-card:hover .hist-card-img-box img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.hist-card-text-box {
    display: flex;
    flex-direction: column;
}

.hist-card-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.hist-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* History Responsive Adjustments */
@media (max-width: 1100px) {
    .history-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .history-main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 650px) {
    .history-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .history-grid-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hist-card-img-box {
        width: 100%;
        height: 200px;
    }
}

/* History Fallback Icons */
.hist-fallback-icon {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, rgba(18, 20, 26, 0.6) 100%);
    border-radius: 6px;
    font-size: 2.2rem;
    color: var(--accent);
    box-shadow: inset 0 0 20px rgba(230, 57, 70, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.history-grid-card:hover .hist-fallback-icon {
    color: #ffffff;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.25) 0%, rgba(18, 20, 26, 0.8) 100%);
    box-shadow: inset 0 0 30px rgba(230, 57, 70, 0.25), 0 0 15px rgba(230, 57, 70, 0.2);
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
    border-color: rgba(230, 57, 70, 0.3);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(23, 24, 28, 0.85);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s, border-color 0.3s, color 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
}

/* 30. Yıl Button & Modal Slider Styles */
.hero-30year-btn {
    position: absolute;
    left: 5%;
    bottom: 260px; /* Positioned elegantly above the category cards (which are 230px tall) */
    width: 95px;
    height: 95px;
    background: rgba(18, 20, 24, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: 50%; /* Perfectly circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 57, 70, 0.1);
}

.hero-30year-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(230, 57, 70, 0.3);
}

.btn-30year-img {
    width: 60px; /* Balanced size inside the circle */
    height: auto;
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    background-color: #121316;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(230, 57, 70, 0.15);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(18, 20, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.modal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 20, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.slider-nav-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--accent);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95vw;
        height: 70vh;
    }
    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }
}

/* ============================================
   THEME TOGGLE — Fixed Left-Center Button
   ============================================ */

/* Particle Canvas Overlay */
#theme-particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#theme-particles-canvas.active {
    opacity: 1;
}

/* Toggle Track */
.theme-toggle-track {
    position: fixed;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    user-select: none;
}

/* Label text top / bottom */
.theme-toggle-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    transition: color 0.4s ease, opacity 0.4s ease;
    opacity: 0.55;
    text-transform: uppercase;
}

.theme-toggle-label.top {
    transform: rotate(180deg);
}

/* The pill track + button */
.theme-toggle-pill {
    position: relative;
    width: 44px;
    height: 90px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

:root.light-mode .theme-toggle-pill {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* The sliding knob inside the pill */
.theme-toggle-knob {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #ccd0d8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.1);
    transition: top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s ease, box-shadow 0.45s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Knob icon */
.theme-toggle-knob::before {
    content: '🌙';
    font-size: 13px;
    line-height: 1;
    transition: content 0.3s ease;
}

:root.light-mode .theme-toggle-knob {
    top: calc(90px - 7px - 28px); /* slide to bottom */
    background: linear-gradient(135deg, #ffe066, #ffb830);
    box-shadow: 0 2px 14px rgba(255, 180, 0, 0.5), 0 0 0 2px rgba(255,200,0,0.2);
}

:root.light-mode .theme-toggle-knob::before {
    content: '☀️';
}

/* Glow ring pulse */
.theme-toggle-pill::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 33px;
    background: transparent;
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
}

.theme-toggle-pill:hover::after {
    border-color: rgba(230, 57, 70, 0.35);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

:root.light-mode .theme-toggle-label {
    color: var(--text-secondary);
}

/* Thin decorative line connectors */
.theme-toggle-line {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
    border-radius: 1px;
    transition: background 0.4s ease;
}

:root.light-mode .theme-toggle-line {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}


/* =======================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   Breakpoints: 1200 / 900 / 768 / 480 / 360
   ======================================================= */

/* ---------- 1200px — Large tablets / small laptops ---------- */
@media (max-width: 1200px) {
    .section-container { padding: 80px 6% 60px; }

    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 0.8rem; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-wrapper { max-width: 580px; margin: 0 auto; }

    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

    .history-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .history-main-title { font-size: 2.6rem; }
}

/* ---------- 900px — Tablets ---------- */
@media (max-width: 900px) {
    .section-container { padding: 70px 5% 50px; }

    /* Navbar */
    .navbar { padding: 22px 0; }
    .navbar-container { padding: 0 5%; }
    .menu-text { font-size: 0.75rem; letter-spacing: 2px; }

    /* Hero */
    .hero-title { font-size: 2.6rem; }
    .hero-description { font-size: 1rem; }
    .hero-content { padding: 0 5%; }

    /* Category Cards */
    .category-cards-container {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    .category-card { height: 180px; }

    /* About */
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .stat-number { font-size: 2.2rem; }

    /* Brands */
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: span 2; }

    /* Theme toggle — hide labels on mid-size */
    .theme-toggle-label { display: none; }
    .theme-toggle-line { height: 10px; }
}

/* ---------- 768px — Mobile landscape / small tablets ---------- */
@media (max-width: 768px) {
    .section-container { padding: 60px 5% 40px; }

    /* Navbar */
    .navbar { padding: 18px 0; }
    .logo-img { height: 36px; }
    .menu-text { display: none; }  /* keep only hamburger icon */

    /* Language switcher — smaller on mobile */
    .lang-switcher { gap: 4px; }
    .lang-btn { font-size: 0.72rem; padding: 5px 6px; }

    /* Hero — keep relative so absolute children anchor to it */
    .hero-section {
        min-height: 100dvh;
        position: relative;
        padding-bottom: 290px; /* 2 rows × 140px + gap buffer */
    }
    .hero-content {
        padding: 0 5%;
        text-align: center;
        position: relative;
        z-index: 5;
        margin: 0 auto;       /* override desktop left-margin */
        max-width: 100%;
    }
    .hero-title { font-size: 2.1rem; line-height: 1.25; }
    .hero-subtitle { font-size: 0.72rem; letter-spacing: 3px; }
    .hero-description { font-size: 0.92rem; max-width: 480px; margin: 0 auto; }

    /* Category Cards — pinned to very bottom of hero */
    .category-cards-container {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 0;
        z-index: 100;
    }
    .category-card {
        height: 140px;
        border-right: 1px solid rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .category-card:nth-child(2n) { border-right: none; }
    .category-card:nth-child(3),
    .category-card:nth-child(4) { border-bottom: none; }

    /* 30 yıl button — just above the cards, left side */
    .hero-30year-btn {
        position: absolute;
        left: 16px;
        bottom: 292px; /* 2 card rows = 280px + 12px gap */
        transform: none;
        width: 78px;
        height: 78px;
    }
    .brand-card-logo { max-height: 38px; }

    /* About */
    .about-grid { gap: 35px; }
    .section-title { font-size: 1.9rem; }
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-number { font-size: 1.9rem; }
    .stat-label { font-size: 0.7rem; }

    /* Brands */
    .brands-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .brand-item-img-wrapper { height: 130px; padding: 18px; }
    .brand-item-info { padding: 16px; }
    .brand-item-info h3 { font-size: 0.95rem; }
    .brand-item-info p { font-size: 0.82rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .brand-col { grid-column: span 1; }
    .footer-col h4 { font-size: 0.9rem; }
    .footer-col ul li { margin-bottom: 8px; }
    .footer-about { font-size: 0.85rem; }

    /* History page */
    .history-page-main { padding-top: 120px; }
    .history-main-title { font-size: 2rem; }
    .history-cards-grid { grid-template-columns: 1fr; gap: 18px; }
    .history-grid-card { flex-direction: column; }
    .hist-card-img-box { width: 100%; height: 190px; }

    /* Theme toggle — compact pill, no labels */
    .theme-toggle-track {
        left: 12px;
        gap: 8px;
    }
    .theme-toggle-pill { width: 38px; height: 76px; }
    .theme-toggle-knob { width: 24px; height: 24px; }
    :root.light-mode .theme-toggle-knob { top: calc(76px - 7px - 24px); }
    .theme-toggle-label,
    .theme-toggle-line { display: none; }

    /* Back to top */
    .back-to-top-btn { right: 16px; bottom: 20px; width: 44px; height: 44px; font-size: 1rem; }

    /* Timeline */
    .timeline::after { left: 16px; }
    .timeline-item { width: 100%; padding-left: 44px; padding-right: 0; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 8px; right: auto; }
}

/* ---------- 480px — Phones ---------- */
@media (max-width: 480px) {
    .section-container { padding: 50px 4% 36px; }

    /* Navbar */
    .navbar { padding: 15px 0; }
    .navbar-container { padding: 0 4%; }

    /* Hero */
    .hero-section { padding-bottom: 250px; } /* 2 rows × 120px card + buffer */
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { display: none; }  /* too cramped */
    .hero-description { font-size: 0.88rem; }

    /* 30 yıl button — just above cards, left side */
    .hero-30year-btn {
        left: 14px;
        bottom: 252px; /* 2 × 120px + 12px buffer */
        width: 70px;
        height: 70px;
    }
    .btn-30year-img { width: 48px; }

    /* Category cards — 2×2 grid, cards shorter */
    .category-cards-container { grid-template-columns: repeat(2, 1fr); }
    .category-card { height: 120px; }
    .brand-card-logo { max-height: 30px; }

    /* Stats — single column on very small screens */
    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.65rem; letter-spacing: 0; }

    /* Brands — stack to 1 col */
    .brands-grid { grid-template-columns: 1fr; gap: 14px; }
    .brand-item-img-wrapper { height: 110px; }

    /* Section titles */
    .section-title { font-size: 1.65rem; }
    .section-badge { font-size: 0.7rem; letter-spacing: 2px; }

    /* History */
    .history-main-title { font-size: 1.65rem; letter-spacing: -0.5px; }
    .hist-card-img-box { height: 160px; }

    /* Modal */
    .modal-container { width: 98vw; height: 75vh; }
    .slider-nav-btn { width: 38px; height: 38px; font-size: 0.9rem; }
    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }

    /* About image */
    .about-image-card { border-radius: 12px; }
    .about-image-wrapper { max-width: 100%; }

    /* Footer */
    .footer-socials { gap: 10px; }
    .footer-socials a { width: 36px; height: 36px; font-size: 0.85rem; }

    /* Theme toggle */
    .theme-toggle-track { left: 8px; }
    .theme-toggle-pill { width: 34px; height: 68px; }
    .theme-toggle-knob { width: 22px; height: 22px; font-size: 11px; top: 6px; }
    :root.light-mode .theme-toggle-knob { top: calc(68px - 6px - 22px); }
}

/* ---------- 360px — Very small phones ---------- */
@media (max-width: 360px) {
    .section-container { padding: 44px 3.5% 30px; }

    .hero-title { font-size: 1.6rem; }
    .hero-description { font-size: 0.82rem; }

    .category-cards-container { grid-template-columns: repeat(2, 1fr); }
    .category-card { height: 100px; }

    .brands-grid { gap: 10px; }
    .brand-item-img-wrapper { height: 95px; padding: 12px; }

    .section-title { font-size: 1.45rem; }

    /* Collapsed footer */
    .footer { padding: 40px 0 24px; }

    /* Very tight toggle */
    .theme-toggle-pill { width: 30px; height: 60px; }
    .theme-toggle-knob { width: 20px; height: 20px; font-size: 10px; top: 5px; }
    :root.light-mode .theme-toggle-knob { top: calc(60px - 5px - 20px); }
}

/* ---------- Touch device improvements ---------- */
@media (hover: none) and (pointer: coarse) {
    /* Bigger tap targets */
    .lang-btn { padding: 8px 10px; }
    .nav-menu-btn { padding: 8px; }
    .back-to-top-btn { width: 50px; height: 50px; }

    /* Disable hover transforms that feel wrong on touch */
    .brand-item-card:hover { transform: none; }
    .hero-30year-btn:hover { transform: none; }
    .theme-toggle-pill:hover::after { border-color: transparent; }
}

/* ---------- Landscape phones — special fix ---------- */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section { min-height: auto; height: 100dvh; }
    .hero-content { padding-top: 80px; }
    .hero-title { font-size: 1.9rem; }
    .category-cards-container {
        grid-template-columns: repeat(4, 1fr);
        height: 120px;
    }
    .category-card { height: 120px; }
}
