/* ===== CSS Variables ===== */
:root {
    --primary-color: #E65100;
    --primary-dark: #BF360C;
    --primary-light: #FF8A65;
    --secondary-color: #0277BD;
    --secondary-light: #4FC3F7;
    --dark-color: #263238;
    --gray-dark: #455A64;
    --gray: #78909C;
    --gray-light: #CFD8DC;
    --white: #FFFFFF;
    --bg-light: #FAFAFA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;

    /* Light Mode (default) */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-primary: #263238;
    --text-secondary: #455A64;
    --text-muted: #78909C;
    --border-color: #CFD8DC;
    --header-bg: #FFFFFF;
    --footer-bg: #263238;
    --footer-text: #CFD8DC;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2940;
    --text-primary: #ECEFF1;
    --text-secondary: #B0BEC5;
    --text-muted: #78909C;
    --border-color: #37474F;
    --header-bg: #1a1a2e;
    --footer-bg: #0f0f1a;
    --footer-text: #B0BEC5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --gray-light: #37474F;
}

/* ===== Theme Switch ===== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.theme-icon {
    font-size: 1.2rem;
    margin: 0 8px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

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

/* ===== Header ===== */
.header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

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

.nav-menu a {
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 0;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 180px 0 120px;
    margin-top: 70px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.features-grid {
    display: flex;
    flex-direction: row;          /* Compose'daki Row gibi davranır */
    justify-content: space-evenly; /* Öğelerin arasını ve kenarlarını eşit boşluk bırakır */
    align-items: center;          /* Dikeyde hizalama (Alignment.CenterVertically gibi) */
    width: 100%;                  /* Tüm satırı kaplaması için */
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

/* ===== Services Preview ===== */
.services-preview {
    padding: 100px 0;
}

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

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== Products Preview ===== */
.products-preview {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

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

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.placeholder-icon {
    font-size: 4rem;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.product-card p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #01579B 100%);
    padding: 80px 0;
    color: var(--white);
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-col p {
    color: var(--gray-light);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--gray-light);
}

.footer-col ul a:hover {
    color: var(--primary-light);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gray-light);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 30px;
    text-align: center;
    color: var(--gray);
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 140px 0 60px;
    margin-top: 70px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== Products Page ===== */
.products-section {
    padding: 80px 0;
}

/* Products Accordion/Dropdown */
.products-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-dropdown {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.product-dropdown-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.product-dropdown-header:hover {
    background-color: var(--bg-secondary);
}

.product-dropdown-header .dropdown-icon {
    font-size: 2rem;
}

.product-dropdown-header h3 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.product-dropdown-header .dropdown-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.product-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.product-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: var(--bg-secondary);
}

.product-dropdown:hover .product-dropdown-content,
.product-dropdown.active .product-dropdown-content {
    max-height: 800px;
    padding: 25px;
}

.product-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.product-dropdown-content .products-full-grid {
    margin: 0;
}

/* Legacy products-category (keeping for compatibility) */
.products-category {
    margin-bottom: 60px;
}

.products-category h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.products-full-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card-full {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-full .product-image {
    height: 180px;
}

.product-card-full h3 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
}

.product-card-full p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
}

/* ===== Services Page ===== */
.services-list-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.services-list-section .services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-card-link {
    text-decoration: none;
}

.service-card-link .service-card {
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
}

.service-card-link .service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card-link .service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-detail-header .service-icon-img {
    width: 70px;
    height: 70px;
    margin: 0;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.service-card-link h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.services-section {
    padding: 80px 0;
}

/* Service Detail Cards */
.service-detail-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    overflow: hidden;
    scroll-margin-top: 120px;
}

.service-detail-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-icon-large {
    font-size: 3rem;
}

.service-detail-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.service-detail-content {
    padding: 30px;
}

.service-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-detail-content ul {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-detail-content ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail-content ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
}

/* Legacy service-full-card (keeping for compatibility) */
.service-full-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding: 50px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-full-card:nth-child(even) {
    direction: rtl;
}

.service-full-card:nth-child(even) > * {
    direction: ltr;
}

.service-full-card .service-icon {
    font-size: 5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    padding: 60px;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-content ul {
    margin-bottom: 25px;
}

.service-content ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-content ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
}

/* ===== About Page ===== */
.about-section {
    padding: 80px 0;
}

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

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-placeholder {
    background-color: var(--bg-light);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed var(--gray-light);
}

.about-placeholder p {
    color: var(--gray);
    font-style: italic;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 15px;
    border-radius: var(--border-radius);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-map {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--gray);
}

.map-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 768px) {
    .theme-switch-wrapper {
        margin-left: 10px;
    }

    .theme-switch {
        width: 50px;
        height: 26px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
    }

    input:checked + .slider:before {
        transform: translateX(24px);
    }

    .theme-icon {
        font-size: 1rem;
        margin: 0 5px;
    }

    .logo-img {
        height: 85px;
    }

    .footer-logo-img {
        height: 95px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

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

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

    .features-grid,
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .services-list-section .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-detail-content ul {
        grid-template-columns: 1fr;
    }

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

    .product-dropdown-header h3 {
        font-size: 1.1rem;
    }

    .product-dropdown-header .dropdown-icon {
        font-size: 1.5rem;
    }

    .service-full-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .service-full-card:nth-child(even) {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .section-header h2,
    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .products-full-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
