:root {
    --bg-white: #ffffff;
    --bg-ghost: #f8fafc;
    --bg-soft: #f1f5f9;
    --primary: #10b981; /* Green */
    --accent: #2563eb; /* Blue */
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --radius-md: 12px;
    --radius-lg: 24px;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Glassmorphism for Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

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

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

/* Modern Main Slider (Fade) */
.main-slider {
    position: relative;
    width: 100%;
    height: 650px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* İçerik altta */
    padding: 0 5% 100px;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 3;
}

.slide-content {
    position: relative;
    z-index: 4;
    text-align: left;
    max-width: 800px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.news-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide.active .news-title {
    animation: fadeInUp 0.8s both 0.3s;
}

.slide.active .news-tag {
    animation: fadeInUp 0.8s both 0.1s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-dot.active {
    background: white;
    width: 60px;
}

/* Bento Grid */
.bento-container {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
    position: relative;
    z-index: 10;
}

.bento-item {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.bento-large { grid-column: span 8; grid-row: span 2; }
.bento-small { grid-column: span 4; grid-row: span 1; }
.bento-medium { grid-column: span 4; grid-row: span 2; }

/* Sections */
section { padding: 100px 5%; }

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Preview Cards */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.preview-card {
    background: var(--bg-ghost);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.preview-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.btn {
    background-color: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: filter 0.3s;
}

.btn:hover { filter: brightness(1.1); }

/* Custom Library Preview */
.lib-stack {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.doc-mini {
    width: 60px;
    height: 80px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

/* Map & Dashboard Layout */
.main-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 74px);
    overflow: hidden;
}

.sidebar {
    width: 380px;
    background-color: var(--bg-white);
    border-right: 1px solid var(--border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    z-index: 10;
}

#map {
    flex: 1;
    width: 100%;
    z-index: 1;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: #ecfdf5;
    color: #065f46;
}

.badge.blue {
    background: #eff6ff;
    color: #1e40af;
}

/* Blog & News Layout */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-post {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.blog-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}

.blog-content {
    padding: 32px;
}

.blog-content h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.blog-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Library & Archive Layout */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.book-card {
    text-align: left;
}

.book-cover {
    height: 300px;
    background: linear-gradient(135deg, var(--bg-ghost) 0%, var(--bg-soft) 100%);
    border-radius: 4px 12px 12px 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-left: 8px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border);
    border-left-width: 8px;
}

.book-cover:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.book-title {
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 5%;
    text-align: center;
}
