/* ========================================
   CSS Reset and Base Styles
   ======================================== */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Properties (CSS Variables) */
:root {
    /* Colors */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --tertiary-bg: #2a2a2a;
    --accent-color: #00d4aa;
    --accent-hover: #00b894;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    
    /* Geometric background colors */
    --geo-color-1: #6c5ce7;
    --geo-color-2: #00d4aa;
    --geo-color-3: #00b8d4;
    --geo-color-4: #7b68ee;
    --geo-color-5: #20bf6b;
    
    /* Social media colors */
    --instagram-color: #e4405f;
    --linkedin-color: #0077b5;
    --spotify-color: #1db954;
    --youtube-color: #ff0000;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Borders and Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* Z-index */
    --z-header: 1000;
    --z-dropdown: 1100;
    --z-modal: 1200;
    --z-tooltip: 1300;
    
    /* Layout */
    --header-height: 76px; /* navbar padding (16px) + min-height (60px) */
}

/* Base HTML and Body */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Header and Navigation
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: var(--z-header);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar {
    width: 100%;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    min-height: 60px; /* Altezza minima ridotta per navbar più compatta */
    position: relative; /* Per controllo assoluto del posizionamento */
}

/* Brand/Logo */
.nav-brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.brand-subtitle {
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    font-weight: 500;
    display: block;
    line-height: 1.2;
}

/* Debug: Border temporaneo per vedere l'allineamento */
/* .nav-link {
    border: 1px solid red !important;
} */

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px; /* Gap fisso in px */
    margin: 0;
    padding: 0;
    height: 44px; /* Altezza fissa per tutto il menu */
}

.nav-menu li {
    margin: 0; /* Reset margin per tutti gli li */
    padding: 0; /* Reset padding per tutti gli li */
    list-style: none; /* Nessun bullet point */
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px; /* Stessa altezza del nav-link */
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    list-style: none; /* Assicura che non ci siano bullet points */
    vertical-align: top; /* Forza allineamento */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    padding: 12px 16px; /* Padding fisso in px per controllo preciso */
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px; /* Gap fisso in px */
    position: relative;
    white-space: nowrap;
    height: 44px; /* Altezza fissa per tutti */
    box-sizing: border-box; /* Include padding nel calcolo altezza */
    line-height: 1.2;
    vertical-align: top; /* Forza l'allineamento */
    margin: 0; /* Reset qualsiasi margin */
    top: 0; /* Forza posizione */
    transform: translateY(0); /* Reset transform */
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background-color: rgba(0, 212, 170, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px; /* Piccolo margine dai bordi */
    right: 8px; /* Piccolo margine dai bordi */
    width: auto; /* Auto width basata su left e right */
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 1px;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    height: 44px; /* Altezza fissa per allineamento perfetto */
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-hover), #009a7a);
}

.cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   Main Content & Slider System
   ======================================== */

.main-content {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Fade Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Individual Slides with Fade */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Hero Section (now inside slide) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-3xl) var(--spacing-xl);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

/* Section Content Wrapper */
.section-content {
    min-height: 100vh;
    padding: var(--spacing-4xl) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-header .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #00b894);
    border-radius: 2px;
}

.section-header .section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Work Section Styles */
.work-content {
    max-width: 1000px;
    margin: 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.work-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #00b894);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.work-card:hover::before {
    transform: scaleX(1);
}

.work-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.work-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Podcast Section Styles */
.podcast-content {
    max-width: 900px;
    margin: 0 auto;
}

.podcast-hero {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
    padding: var(--spacing-3xl);
    background: var(--background-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.podcast-hero h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
}

.podcast-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.podcast-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.podcast-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    text-align: center;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.podcast-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.podcast-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Blog Section Styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.blog-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #74b9ff, #00b894);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #74b9ff;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section Styles */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.contact-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #fdcb6e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #00b894;
    text-decoration: underline;
}

/* Hero Layout Sections */
.hero-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
}

.hero-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

/* Hero Content Styles */
.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--accent-color);
    margin: 0;
    line-height: 1.3;
}

.hero-description {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border: none;
    margin: 0 auto;
}

/* Geometric Background */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    border-radius: var(--border-radius-xl);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    filter: blur(1px);
    pointer-events: none;
}

.geo-shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--geo-color-1), var(--geo-color-2));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.geo-shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--geo-color-2), var(--geo-color-3));
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    transform: rotate(-30deg);
}

.geo-shape-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(225deg, var(--geo-color-3), var(--geo-color-4));
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
    transform: rotate(60deg);
}

.geo-shape-4 {
    width: 120px;
    height: 120px;
    background: linear-gradient(315deg, var(--geo-color-4), var(--geo-color-5));
    bottom: 25%;
    right: 25%;
    animation-delay: 3s;
    transform: rotate(-45deg);
}

.geo-shape-5 {
    width: 160px;
    height: 160px;
    background: linear-gradient(90deg, var(--geo-color-5), var(--geo-color-1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--initial-rotation, 0deg));
    }
    33% {
        transform: translateY(-20px) rotate(calc(var(--initial-rotation, 0deg) + 10deg));
    }
    66% {
        transform: translateY(10px) rotate(calc(var(--initial-rotation, 0deg) - 5deg));
    }
}

/* Profile Image */
.profile-image-container {
    position: relative;
    z-index: 3;
}

.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius-full);
    padding: 8px;
    background: linear-gradient(45deg, var(--accent-color), var(--geo-color-1), var(--geo-color-3));
    animation: profileGlow 4s ease-in-out infinite alternate;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 4px solid var(--primary-bg);
    transition: transform var(--transition-base);
}

.profile-image-wrapper:hover .profile-image {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--border-radius-full);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes profileGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(0, 212, 170, 0.6), 0 0 60px rgba(108, 92, 231, 0.3);
    }
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Social Media */
.social-media {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-base);
    background: var(--secondary-bg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: currentColor;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
    pointer-events: none;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Social link colors */
.social-link.instagram { color: var(--instagram-color); }
.social-link.linkedin { color: var(--linkedin-color); }
.social-link.spotify { color: var(--spotify-color); }
.social-link.youtube { color: var(--youtube-color); }

/* ========================================
   Content Section
   ======================================== */

.content-section {
    padding: var(--spacing-xl) var(--spacing-xl);
    background: var(--secondary-bg);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-block {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.content-block:nth-child(1) { animation-delay: 0.1s; }
.content-block:nth-child(3) { animation-delay: 0.2s; }
.content-block:nth-child(5) { animation-delay: 0.3s; }
.content-block:nth-child(7) { animation-delay: 0.4s; }
.content-block:nth-child(9) { animation-delay: 0.5s; }
.content-block:nth-child(11) { animation-delay: 0.6s; }
.content-block:nth-child(13) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    text-align: center;
    color: var(--accent-color);
    line-height: 1.3;
}

.description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all var(--transition-base);
}

.highlight-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.highlight-link:hover {
    color: var(--accent-hover);
}

.highlight-link:hover::after {
    transform: scaleX(1);
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--geo-color-1));
    margin: var(--spacing-lg) auto;
    border-radius: 1px;
    opacity: 0.6;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Desktop Layout - Horizontal */
@media (min-width: 769px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-4xl);
        min-height: 70vh;
    }
    
    .hero-left {
        flex: 0 0 auto;
        width: auto;
    }
    
    .hero-right {
        flex: 1;
        text-align: left;
        align-items: flex-start;
        padding-left: var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .hero-divider {
        margin: 0;
    }
    
    /* Keep social media centered in left section */
    .hero-left .social-media {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Header */
    .nav-container {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        transform: translateY(-100%);
        transition: transform var(--transition-base);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .cta-button {
        order: -1;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
    
    /* Nested dropdown on mobile */
    .nested-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: var(--primary-bg);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-left: var(--spacing-md);
        padding-left: var(--spacing-md);
        border-left: 2px solid rgba(0, 212, 170, 0.3);
    }
    
    /* Brand */
    .brand-name {
        font-size: var(--font-size-lg);
    }
    
    .brand-subtitle {
        font-size: var(--font-size-xs);
    }
    
    /* Hero */
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .profile-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .social-media {
        gap: var(--spacing-md);
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    /* Content */
    .content-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .main-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .description {
        font-size: var(--font-size-base);
    }
    
    /* Geometric shapes - smaller on mobile */
    .geo-shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .geo-shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-shape-3 {
        width: 110px;
        height: 110px;
    }
    
    .geo-shape-4 {
        width: 80px;
        height: 80px;
    }
    
    .geo-shape-5 {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .profile-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .main-title {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   Performance Optimizations
   ======================================== */

/* Hardware acceleration for animations */
.profile-image-wrapper,
.social-link,
.nav-link,
.cta-button,
.geo-shape {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .geometric-bg {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #000000;
        --secondary-bg: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --accent-color: #00ff88;
    }
}

/* Print styles */
@media print {
    .header,
    .social-media,
    .geometric-bg {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   Books Section Styles
   ======================================== */

.books-section {
    min-height: 100vh;
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, 
        var(--background-color) 0%, 
        var(--background-secondary) 50%,
        var(--background-color) 100%);
    position: relative;
    overflow: hidden;
}

.books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 170, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.books-section .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.books-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #00b894);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Books Hero */
.books-hero {
    display: block;
    margin-bottom: var(--spacing-4xl);
    padding: var(--spacing-3xl);
    background: var(--background-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.books-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.books-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.books-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.books-hero-description:last-child {
    margin-bottom: 0;
}

/* Book Categories */
.book-categories {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.book-category {
    background: var(--background-secondary);
    border-radius: 20px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.book-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

/* Book Collection (for Taleb series) */
.book-collection {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: var(--background-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.collection-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.collection-title .book-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.collection-title .book-link:hover {
    color: #00b894;
}

.collection-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Book Cards */
.book-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    transition: background 0.3s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.book-card:hover::before {
    background: linear-gradient(90deg, var(--accent-color), #00b894);
}

/* Technical books */
.book-card.technical {
    border-left: 4px solid #74b9ff;
}

/* Free books */
.book-card.free {
    border-left: 4px solid #00b894;
}

/* Currently reading */
.book-card.reading {
    border-left: 4px solid #fdcb6e;
    background: linear-gradient(135deg, 
        var(--background-color) 0%, 
        rgba(253, 203, 110, 0.02) 100%);
}

/* Book Links */
.book-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: block;
    display: flex;
    align-items: center;
}

.book-link:hover {
    color: var(--accent-color);
}

.book-link strong {
    font-weight: 700;
    color: var(--accent-color);
}

/* Favorite Star */
.favorite-star {
    font-size: 14px;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.external-link {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.external-link:hover {
    color: #00b894 !important;
    text-decoration: underline;
}

/* Book Genre Tags */
.book-genre {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    display: block;
    margin-top: var(--spacing-xs);
}

/* Badges */
.free-badge, .technical-note {
    display: inline-block;
    background: var(--accent-color);
    color: var(--background-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: var(--spacing-xs);
}

.technical-note {
    background: #74b9ff;
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
}

/* Books Loading */
.books-loading {
    text-align: center;
    padding: var(--spacing-4xl);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.books-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Books Error */
.books-error {
    text-align: center;
    padding: var(--spacing-4xl);
    background: var(--background-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
}

.books-error h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.4rem;
}

.books-error p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.retry-button {
    background: var(--accent-color);
    color: var(--background-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Books Footer */
.books-footer {
    margin-top: var(--spacing-4xl);
    padding: var(--spacing-xl);
    background: var(--background-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.footer-note {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-note strong {
    color: var(--accent-color);
}

/* Books Section Responsive Design */
@media (max-width: 768px) {
    .books-hero-content {
        padding: 0;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .book-category {
        padding: var(--spacing-xl);
    }
    
    .book-collection {
        padding: var(--spacing-lg);
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .books-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .books-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .book-card {
        padding: var(--spacing-md);
    }
    
    .category-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

/* ========================================
   Enhanced SPA Styles
   ======================================== */

/* Section Error Handling */
.section-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
}

.section-error .error-content {
    max-width: 500px;
}

.section-error h3 {
    color: #ff6b6b;
    margin-bottom: var(--spacing-md);
}

.section-error p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.retry-button {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.retry-button:hover {
    background: var(--accent-hover);
}

/* Loading States */
.section-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.section-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-sm);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Navigation States */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

/* Smooth slide transitions */
.slide {
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.slide:not(.active) {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Enhanced Books Section Error */
.books-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.books-error h3 {
    color: #ff6b6b;
    margin-bottom: var(--spacing-md);
}

.books-error p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Performance Optimizations */
.books-container {
    contain: layout style paint;
}

.slide {
    contain: layout style paint;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .section-loading::before {
        animation: none;
    }
}

/* Focus improvements for keyboard navigation */
.retry-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ========================================
   Work Section Enhanced Styles
   ======================================== */

/* Work Overview Page */
.work-overview {
    animation: fadeIn 0.5s ease-in;
}

.work-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.work-area-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.work-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.work-area-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.work-area-card:hover::before {
    transform: scaleX(1);
}

.work-area-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.work-area-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.work-area-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.work-area-cta {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.work-area-card:hover .work-area-cta {
    color: var(--accent-hover);
}

/* Mobile responsiveness for work overview */
@media (max-width: 768px) {
    .work-areas-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .work-area-card {
        padding: var(--spacing-md);
    }
    
    .work-area-icon {
        font-size: 2rem;
    }
    
    .work-area-card h3 {
        font-size: 1.1rem;
    }
}

/* Subsection Navigation */
.subsection-nav {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.back-to-overview {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-to-overview:hover {
    color: var(--accent-color);
    background: rgba(0, 212, 170, 0.1);
}

/* Work Subsections */
.work-subsections {
    position: relative;
    min-height: 400px;
    display: none; /* Hidden by default, shown when navigating to subsection */
}

.work-subsection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.work-subsection.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.work-subsection.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* Blog Subsections */
.blog-subsections {
    position: relative;
    min-height: 400px;
    display: none; /* Hidden by default, shown when navigating to subsection */
}

.blog-subsection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.blog-subsection.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog-subsection.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

.subsection-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.subsection-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.subsection-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Styling */
.chi-sono-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.chi-sono-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: justify;
}

.chi-sono-content p strong {
    color: var(--accent-color);
    font-weight: 700;
}

.articles-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.articles-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-xl);
}

/* Projects Section */
.projects-container,
.startups-container {
    margin-top: var(--spacing-xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.project-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.project-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.completed {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent-color);
}

.project-status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-footer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* Projects Loading and Error States */
.projects-loading, .projects-error,
.startups-loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.projects-error .retry-button {
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: var(--spacing-md);
    transition: opacity 0.3s ease;
}

.projects-error .retry-button:hover {
    opacity: 0.8;
}

/* Services Grid (Consulenza) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.service-card h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.service-cta p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Tutoring Section (Ripetizioni) */
.tutoring-highlights {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.highlight-stat {
    text-align: center;
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.tutoring-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.tutoring-column h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Collaboration Section (Lavoriamo Insieme) */
.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.collaboration-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.collaboration-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.collab-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.collaboration-card h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.collaboration-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.collaboration-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.collaboration-cta p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Startup Section */
.startup-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.startup-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.startup-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.15);
}

.startup-card h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.startup-card p {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.startup-list {
    list-style: none;
    padding: 0;
}

.startup-list li {
    color: var(--text-secondary);
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.startup-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.startup-cta {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.startup-cta p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

/* Master Section */
.master-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.master-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.master-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.master-card h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: 600;
}

.master-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Work Section */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .tutoring-highlights {
        gap: var(--spacing-md);
    }
    
    .highlight-stat {
        min-width: 100px;
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .collaboration-grid {
        grid-template-columns: 1fr;
    }
    
    .tutoring-services {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .tutoring-highlights {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Podcast Section Overview Styles
   ======================================== */

/* Podcast Overview Page */
.podcast-overview {
    animation: fadeIn 0.5s ease-in;
}

.podcast-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.podcast-area-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.podcast-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.podcast-area-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.podcast-area-card:hover::before {
    transform: scaleX(1);
}

.podcast-area-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.podcast-area-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.podcast-area-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.podcast-area-cta {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.podcast-area-card:hover .podcast-area-cta {
    color: var(--accent-hover);
}

/* ========================================
   Blog Section Overview Styles
   ======================================== */

/* Blog Overview Page */
.blog-overview {
    animation: fadeIn 0.5s ease-in;
}

.blog-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.blog-area-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.blog-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-area-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.blog-area-card:hover::before {
    transform: scaleX(1);
}

.blog-area-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.blog-area-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.blog-area-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.blog-area-cta {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-area-card:hover .blog-area-cta {
    color: var(--accent-hover);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .podcast-areas-grid,
    .blog-areas-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .podcast-area-card,
    .blog-area-card {
        padding: var(--spacing-md);
    }
    
    .podcast-area-icon,
    .blog-area-icon {
        font-size: 2rem;
    }
    
    .podcast-area-card h3,
    .blog-area-card h3 {
        font-size: 1.1rem;
    }
}

/* ========================================
   Blog Articles Grid and Article Display
   ======================================== */

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.blog-article-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.blog-article-card:hover::before {
    transform: scaleX(1);
}

.blog-article-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.blog-article-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.blog-article-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.blog-article-card-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
}

.blog-article-card-cta {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.blog-article-card:hover .blog-article-card-cta {
    color: var(--accent-hover);
}

/* Blog article container and content */
.blog-article-container {
    display: none;
    min-height: 60vh;
}

.blog-article {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-article.active {
    opacity: 1;
}

.blog-article.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-article-content {
    margin-top: var(--spacing-lg);
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-article-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.blog-article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-article-content em {
    color: var(--accent-color);
    font-style: italic;
}

.blog-article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.no-articles {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl);
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    color: #ff6b6b;
    padding: var(--spacing-xl);
    font-size: 1rem;
}

/* Mobile responsiveness for blog articles */
@media (max-width: 768px) {
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .blog-article-card {
        padding: var(--spacing-md);
    }
    
    .blog-article-card-icon {
        font-size: 2rem;
    }
    
    .blog-article-card-title {
        font-size: 1.1rem;
    }
    
    .blog-article {
        padding: var(--spacing-lg);
    }
    
    .blog-article-content {
        font-size: 0.95rem;
    }
}