/* Reset and Base Styles */
* {
    margin: auto;
    padding: 1px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Medya elemanları taşma yapmasın */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    /* Ensure outline variant (secondary) doesn't change height */
    border: 2px solid transparent;
    box-sizing: border-box;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

/* Hero button alignment & variant normalization */
.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* remove extra vertical variance */
    min-height: 46px;
    /* fixed visual height */
    padding: 12px 26px;
    /* consistent */
}

/* Secondary button inside hero: white outline version for contrast */
.hero .btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-secondary:hover {
    background: #ffffff;
    color: #2563eb;
    border-color: #ffffff;
}

/* Ensure primary also keeps fixed height if font changes */
.hero .btn-primary {
    min-height: 46px;
}

/* Remove focus outline jump */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* Education Grid (Yeni Stil) */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-left: 4px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    /* adjust if needed */
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-left-color: #2563eb;
}

.education-card.active {
    border-left-color: #7c3aed;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.education-card.active .education-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.education-icon i {
    font-size: 1.5rem;
    color: white;
}

.education-card h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-period {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.education-card.active .education-period {
    color: #7c3aed;
}

.education-institution {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
    margin-top: auto;
}

.education-card.active .education-institution {
    background: #e0e7ff;
    color: #6366f1;
}

/* Career Grid */
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.career-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.career-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.career-icon i {
    font-size: 2rem;
    color: white;
}

.career-card h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.career-period {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.career-location {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Achievement Grid */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #2563eb;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.achievement-icon i {
    font-size: 1.5rem;
    color: white;
}

.achievement-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.achievement-institution {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    background: #1e293b;
    color: white;
    padding: 60px 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #cbd5e1;
}

.contact-item i {
    color: #2563eb;
    font-size: 1.2rem;
}

/* Articles Page Styles */
.articles-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.articles-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.articles-subtitle {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.articles-section {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-category {
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-title {
    padding: 0 1.5rem;
    color: #1e293b;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.article-excerpt {
    padding: 0 1.5rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.article-author,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link {
    display: block;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-top: 1px solid #e2e8f0;
}

.article-link:hover {
    background: #2563eb;
    color: white;
}

.article-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.article-link:hover i {
    transform: translateX(5px);
}

/* Articles Tools */
.articles-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #6b7280;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Articles Stats */
.articles-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: #2563eb;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 0;
}


.footer p a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3 ease;
    font-weight: 500;
}

.footer p a:hover {
    color: #93c5fd;
    text-decoration: underline;
}





/* Article Page Styles */

/* Article Header */
.article-header-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 0 60px;
    border-bottom: 1px solid #e2e8f0;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #2563eb;
}

.article-breadcrumb span {
    color: #9ca3af;
}

.article-category-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-tag {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.article-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-main-title {
    font-size: 2.5rem;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
}

.author-title {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* Article Content */
.article-content-section {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-main {
    max-width: none;
}

.article-body {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.article-abstract {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    margin-bottom: 2rem;
}

.article-abstract h2 {
    color: #2563eb;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-keywords {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-keywords h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.keywords-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.keyword {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-section h3 {
    color: #374151;
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
}

.article-section p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.recommendations ul {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

.recommendations li {
    color: #166534;
    margin-bottom: 0.5rem;
}

.references p {
    margin-bottom: 1rem;
    padding-left: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.article-tags,
.article-share {
    margin-bottom: 2rem;
}

.article-tags h3,
.article-share h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.email {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-avatar-large {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.author-bio {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.author-stats span {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Related Articles */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: block;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.related-item h4 {
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-date {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Table of Contents */
.toc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc a:hover,
.toc a.active {
    color: #2563eb;
    border-left-color: #2563eb;
    background: #f8fafc;
}

/* Back to Articles */
.back-to-articles {
    padding: 3rem 0;
    background: #f8fafc;
}

/* Mobile-First Responsive Design - Enhanced */
@media (max-width: 768px) {

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Logo responsive */
    .nav-logo h2 {
        font-size: 1.2rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sections Mobile */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Education Grid Mobile */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-card {
        min-height: auto;
        padding: 1.5rem;
    }

    /* Career Grid Mobile */
    .career-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .career-card {
        padding: 1.5rem;
    }

    /* Achievement Grid Mobile */
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    /* Contact Mobile */
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* Articles Mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .articles-tools {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        max-width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .articles-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Navigation ultra-mobile */
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

    /* Hero ultra-mobile */
    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections ultra-mobile */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Cards ultra-mobile */
    .education-card,
    .career-card,
    .achievement-card {
        padding: 1rem;
    }

    /* Text sizing */
    .education-card h3,
    .career-card h3,
    .achievement-card h3 {
        font-size: 1.1rem;
    }

    /* Articles ultra-mobile */
    .articles-title {
        font-size: 2rem;
    }

    .articles-subtitle {
        font-size: 1rem;
    }

    .articles-stats {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .article-card {
        margin: 0 -5px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .filter-buttons {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.education-card,
.career-card,
.achievement-card,
.article-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.education-card:nth-child(even) {
    animation-delay: 0.1s;
}

.education-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Fixes: Button alignment & uniform education card heights - DUPLICATE REMOVED */

/* Education cards same height & bottom-align institution badge */
.education-grid {
    align-items: stretch;
}

.education-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    /* adjust if needed */
}

.education-card .education-institution {
    margin-top: auto;
}

/* Responsive tweak */
@media (max-width: 600px) {
    .education-card {
        min-height: 0;
    }
}

/* Mobile menu body scroll lock */
body.menu-open {
    overflow: hidden;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {

    .btn,
    .nav-link,
    .hamburger,
    .article-link {
        min-height: 44px;
        /* iOS recommendation */
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link {
        padding: 1rem 0;
        width: 100%;
    }

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Ensure containers don't overflow */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix image/content overflow - DUPLICATE REMOVED */

    /* Better form elements on mobile */
    input,
    textarea,
    select {
        font-size: 16px;
        /* Prevent zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
    }
}