/* ============================================
   Shape.Next — Global Design System (SN3)
   Based on DESIGN.md tokens
   ============================================ */

/* --- CSS Variables (Light Mode Default) --- */
:root {
    --color-bg: #F9F9F9;
    --color-bg-surface: #FFFFFF;
    --color-text-primary: #0B0748;
    --color-text-secondary: #555555;
    --color-accent: #E24A29;
    --color-brand-navy: #0B0748;
    --color-border: rgba(11, 7, 72, 0.08);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --max-width: 1200px;
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
    --color-bg: #080535;
    --color-bg-surface: #0F0B52;
    --color-text-primary: #EAEAEA;
    --color-text-secondary: #A0A0A0;
    --color-border: rgba(255, 255, 255, 0.08);
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.85; }

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(11, 7, 72, 0.06);
    transition: background 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(8, 5, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }

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

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-text-primary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

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

.btn-primary:hover { filter: brightness(1.1); opacity: 1; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    opacity: 1;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: border-color 0.2s;
}

.btn-icon:hover { border-color: var(--color-accent); }

#theme-toggle {
    display: none !important;
}
.btn-block { width: 100%; }

.btn-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover { text-decoration: underline; opacity: 1; }

/* --- Sections --- */
.section { padding: 100px 0; background: var(--color-bg-surface); }

.bg-surface { background: var(--color-bg); }

.section-header { margin-bottom: 3rem; }

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

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

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

/* --- Grid System --- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Cards --- */
.card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.card p { color: var(--color-text-secondary); font-size: 1rem; line-height: 1.6; }

/* --- Glass Card --- */
.glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* --- Hero Section --- */
/* --- Hero Cover (Background Image) --- */
.hero-cover {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('hero-bg.webp') center center / cover no-repeat;
    background-color: #f0f2f8;
}

.hero-cover-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-cover .hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    color: var(--color-brand-navy);
    line-height: 1.15;
}

.hero-cover .hero-subtitle {
    font-size: 1.1rem;
    color: #3a3a5c;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* --- Staggered Diagonal Value Props --- */
.stagger-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.stagger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stagger-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stagger-item:hover {
    transform: translateX(6px);
    box-shadow: -4px 0 20px rgba(226,74,41,0.1);
}

/* 3rd item centered on its own row */
.stagger-center {
    grid-column: 1 / -1;
    max-width: 430px;
    justify-self: center;
}

.stagger-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(226,74,41,0.15);
    line-height: 1;
    flex-shrink: 0;
    min-width: 50px;
}

.stagger-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226,74,41,0.08);
    border-radius: 10px;
    margin-top: 2px;
}

.stagger-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.stagger-body p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hero-scroll-hint {
    margin-top: 3rem;
    color: rgba(255,255,255,0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(8px); opacity: 0.8; }
}

/* --- Timeline (Problem Section) --- */
.timeline {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding-left: 44px;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), rgba(226,74,41,0.08));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-surface);
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 0 4px rgba(226,74,41,0.1);
    z-index: 1;
}

.timeline-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin: 0;
}
.diagnosis-grid {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.diagnosis-card {
    flex: 1;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.diagnosis-card:hover { transform: translateY(-4px); }

.card-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.traditional .card-header { background: rgba(100, 100, 100, 0.1); }

[data-theme="dark"] .traditional .card-header { background: rgba(100, 100, 100, 0.2); }

.proactive .card-header {
    background: rgba(226, 74, 41, 0.1);
    color: var(--color-accent);
}

.card-body { padding: 1.5rem; }

.comparison-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.comparison-item:last-child { border-bottom: none; }
.comparison-item strong { color: var(--color-text-primary); }

.vs-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    align-self: center;
}

.vs-circle img { width: 60px; height: 60px; object-fit: contain; }

/* --- Workflow / Model Section --- */
.workflow-image-wrapper { text-align: center; margin-bottom: 2rem; }
.workflow-image { max-width: 100%; height: auto; border-radius: var(--radius-lg); }

/* Light/Dark image toggle */
.dark-img { display: none; }
.light-img { display: block; }

[data-theme="dark"] .dark-img { display: block; }
[data-theme="dark"] .light-img { display: none; }

.workflow-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* --- Solution Cards --- */
.solution-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(226, 74, 41, 0.08);
}

.solution-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.solution-card p { color: var(--color-text-secondary); margin-bottom: 1rem; line-height: 1.6; }

/* --- Network Section --- */
.network-box {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
}

.network-highlight { font-size: 1.3rem; font-weight: 600; margin-bottom: 2rem; }
.network-image-wrapper { margin-bottom: 2rem; }
.network-image { max-width: 600px; width: 100%; height: auto; }

.network-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 0;
}

.network-list li {
    color: var(--color-text-secondary);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(226, 74, 41, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 74, 41, 0.15);
}

/* --- Team Cards --- */
.team-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 { font-size: 2.2rem; margin-bottom: 1rem; letter-spacing: -0.5px; }
.contact-info p { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; }
.highlight-text { color: var(--color-accent); font-weight: 600; font-size: 1.2rem; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Profile Pages --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--color-accent);
    flex-shrink: 0;
}

.profile-info h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.profile-info .title {
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.profile-info .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Responsive --- */
/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #FFFFFF;
        border-bottom: 1px solid rgba(11, 7, 72, 0.06);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 8px 24px rgba(11, 7, 72, 0.08);
    }
    [data-theme="dark"] .nav-links {
        background: rgba(8, 5, 53, 0.98);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 2rem; }
    .hero-cover .hero-title { font-size: 2.2rem; letter-spacing: -0.5px; }
    .hero-cover .hero-subtitle { font-size: 1rem; }
    .stagger-grid { grid-template-columns: 1fr; }
    .stagger-center { max-width: 100%; }
    .stagger-section { padding: 50px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .diagnosis-grid { flex-direction: column; }
    .vs-circle { align-self: center; margin: -1rem 0; z-index: 1; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-photo { width: 200px; height: 200px; }
    .profile-info h1 { font-size: 1.8rem; }
    .nav-actions .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-cover .hero-title { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.6rem; }
}

/* Çalışma Modeli 4-column grid responsive */
@media (max-width: 1024px) {
    .solutions-section [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .solutions-section [style*="grid-template-columns: repeat(4"],
    .solutions-section [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
}
