/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primitive tokens */
    --color-brand-500: #ff2800;
    --color-brand-700: #cc0000;
    --color-brand-300: #ff3366;
    --color-neutral-000: #ffffff;
    --color-neutral-050: #f8f8f8;
    --color-neutral-100: #f3f4f6;
    --color-neutral-200: #e5e7eb;
    --color-neutral-900: #1a1a1a;
    --color-neutral-950: #0a0a0a;
    --color-neutral-1000: #000000;
    --color-success-500: #22c55e;
    --color-danger-500: #ef4444;

    --font-family-body: 'Inter', sans-serif;
    --font-family-display: 'Playfair Display', serif;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    --radius-sm: 2px;
    --radius-md: 8px;
    --radius-lg: 15px;
    --radius-pill: 999px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --motion-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --focus-ring: 0 0 0 3px rgba(255, 40, 0, 0.4);

    /* Semantic tokens */
    --color-action: var(--color-brand-500);
    --color-action-hover: var(--color-brand-700);
    --color-action-subtle: var(--color-brand-300);
    --color-page: var(--color-neutral-1000);
    --color-surface: var(--color-neutral-950);
    --color-surface-raised: var(--color-neutral-900);
    --color-border: rgba(255, 255, 255, 0.2);
    --color-text: var(--color-neutral-000);
    --color-text-muted: var(--color-neutral-100);
    --color-text-subtle: var(--color-neutral-200);
    --layout-content-width: 1200px;
    --control-min-size: 44px;
    --z-header: 1000;
    --z-cookiebot-trigger: 1000;

    /* Legacy aliases retained during migration. */
    --primary-color: var(--color-action);
    --primary-dark: var(--color-action-hover);
    --primary-light: var(--color-action-subtle);
    --accent-color: var(--color-text);
    --accent-light: var(--color-neutral-050);
    --secondary-color: var(--color-text);
    --cream: var(--color-text);
    --gold: var(--color-text);
    --black: var(--color-page);
    --dark-gray: var(--color-surface);
    --medium-gray: var(--color-surface-raised);
    --light-gray: #2a2a2a;
    --white: var(--color-text);
    --gray-light: var(--color-text-muted);
    --gray-medium: var(--color-text-subtle);
    --transition: var(--motion-standard);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-page);
    overflow-x: hidden;
    font-weight: 400;
}

/* Art Nouveau Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.art-nouveau-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--accent-color);
    border-radius: 30px;
    opacity: 0.4;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 50%);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
}

.organic-shape {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    border-radius: 70% 30% 80% 20% / 70% 30% 20% 40%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.art-nouveau-pattern {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 100px;
    height: 100px;
    background: conic-gradient(from 0deg, var(--gold), var(--accent-color), var(--gold));
    border-radius: 50% 10% 50% 10% / 50% 50% 50% 50%;
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

.whiplash-curve {
    position: absolute;
    bottom: 100px;
    left: -50px;
    width: 200px;
    height: 100px;
    border: 2px solid var(--gold);
    border-radius: 50% 50% 0 50% / 100% 100% 0 100%;
    border-top: none;
    opacity: 0.3;
    transform: rotate(-15deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) rotate(5deg) scale(1.05); }
    66% { transform: translateY(-15px) rotate(-3deg) scale(0.95); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: var(--layout-content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid var(--medium-gray);
    transition: var(--transition);
}

.dropdown-menu .nav-link:last-child {
    border-bottom: none;
}

.dropdown-menu .nav-link:hover {
    background: var(--medium-gray);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-menu .nav-link::after {
    display: none;
}

/* Literary Lounge Styles */
.literary-lounge {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
}

.literary-content {
    max-width: 1200px;
    margin: 0 auto;
}

.literary-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-light);
    margin-bottom: 3rem;
    font-style: italic;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.book-item {
    background: var(--black);
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 40, 0, 0.2);
    border-color: var(--primary-color);
}

.book-cover {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.book-item:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.book-author {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-description {
    color: var(--accent-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.book-genre,
.book-duration {
    background: var(--medium-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--light-gray);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle:focus-visible,
.blog-list-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 40, 0, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
}

.name {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--white);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeIn 1.5s ease-out 0.6s forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-image {
    width: 400px;
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    z-index: 5;
    border: 2px solid var(--white);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 0 auto;
    width: 80%;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

/* About Section */
.about {
    background: var(--dark-gray);
    padding: 5rem 0 6rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.experience-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.highlight-item p {
    color: var(--white);
    font-size: 0.9rem;
}

.skills-section {
    text-align: center;
}

.skills-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    color: var(--white);
}

.skill-item:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Portfolio Section */
.portfolio {
    background: var(--black);
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--dark-gray);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.portfolio-content p {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pomodoro Section */
.pomodoro {
    background: var(--black);
}

.pomodoro-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.timer-display {
    margin-bottom: 3rem;
}

.timer-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    position: relative;
    transition: var(--transition);
}

.timer-circle.active {
    animation: pulse 2s ease-in-out infinite;
    border-color: var(--primary-light);
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.timer-status {
    font-size: 1rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

.timer-controls {
    margin-bottom: 3rem;
}

.timer-modes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.mode-btn:hover,
.mode-btn.active {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.timer-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pomodoro-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Contact Section */
.contact {
    background: var(--dark-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--white);
    margin-bottom: 2rem;
}

/* Contact Visual Section */
.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 40, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 40, 0, 0.3);
}

.office-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.image-overlay h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-overlay p {
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.social-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 0;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--light-gray);
    transition: var(--transition);
    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(--primary-color);
    background: var(--dark-gray);
    padding: 0 0.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Curriculum Section */
.curriculum {
    background: var(--dark-gray);
    padding: 5rem 0 6rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.curriculum-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 2.55rem;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.7;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    color: var(--white);
    text-decoration: none;
    text-align: center;
}

.timeline-year {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-status {
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-marker {
    width: 1.1rem;
    height: 1.1rem;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: var(--black);
    transition: var(--transition);
}

.timeline-company {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-point:hover .timeline-marker,
.timeline-point:focus-visible .timeline-marker {
    background: var(--primary-color);
    transform: scale(1.2);
}

.timeline-point:hover .timeline-company,
.timeline-point:focus-visible .timeline-company {
    color: var(--primary-color);
}

.curriculum-item[id] {
    scroll-margin-top: 100px;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.curriculum-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 2rem;
    transition: var(--transition);
}

.curriculum-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.curriculum-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.curriculum-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.curriculum-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.curriculum-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.curriculum-details .institution {
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.curriculum-details .period {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.curriculum-details .description {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
}

.curriculum-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.curriculum-skills span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.curriculum-skills span:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
    color: var(--white);
}

/* Crossed Section */
.crossed {
    background: var(--dark-gray);
    padding: 5rem 0 6rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.crossed-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.crossed-description {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 500;
    font-style: italic;
}

.crossed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    margin-top: 2rem;
}

.crossed-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.crossed-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.crossed-logo {
    margin: 0;
}

.crossed-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    filter: grayscale(100%);
    transition: var(--transition);
}

.crossed-item:hover .crossed-logo img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* API Fun Section */
.api-fun {
    background: var(--dark-gray);
    padding: 5rem 0 6rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.api-fun-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.api-fun-intro {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 500;
    font-style: italic;
}

.api-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.api-code-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
}

.api-code-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.code-illustration {
    height: 200px;
    overflow: hidden;
}

.code-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.api-code-item:hover .code-illustration img {
    transform: scale(1.05);
}

.code-content {
    padding: 1.5rem;
}

.code-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.code-snippet {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--white);
}

.code-snippet code {
    color: var(--white);
}

.code-description {
    font-size: 0.9rem;
    color: var(--white);
    margin: 0;
    font-style: italic;
}

/* Mobile Responsive for API Fun Section */
@media (max-width: 768px) {
    .api-codes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .api-code-item {
        margin-bottom: 1.5rem;
    }

    .code-content {
        padding: 1rem;
    }

    .code-title {
        font-size: 1.1rem;
    }

    .code-snippet {
        padding: 0.75rem;
    }

    .code-snippet pre {
        font-size: 0.8rem;
    }

    .api-fun-intro {
        font-size: 1.1rem;
    }
}

/* Blog Page Styles */
.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    overflow: hidden;
    padding: 6rem 0 4rem 0;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.blog-hero-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .meta-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.blog-status {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 40, 0, 0.1);
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0;
}

.blog-coming-soon {
    font-size: 1.2rem;
    color: var(--accent-light);
    font-style: italic;
}

.blog-content {
    background: var(--dark-gray);
    padding: 5rem 0 6rem 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--medium-gray);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.post-header {
    padding: 3rem 3rem 2rem 3rem;
    border-bottom: 1px solid var(--medium-gray);
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-date,
.post-category,
.post-read-time {
    font-size: 0.9rem;
    color: var(--accent-light);
    background: var(--medium-gray);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
}

.post-category {
    background: rgba(255, 40, 0, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.post-excerpt {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-style: italic;
}

/* Blog Post Separator */
.post-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 4rem 0;
    border-radius: 1px;
}

/* Blog Selector */
.blog-selector {
    background: var(--dark-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--medium-gray);
}

.selector-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.blog-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background: var(--black);
}

.blog-list-item {
    display: flex;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.blog-list-item:last-child {
    border-bottom: none;
}

.blog-list-item:hover {
    background: rgba(255, 40, 0, 0.1);
    padding-left: 1.5rem;
}

.blog-list-item.active {
    background: rgba(255, 40, 0, 0.2);
    border-left: 4px solid var(--primary-color);
}

.post-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 30px;
}

.post-title-small {
    font-size: 1rem;
    color: var(--white);
    flex: 1;
    font-weight: 500;
}

.post-date-small {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-left: 1rem;
}

.post-content {
    padding: 3rem;
    line-height: 1.6;
}

.post-intro {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 40, 0, 0.05);
    border-left: 3px solid var(--primary-color);
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
    font-family: 'Playfair Display', serif;
}

.post-content p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.post-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--medium-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: 0;
    font-style: italic;
}

.post-content blockquote p {
    margin: 0;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.post-conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 0;
}

.post-conclusion h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.post-footer {
    padding: 1.5rem 3rem;
    background: var(--black);
    border-top: 1px solid var(--medium-gray);
}

.post-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.85rem;
    color: var(--white);
    background: var(--medium-gray);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Mobile Responsive for Blog Posts */
@media (max-width: 768px) {
    .post-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-content {
        padding: 2rem 1.5rem;
    }
    
    .post-intro {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-footer {
        padding: 1.5rem;
    }
    
    .post-meta {
        gap: 0.5rem;
    }
    
    .post-date,
    .post-category,
    .post-read-time {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--black);
    padding: 3rem 0 1rem 0;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

.cookiebot-trigger {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: var(--z-cookiebot-trigger);
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: var(--control-min-size);
    height: var(--control-min-size);
    min-width: var(--control-min-size);
    min-height: var(--control-min-size);
    padding: 0;
    border: 1px solid var(--primary-color);
    background: var(--black);
    color: var(--gray-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.cookiebot-trigger:hover,
.cookiebot-trigger:focus-visible {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-declaration {
    display: none;
    padding: 3rem 0;
    background: var(--dark-gray);
    overflow-x: auto;
}

.cookie-declaration.is-visible {
    display: block;
}

.cookie-declaration:target {
    display: block;
}

.cookie-declaration h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.8rem;
}

/* Mobile Responsive for Blog */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 3rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-status {
        font-size: 1.5rem;
        padding: 0.4rem 1.2rem;
    }
    
    .blog-coming-soon {
        font-size: 1rem;
    }
    
    .tbc-container {
        padding: 3rem 2rem;
    }
    
    .tbc-title {
        font-size: 2.5rem;
    }
    
    .tbc-subtitle {
        font-size: 1.2rem;
    }
    
    .tbc-icon {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Responsive for Crossed Section */
@media (max-width: 1200px) {
    .crossed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .crossed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .crossed-item {
        padding: 1.5rem;
        min-height: 100px;
    }

    .crossed-logo img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .crossed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .crossed-item {
        padding: 1rem;
        min-height: 80px;
    }

    .crossed-logo img {
        width: 50px;
        height: 50px;
    }
}

/* Curriculum Tags - Similar to Portfolio Tags */
.curriculum-skills span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--primary-light);
    transition: var(--transition);
    display: inline-block;
    margin: 0.2rem;
    font-weight: 500;
}

.curriculum-skills span:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
}
.footer {
    background: var(--black);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer p {
    color: var(--light-gray);
    margin: 0;
}

.footer .copyright {
    font-weight: 500;
    color: var(--white);
}

.footer .disclaimer {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.9;
}

.footer .heart {
    color: #ff1744;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin: 0 2px;
    font-size: 1em;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
        overflow: visible;
        padding: 6rem 0 4rem;
    }

    .nav-links {
        position: fixed;
        visibility: hidden;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-gray);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--medium-gray);
        border: none;
        border-radius: 0;
        min-width: 100%;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 0;
    }

    .dropdown-menu .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--light-gray);
        font-size: 0.9rem;
    }

    .dropdown-menu .nav-link:hover {
        background: var(--light-gray);
        padding-left: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0 15px;
        max-width: 100%;
        min-height: auto;
        overflow: visible;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .profile-image {
        width: 180px;
        aspect-ratio: 3 / 4;
        height: auto;
        margin: 0 auto 1.5rem auto;
        max-width: 80%;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-buttons {
        justify-content: center;
    }

    .art-nouveau-border {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .organic-shape {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .experience-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile About section fixes */
    .about {
        padding: 3rem 0 4rem 0;
    }

    .about-content {
        padding: 0 15px;
    }

    .about-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .experience-highlights {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .highlight-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        min-height: auto;
        margin-bottom: 0.5rem;
    }

    .highlight-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .highlight-item div {
        text-align: center;
    }

    /* Literary Lounge Mobile Styles */
    .experience-timeline {
        gap: 0.5rem;
        margin: 1.5rem auto 2.5rem;
        padding: 0;
    }

    .experience-timeline::before {
        left: 10%;
        right: 10%;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    .timeline-company {
        font-size: 0.75rem;
    }

    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .curriculum-item {
        padding: 1.5rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-item {
        padding: 1.5rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Medium screens - tablets */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-item {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .book-cover {
        width: 100%;
        height: 250px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .book-title {
        font-size: 1.3rem;
    }

    .literary-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 10px;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .profile-image {
        width: 180px;
        aspect-ratio: 3 / 4;
        height: auto;
        max-width: 70%;
        margin: 0 auto 1rem auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Additional mobile styles */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .nav {
        padding: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Extra small mobile fixes */
    .about-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .highlight-item {
        padding: 0.75rem;
    }

    .skills-section {
        margin-bottom: 2rem;
    }

    /* Mobile Pomodoro fixes */
    .timer-circle {
        width: 200px;
        height: 200px;
    }

    .timer-time {
        font-size: 2.5rem;
    }

    .pomodoro-stats {
        gap: 2rem;
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Mobile-only scale adjustments */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .hero {
        transform: none !important;
        padding: 3.5rem 0 2rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-image {
        order: -1;
        margin-bottom: 0;
        padding-top: 0.5rem;
    }

    .hero-text {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-title {
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        max-width: 100%;
        margin: 0 auto 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .greeting {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description,
    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        width: min(100%, 280px);
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn {
        flex: 0 1 auto;
        min-width: 0;
        width: 100%;
        max-width: none;
        padding: 0.55rem 0.45rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .profile-image {
        width: 200px;
        aspect-ratio: 3 / 4;
        height: auto;
        margin: 0.75rem auto 0.5rem;
        border: 0;
    }

    .profile-image::after {
        content: '';
        position: absolute;
        inset: 0;
        border: 2px solid var(--white);
        pointer-events: none;
        z-index: 2;
    }

    .portfolio-image {
        height: 180px;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-content h3 {
        font-size: 1.15rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    .portfolio-tags span {
        font-size: 0.75rem;
    }

    .book-item {
        grid-template-columns: 120px 1fr;
    }

    .book-cover {
        height: 180px;
    }

    .book-info {
        padding: 1rem;
    }

    .book-title {
        font-size: 1.2rem;
    }

    .book-author,
    .book-description {
        font-size: 0.9rem;
    }

    .code-illustration {
        height: 140px;
    }

    .code-title {
        font-size: 1rem;
    }

    .code-description {
        font-size: 0.85rem;
    }

    .code-snippet pre {
        font-size: 0.75rem;
    }

    .office-image {
        width: 85%;
        margin: 0 auto;
    }

    .curriculum-header h3 {
        font-size: 1.25rem;
    }

    .curriculum-details h4 {
        font-size: 1.05rem;
    }

    .curriculum-details .institution {
        font-size: 0.9rem;
    }

    .curriculum-details .period,
    .curriculum-details .description {
        font-size: 0.85rem;
    }

    .curriculum-skills span {
        font-size: 0.75rem;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-status {
        font-size: 1.3rem;
    }

    .blog-coming-soon {
        font-size: 0.9rem;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-excerpt,
    .post-content p,
    .post-content li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 190px;
        max-width: 72%;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Implose animation for About section */
.about-implode {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-implode.imploding {
    opacity: 0.3;
    transform: scale(0.95);
    filter: blur(2px);
}

.about-implode.imploding .about-intro {
    transform: translateX(-20px);
    opacity: 0.5;
}

.about-implode.imploding .highlight-item {
    transform: translateY(10px);
    opacity: 0.4;
}

.about-implode.imploding .skills-section {
    transform: translateX(20px);
    opacity: 0.3;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
