/* ===== CSS RESET VE TEMEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti */
    --primary-dark: #0d1328;
    --primary-dark-alt: #101a36;
    --primary-blue: #2c5282;
    --accent-crimson: #dc2626;
    --accent-gold: #f59e0b;
    --text-primary: #f9fafb;
    --text-secondary: #d0d7e7;
    --text-muted: #97a2bb;
    --surface-dark: rgba(17, 24, 39, 0.9);
    --surface-darker: rgba(9, 13, 26, 0.92);
    --surface-light: rgba(71, 85, 105, 0.35);
    --surface-border: rgba(148, 163, 184, 0.22);
    --surface-highlight: rgba(245, 158, 11, 0.12);
    --surface-glow: rgba(44, 82, 130, 0.18);
    
    /* Shadows & Effects */
    --shadow-soft: 0 24px 65px rgba(5, 10, 25, 0.55);
    --shadow-medium: 0 16px 45px rgba(5, 10, 25, 0.45);
    --shadow-ring: 0 0 0 1px rgba(148, 163, 184, 0.08);
    --glass-blur: 18px;
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', 'Segoe UI', 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:
        radial-gradient(circle at 20% -10%, rgba(44, 82, 130, 0.28), transparent 55%),
        radial-gradient(circle at 85% 0%, rgba(220, 38, 38, 0.14), transparent 50%),
        linear-gradient(165deg, var(--primary-dark) 0%, var(--primary-dark-alt) 55%, #070b16 100%);
    color: var(--text-primary);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== GLOBAL STYLES ===== */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus {
    color: var(--accent-gold);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

p {
    color: var(--text-secondary);
    max-width: 68ch;
    margin-bottom: 1.5rem;
}

section {
    position: relative;
    isolation: isolate;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 18, 36, 0.78);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    z-index: 1000;
    padding: 1.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;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
    position: relative;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold));
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    padding: 0.55rem;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-ring);
}

.theme-toggle:hover {
    background: var(--surface-highlight);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.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;
    padding: 6rem 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.18;
    z-index: 1;
    background: radial-gradient(circle at 10% 20%, rgba(44, 82, 130, 0.2), transparent 60%),
                radial-gradient(circle at 90% 30%, rgba(220, 38, 38, 0.18), transparent 65%);
}

.code-lines::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 200px;
    height: 300px;
    background: linear-gradient(45deg, rgba(44, 82, 130, 0.6), 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, rgba(220, 38, 38, 0.55), 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;
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
}

.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;
    text-shadow: 0 18px 35px rgba(5, 10, 25, 0.45);
}

.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);
    max-width: 36rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease forwards 0.8s;
}

.cta-button {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(44, 82, 130, 0.92));
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.25);
    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 12px 38px rgba(44, 82, 130, 0.35);
}

.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: rgba(16, 24, 40, 0.65);
    border-radius: 18px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    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: clamp(2.1rem, 3.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-line {
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.75), rgba(44, 82, 130, 0.75));
    margin: 0.2rem auto 0;
    box-shadow: 0 8px 20px rgba(44, 82, 130, 0.35);
    border-radius: 999px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.9) 0%, rgba(12, 18, 32, 0.95) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    border-bottom: 1px solid rgba(7, 11, 22, 0.6);
    box-shadow: var(--shadow-soft);
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(44, 82, 130, 0.18), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3.5rem;
    align-items: start;
    background: rgba(12, 18, 36, 0.78);
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(calc(var(--glass-blur) / 1.3));
    box-shadow: var(--shadow-ring), var(--shadow-medium);
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(160deg, rgba(14, 22, 40, 0.85), rgba(22, 34, 56, 0.65));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
}

.pixel-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 30px;
    opacity: 0.6;
    filter: blur(0.4px);
}

.about-subsection {
    margin-bottom: 2.5rem;
}

.about-subsection h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-category {
    background: rgba(13, 20, 38, 0.75);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.skill-category > * {
    position: relative;
    z-index: 1;
}

.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);
    background: linear-gradient(180deg, rgba(13, 20, 38, 0.88) 0%, rgba(10, 16, 30, 0.95) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    border-bottom: 1px solid rgba(5, 10, 20, 0.6);
    box-shadow: var(--shadow-soft);
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 10%, rgba(245, 158, 11, 0.16), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.tab-button {
    background: rgba(13, 20, 38, 0.7);
    border: 1px solid var(--surface-border);
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(calc(var(--glass-blur) / 1.8));
    box-shadow: var(--shadow-ring);
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.9), rgba(44, 82, 130, 0.9));
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 18px 35px rgba(44, 82, 130, 0.35);
    transform: translateY(-2px);
}

.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: rgba(13, 20, 38, 0.8);
    border-radius: 26px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--surface-border);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(var(--glass-blur));
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(5, 10, 25, 0.5);
    border-color: rgba(148, 163, 184, 0.32);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(160deg, rgba(14, 24, 45, 0.9), rgba(18, 30, 56, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.project-placeholder {
    font-size: 3rem;
    color: rgba(148, 163, 184, 0.6);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(140deg, rgba(220, 38, 38, 0.82), rgba(44, 82, 130, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 2rem;
    backdrop-filter: blur(calc(var(--glass-blur) / 1.2));
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2.2rem 2.4rem 2.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tags .tag {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(12, 20, 38, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.project-btn {
    background: rgba(249, 250, 251, 0.12);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.85rem 1.8rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-btn:hover {
    background: rgba(249, 250, 251, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.project-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    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.55rem 1.35rem;
    background: rgba(12, 20, 38, 0.72);
    backdrop-filter: blur(calc(var(--glass-blur) / 2));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    transform: scale(0.96);
    min-width: 100px;
    justify-content: center;
    white-space: nowrap;
}

.project-link:hover {
    transform: scale(1) translateX(4px);
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.85), rgba(44, 82, 130, 0.85));
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 12px 24px rgba(44, 82, 130, 0.35);
}

.project-link i {
    font-size: 1.1rem;
    min-width: 20px;
}

/* Platform-specific colors */
.github-link:hover {
    background: linear-gradient(130deg, rgba(36, 41, 47, 0.92), rgba(44, 82, 130, 0.85));
    border-color: transparent;
    color: #ffffff;
}

.linkedin-link:hover {
    background: linear-gradient(130deg, rgba(0, 119, 181, 0.92), rgba(44, 82, 130, 0.85));
    border-color: transparent;
    color: #ffffff;
}

.steam-link:hover {
    background: linear-gradient(130deg, rgba(23, 26, 33, 0.92), rgba(44, 82, 130, 0.85));
    border-color: transparent;
    color: #9bd4ff;
}

/* ===== BOOKS SECTION ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.4rem;
}

.book-card {
    background: rgba(13, 20, 38, 0.82);
    border-radius: 24px;
    padding: 2.4rem 2.6rem 2.6rem;
    position: relative;
    border: 1px solid var(--surface-border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(5, 10, 25, 0.45);
    border-color: rgba(245, 158, 11, 0.32);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.92), rgba(220, 38, 38, 0.75));
    opacity: 0.9;
}

.book-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.book-genre {
    color: var(--accent-crimson);
    font-weight: 600;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.status-badge {
    background: rgba(14, 22, 40, 0.72);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-secondary);
}

.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.8rem;
    padding: 1.2rem 1.4rem;
    background: rgba(14, 22, 40, 0.7);
    border-left: 3px solid var(--accent-crimson);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-secondary);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

/* ===== BOOK LINKS STYLING ===== */
.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    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.85rem 1.8rem;
    background: rgba(12, 20, 38, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 130px;
    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.28), transparent);
    transition: var(--transition-smooth);
    z-index: 1;
}

.book-link:hover::before {
    left: 100%;
}

.book-link:hover {
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(44, 82, 130, 0.35);
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.85), rgba(44, 82, 130, 0.85));
    border-color: transparent;
}

.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: linear-gradient(180deg, rgba(13, 20, 38, 0.88) 0%, rgba(10, 16, 30, 0.95) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    border-bottom: 1px solid rgba(5, 10, 20, 0.65);
    box-shadow: var(--shadow-soft);
}

.future::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.18), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), rgba(220, 38, 38, 0.4), rgba(44, 82, 130, 0.1));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    gap: 2rem;
}

.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: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(44, 82, 130, 0.85));
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(5, 10, 25, 0.45);
}

.timeline-content {
    background: rgba(13, 20, 38, 0.78);
    padding: 1.75rem;
    border-radius: 20px;
    max-width: 320px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    backdrop-filter: blur(calc(var(--glass-blur) / 1.6));
}

.timeline-content h3 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, rgba(12, 18, 34, 0.9) 0%, rgba(9, 14, 26, 0.95) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.05);
    box-shadow: var(--shadow-soft);
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 10%, rgba(44, 82, 130, 0.22), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: rgba(13, 20, 38, 0.78);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(12, 20, 38, 0.72);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
}

.social-link:hover {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.85), rgba(44, 82, 130, 0.85));
    color: var(--text-primary);
    transform: translateX(6px);
    box-shadow: 0 20px 40px rgba(44, 82, 130, 0.32);
}

.contact-form {
    background: rgba(13, 20, 38, 0.78);
    padding: 2.6rem;
    border-radius: 24px;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-ring);
    backdrop-filter: blur(calc(var(--glass-blur) / 1.4));
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(12, 20, 38, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
    letter-spacing: 0.04em;
}

.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: rgba(12, 20, 38, 0.9);
    padding: 0 0.5rem;
    border-radius: 999px;
    box-shadow: var(--shadow-ring);
}

.submit-btn {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.95), rgba(245, 158, 11, 0.9));
    border: none;
    padding: 1rem 2.4rem;
    border-radius: 999px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 55px rgba(220, 38, 38, 0.32);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.95), rgba(5, 8, 18, 0.98));
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

/* ===== 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: rgba(12, 18, 36, 0.95);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: 0 20px 45px rgba(5, 10, 25, 0.45);
        padding: 2.5rem 0;
        border-bottom: 1px solid var(--surface-border);
        backdrop-filter: blur(calc(var(--glass-blur) / 1.2));
    }
    
    .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;
    }
}
