/* ===== CSS RESET VE TEMEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti */
    --primary-dark: #0f0f23;
    --primary-blue: #2c5282;
    --accent-crimson: #dc2626;
    --accent-gold: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --surface-dark: #1a1a2e;
    --surface-darker: #16213e;
    --surface-light: #2d3748;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--surface-darker) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== GLOBAL STYLES ===== */
a{
    text-decoration: none;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-smooth);
}



.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-crimson);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--surface-light);
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.code-lines::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 200px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-blue), transparent);
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite;
}

.manuscript-pages::before {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 250px;
    height: 200px;
    background: linear-gradient(-45deg, var(--accent-crimson), transparent);
    transform: rotate(-15deg);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { 
    animation-delay: 0.4s; 
    color: var(--accent-crimson);
}
.hero-title .line:nth-child(3) { 
    animation-delay: 0.6s;
    color: var(--accent-gold);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease forwards 0.8s;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-gold));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: slideInUp 1s ease forwards 1s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    font-size: 2rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: 15px;
    border: 2px solid var(--surface-light);
    animation: floatElement 4s ease-in-out infinite;
}

.code-symbol {
    top: 20%;
    left: 10%;
    color: var(--primary-blue);
    animation-delay: 0s;
}

.book-symbol {
    top: 60%;
    right: 10%;
    color: var(--accent-crimson);
    animation-delay: 1.5s;
}

.game-symbol {
    bottom: 10%;
    left: 30%;
    color: var(--accent-gold);
    animation-delay: 3s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--accent-gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background: var(--surface-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: var(--surface-darker);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    border: 3px solid var(--surface-light);
}

.pixel-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-gold);
    border-radius: 20px;
    opacity: 0.5;
}

.about-subsection {
    margin-bottom: 2.5rem;
}

.about-subsection h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-category {
    background: var(--surface-darker);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-crimson);
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-category i {
    color: var(--accent-crimson);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--section-padding);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: var(--surface-dark);
    border: 2px solid var(--surface-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.tab-button.active,
.tab-button:hover {
    background: var(--accent-crimson);
    border-color: var(--accent-crimson);
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.project-card {
    background: var(--surface-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--surface-light);
    width: 100%;
    max-width: 500px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--surface-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 3rem;
    color: var(--text-muted);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(44, 82, 130, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-crimson);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.project-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    flex-wrap: wrap;
}

.project-card:hover .project-links {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
    transform: scale(0.95);
    min-width: 100px;
    justify-content: center;
    white-space: nowrap;
}

.project-link:hover {
    transform: scale(1) translateX(5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-link i {
    font-size: 1.1rem;
    min-width: 20px;
}

/* Platform-specific colors */
.github-link:hover {
    background: rgba(36, 41, 47, 0.9);
    border-color: #24292f;
    color: #ffffff;
}

.linkedin-link:hover {
    background: rgba(0, 119, 181, 0.9);
    border-color: #0077b5;
    color: #ffffff;
}

.steam-link:hover {
    background: rgba(23, 26, 33, 0.9);
    border-color: #171a21;
    color: #66c0f4;
}

/* ===== BOOKS SECTION ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.book-card {
    background: var(--surface-dark);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    border-left: 5px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.book-card:hover {
    transform: translateX(5px);
    box-shadow: -10px 0 30px rgba(245, 158, 11, 0.2);
}

.book-spine {
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-crimson));
}

.book-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.book-genre {
    color: var(--accent-crimson);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.book-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.status-badge {
    background: var(--surface-darker);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.writing {
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.status-badge.planning {
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.book-quote {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface-darker);
    border-left: 3px solid var(--accent-crimson);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* ===== BOOK LINKS STYLING ===== */
.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--surface-light);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    justify-content: center;
}

.book-card:hover .book-links {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.book-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--surface-darker), var(--surface-light));
    border: 2px solid transparent;
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
    z-index: 1;
}

.book-link:hover::before {
    left: 100%;
}

.book-link:hover {
    color: var(--text-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.book-link i {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.book-link span {
    z-index: 2;
    position: relative;
}

/* Platform-specific styling for books with enhanced effects */
.wattpad-link {
    background: linear-gradient(135deg, #2c1810, #4a2e1a);
    border-color: #ff6600;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.1);
}

.wattpad-link:hover {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    border-color: #ff6600;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.wattpad-link:hover i {
    transform: rotate(15deg) scale(1.3);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.inkspired-link {
    background: linear-gradient(135deg, #2a1a3a, #3d2654);
    border-color: #8e44ad;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.1);
}

.inkspired-link:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-color: #8e44ad;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(142, 68, 173, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.inkspired-link:hover i {
    transform: rotate(-15deg) scale(1.3);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.inkitt-link {
    background: linear-gradient(135deg, #3a1a1a, #542626);
    border-color: #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.1);
}

.inkitt-link:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.inkitt-link:hover i {
    transform: scale(1.4) rotateY(360deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.promotion-link {
    background: linear-gradient(135deg, #1a2a3a, #2a3d4a);
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.1);
}

.promotion-link:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.promotion-link:hover i {
    transform: scale(1.3) rotate(45deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}



/* Book link special effects */
.book-link:active {
    transform: translateY(-3px) scale(0.98);
}

.book-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-smooth);
    z-index: 0;
}

.book-link:hover::after {
    width: 200px;
    height: 200px;
}

/* ===== FUTURE PLANS SECTION ===== */
.future {
    padding: var(--section-padding);
    background: var(--surface-dark);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-crimson);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 2;
}

.timeline-content {
    background: var(--surface-darker);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 300px;
    border: 1px solid var(--surface-light);
}

.timeline-content h3 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-dark);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    border: 1px solid var(--surface-light);
}

.social-link:hover {
    background: var(--accent-crimson);
    color: var(--text-primary);
    transform: translateX(5px);
}

.contact-form {
    background: var(--surface-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--surface-light);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-darker);
    border: 2px solid var(--surface-light);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-crimson);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-crimson);
    background: var(--surface-dark);
    padding: 0 0.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-gold));
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--surface-light);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .project-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--surface-dark);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-item .timeline-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 20px !important;
        transform: translateX(-50%);
    }
    
    .projects-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mobile adjustments for project links */
    .project-links {
        gap: 0.8rem;
        flex-direction: row;
        justify-content: center;
    }
    
    .project-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    /* Mobile adjustments for book links */
    .book-links {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .book-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .project-overlay {
        padding: 1.5rem;
    }
    
    .project-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Ultra mobile adjustments for project links */
    .project-links {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .project-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 80px;
        width: 100%;
        max-width: 200px;
    }
    
    /* Ultra mobile adjustments for book links */
    .book-links {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
    
    .book-link {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        width: 100%;
        max-width: 200px;
    }
}

/* ===== ENHANCED PROJECTS GRID ===== */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    .project-card {
        max-width: 500px;
    }
}

@media (min-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1400px;
        gap: 4rem;
    }
    
    .project-card {
        max-width: 600px;
    }
}