/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language switching - hide elements with language attributes initially */
[data-it][data-en] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-it][data-en].lang-ready {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Palette Colori Personalizzata - Blu Elettrico, Giallo Fluo, Nero Opaco */
:root {
    /* Colori Principali */
    --electric-blue: #0066FF;
    --electric-blue-light: #3385FF;
    --electric-blue-dark: #0052CC;
    --fluorescent-yellow: #FFFF00;
    --fluorescent-yellow-soft: #FFFF66;
    --fluorescent-yellow-dark: #E6E600;
    --matte-black: #1A1A1A;
    --matte-black-light: #2D2D2D;
    --matte-black-soft: #404040;
    
    /* Colori Complementari */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --dark-gray: #666666;
    
    /* Gradients Personalizzati */
    --primary-gradient: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-dark) 100%);
    --accent-gradient: linear-gradient(135deg, var(--fluorescent-yellow) 0%, var(--fluorescent-yellow-dark) 100%);
    --dark-gradient: linear-gradient(135deg, var(--matte-black) 0%, var(--matte-black-light) 100%);
    --electric-gradient: linear-gradient(135deg, var(--electric-blue) 0%, var(--fluorescent-yellow) 100%);
    --hero-gradient: linear-gradient(135deg, var(--electric-blue) 0%, var(--matte-black) 100%);
    
    /* Mobile Properties */
    --vh: 1vh;
    --mobile-padding: 1rem;
    --mobile-font-size: 0.9rem;
    --touch-target-size: 44px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    background: var(--electric-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: white;
    background: var(--primary-gradient);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(0, 102, 255, 0.4),
        0 4px 15px rgba(26, 26, 26, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    background: var(--electric-gradient);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--hero-gradient);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="80" fill="url(%23a)"/></svg>');
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}





.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Floating Card */
.floating-card {
    position: relative;
    animation: floatCard 6s infinite ease-in-out;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.code-snippet {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 32px;
    align-items: center;
}

.dot {
    width: 46px;
    height: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: transparent;
    border: none;
    font-family: 'Segoe MDL2 Assets', 'Segoe UI Symbol', sans-serif;
}

/* Minimize button */
.dot.green { 
    background: transparent; 
}
.dot.green::after { 
    content: '🗕'; 
    font-size: 10px;
}
.dot.green:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Maximize button */
.dot.yellow { 
    background: transparent; 
}
.dot.yellow::after { 
    content: '🗖'; 
    font-size: 10px;
}
.dot.yellow:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Close button */
.dot.red { 
    background: transparent; 
}
.dot.red::after { 
    content: '🗙'; 
    font-size: 10px;
}
.dot.red:hover {
    background: #e81123;
    color: white;
}

.code-content {
    font-family: 'Monaco', monospace;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--electric-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--electric-gradient);
}

.profile-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-avatar i {
    font-size: 3.5rem;
    color: white;
    z-index: 2;
    position: relative;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.profile-title {
    color: var(--electric-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.location-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.location-info-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.location-info-compact i {
    color: var(--electric-blue);
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #059669;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-indicator.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
}

.intro-text h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--electric-gradient);
    border-radius: 2px;
}

.intro-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.passion-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(255, 255, 0, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.25rem;
}

.highlight-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--electric-gradient);
}

.info-card.education .card-decoration {
    background: var(--primary-gradient);
}

.info-card.goals .card-decoration {
    background: var(--accent-gradient);
}

.info-card.interests .card-decoration {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--fluorescent-yellow) 100%);
}

.info-card.location .card-decoration {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card.goals .card-icon {
    background: var(--accent-gradient);
}

.info-card.interests .card-icon {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--fluorescent-yellow) 100%);
}

.info-card.location .card-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.progress-info span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--electric-blue);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-left: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.goal-item i {
    color: #10b981;
    font-size: 1rem;
}

.goal-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0ea5e9;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: scale(1.05);
}

.interest-tag i {
    font-size: 0.875rem;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
}

.location-item i {
    color: #10b981;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.status-indicator.active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.availability-status span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

/* Languages Showcase */
.languages-showcase {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.languages-showcase h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.languages-showcase h3::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.language-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.lang-flag {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.lang-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.lang-level {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.native-level {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.intermediate-level {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.proficiency-bars {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.proficiency-bar {
    width: 24px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
}

.proficiency-bar.full {
    background: var(--primary-gradient);
    border: 1px solid var(--electric-blue);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-intro {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-description {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

.about-highlight {
    background: rgba(0, 102, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--electric-blue);
    margin-top: 1rem;
}

.about-highlight p {
    color: #475569;
    font-style: italic;
    margin: 0;
    font-size: 1rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.card-icon i {
    font-size: 1.75rem;
    color: white;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.about-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.languages-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.languages-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(30px, -30px);
}

.languages-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.languages-section h3::before {
    content: '🌐';
    font-size: 1.5rem;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.language-item:hover {
    transform: translateX(5px);
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.language-item .flag {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lang-name {
    font-weight: 600;
    flex: 1;
    font-size: 1rem;
}

.lang-level {
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 102, 255, 0.1);
    color: var(--electric-blue);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.language-item:hover .lang-level {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.skills-container {
    display: grid;
    gap: 3rem;
}

.skills-category {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.skills-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Programming Languages Grid - Modern Hexagonal Design */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    justify-items: center;
}

.skill-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 102, 255, 0.3),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-12px) rotateX(10deg);
    box-shadow: 
        0 25px 50px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 102, 255, 0.3);
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotateY(15deg);
    background: var(--primary-gradient);
    box-shadow: 
        0 15px 35px rgba(0, 102, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Preserve original colors on hover */
.skill-card:nth-child(1):hover .skill-icon {
    color: #f89820; /* Java Orange */
    background: linear-gradient(135deg, rgba(248, 152, 32, 0.15) 0%, rgba(248, 152, 32, 0.05) 100%);
}

.skill-card:nth-child(2):hover .skill-icon {
    color: #3776ab; /* Python Blue */
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.15) 0%, rgba(55, 118, 171, 0.05) 100%);
}

.skill-card:nth-child(3):hover .skill-icon {
    color: #f7df1e; /* JavaScript Yellow */
    background: linear-gradient(135deg, rgba(247, 223, 30, 0.15) 0%, rgba(247, 223, 30, 0.05) 100%);
}

.skill-card:nth-child(4):hover .skill-icon {
    color: #e34f26; /* HTML5 Orange/Red */
    background: linear-gradient(135deg, rgba(227, 79, 38, 0.15) 0%, rgba(227, 79, 38, 0.05) 100%);
}

.skill-card:nth-child(5):hover .skill-icon {
    color: #336791; /* SQL/Database Blue */
    background: linear-gradient(135deg, rgba(51, 103, 145, 0.15) 0%, rgba(51, 103, 145, 0.05) 100%);
}

.skill-card:nth-child(6):hover .skill-icon {
    color: #a8b9cc; /* C Language Gray/Blue */
    background: linear-gradient(135deg, rgba(168, 185, 204, 0.15) 0%, rgba(168, 185, 204, 0.05) 100%);
}

.skill-card:hover h4 {
    color: var(--electric-blue);
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--electric-blue);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Original Language Colors */
.skill-card:nth-child(1) .skill-icon {
    color: #f89820; /* Java Orange */
}

.skill-card:nth-child(2) .skill-icon {
    color: #3776ab; /* Python Blue */
}

.skill-card:nth-child(3) .skill-icon {
    color: #f7df1e; /* JavaScript Yellow */
}

.skill-card:nth-child(4) .skill-icon {
    color: #e34f26; /* HTML5 Orange/Red */
}

.skill-card:nth-child(5) .skill-icon {
    color: #336791; /* SQL/Database Blue */
}

.skill-card:nth-child(6) .skill-icon {
    color: #a8b9cc; /* C Language Gray/Blue */
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover .skill-icon::before {
    left: 100%;
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.skill-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    transition: color 0.3s ease;
}

.skill-level {
    text-align: center;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid #cbd5e1;
}

.skill-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 102, 255, 0.2);
}

.skill-level span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

/* Tools Grid - Modern Card Style */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    justify-items: center;
}

.tool-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tool-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 102, 255, 0.3),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.tool-item:hover::before {
    opacity: 1;
}

.tool-item:hover {
    transform: translateY(-12px) rotateX(10deg);
    box-shadow: 
        0 25px 50px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 102, 255, 0.3);
}

.tool-item:hover .tool-icon {
    transform: scale(1.15) rotateY(15deg);
    box-shadow: 
        0 15px 35px rgba(0, 102, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

.tool-item:hover span {
    color: var(--electric-blue);
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-blue);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.tool-item:hover .tool-icon::before {
    left: 100%;
}

.tool-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Original IDE & Tool Colors */
.tool-item:nth-child(1) .tool-icon {
    color: #007ACC; /* VS Code Blue */
    background: rgba(0, 122, 204, 0.1);
}

.tool-item:nth-child(2) .tool-icon {
    color: #ff6b35; /* IntelliJ Orange/Red */
    background: rgba(255, 107, 53, 0.1);
}

.tool-item:nth-child(3) .tool-icon {
    color: #2c2255; /* Eclipse Purple */
    background: rgba(44, 34, 85, 0.1);
}

.tool-item:nth-child(4) .tool-icon {
    color: #21d789; /* PyCharm Green */
    background: rgba(33, 215, 137, 0.1);
}

.tool-item:nth-child(5) .tool-icon {
    color: #f05032; /* Git Orange */
    background: rgba(240, 80, 50, 0.1);
}

.tool-item:nth-child(6) .tool-icon {
    color: #fcc624; /* Linux Yellow */
    background: rgba(252, 198, 36, 0.1);
}

.tool-item:hover .tool-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Preserve original colors on hover for IDE tools */
.tool-item:nth-child(1):hover .tool-icon {
    color: #007ACC;
    background: rgba(0, 122, 204, 0.2);
}

.tool-item:nth-child(2):hover .tool-icon {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.2);
}

.tool-item:nth-child(3):hover .tool-icon {
    color: #2c2255;
    background: rgba(44, 34, 85, 0.2);
}

.tool-item:nth-child(4):hover .tool-icon {
    color: #21d789;
    background: rgba(33, 215, 137, 0.2);
}

.tool-item:nth-child(5):hover .tool-icon {
    color: #f05032;
    background: rgba(240, 80, 50, 0.2);
}

.tool-item:nth-child(6):hover .tool-icon {
    color: #fcc624;
    background: rgba(252, 198, 36, 0.2);
}

.tool-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* AI & Specialized Technologies - Modern Card Style */
.specialized-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    justify-items: center;
}

.spec-skill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.spec-skill::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 102, 255, 0.3),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-skill::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.spec-skill:hover::before {
    opacity: 1;
}

.spec-skill:hover {
    transform: translateY(-12px) rotateX(10deg);
    box-shadow: 
        0 25px 50px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 102, 255, 0.3);
}

.spec-skill:hover .spec-icon {
    transform: scale(1.15) rotateY(15deg);
    box-shadow: 
        0 15px 35px rgba(0, 102, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

.spec-skill:hover h4 {
    color: var(--electric-blue);
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.spec-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--electric-blue);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Original AI & Specialized Technology Colors */
.spec-skill:nth-child(1) .spec-icon {
    color: #ff6b6b; /* AI Brain Red/Orange */
}

.spec-skill:nth-child(2) .spec-icon {
    color: #00d2d3; /* Arduino Teal */
}

.spec-skill:nth-child(3) .spec-icon {
    color: #ff9ff3; /* 3D Printing Pink */
}

.spec-skill:nth-child(4) .spec-icon {
    color: #54a0ff; /* Vaadin Blue */
}

.spec-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.spec-skill:hover .spec-icon::before {
    left: 100%;
}

.spec-skill h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Preserve original colors on hover */
.spec-skill:nth-child(1):hover .spec-icon {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.spec-skill:nth-child(2):hover .spec-icon {
    color: #00d2d3;
    background: rgba(0, 210, 211, 0.2);
}

.spec-skill:nth-child(3):hover .spec-icon {
    color: #ff9ff3;
    background: rgba(255, 159, 243, 0.2);
}

.spec-skill:nth-child(4):hover .spec-icon {
    color: #54a0ff;
    background: rgba(84, 160, 255, 0.2);
}

/* Hide the spec-content as we're now using card style */
.spec-content {
    display: none;
}

/* Database & Tools - Modern Card Style */
.database-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    justify-items: center;
}

.db-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    box-shadow: 
        0 8px 32px rgba(0, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.db-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(0, 102, 255, 0.3),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.db-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.db-item:hover::before {
    opacity: 1;
}

.db-item:hover {
    transform: translateY(-12px) rotateX(10deg);
    box-shadow: 
        0 25px 50px rgba(0, 102, 255, 0.25),
        0 0 0 1px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 102, 255, 0.3);
}

.db-item:hover .db-icon {
    transform: scale(1.15) rotateY(15deg);
    box-shadow: 
        0 15px 35px rgba(0, 102, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

.db-item:hover h4 {
    color: var(--electric-blue);
    transform: translateY(-5px);
    text-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.db-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--electric-blue);
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

/* Original Database & Tools Colors */
.db-icon.postgresql {
    color: #336791; /* PostgreSQL Blue */
}

.db-icon.sqlite {
    color: #003B57; /* SQLite Dark Blue */
}

.db-icon.latex {
    color: #008080; /* LaTeX Teal */
}

.db-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.db-item:hover .db-icon::before {
    left: 100%;
}

.db-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Preserve original colors on hover */
.db-item:hover .db-icon.postgresql {
    color: #336791;
    background: rgba(51, 103, 145, 0.2);
}

.db-item:hover .db-icon.sqlite {
    color: #003B57;
    background: rgba(0, 59, 87, 0.2);
}

.db-item:hover .db-icon.latex {
    color: #008080;
    background: rgba(0, 128, 128, 0.2);
}

/* Hide the db-info span as we're now using card style */
.db-info span {
    display: none;
}

/* Skills Animation */
.skills-category[data-animated="true"] .skill-progress {
    animation: fillProgress 1.5s ease-in-out forwards;
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }
    100% {
        width: var(--target-width);
    }
}

/* Experience Section */
.experience {
    background: white;
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--electric-blue);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
    z-index: 2;
}

.experience-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.experience-card.featured {
    border: 2px solid var(--electric-blue);
    transform: scale(1.02);
}

.experience-card.featured::before {
    height: 6px;
    background: var(--accent-gradient);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.experience-card.featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-header {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.3;
}

.company {
    color: var(--electric-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.period {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

.description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.link:hover {
    color: var(--fluorescent-yellow);
    border-bottom-color: var(--fluorescent-yellow);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(0, 102, 255, 0.1);
    color: var(--electric-blue);
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.tech-tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--electric-blue);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 102, 255, 0.2);
    align-self: flex-start;
    width: fit-content;
}

.project-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.project-link i {
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: var(--light-gray);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.contact-details a {
    color: var(--electric-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--fluorescent-yellow);
    text-decoration: underline;
}

.contact-cta {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.contact-cta p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-cta .btn {
    background: var(--primary-gradient);
    color: white;
}

.contact-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--matte-black);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--electric-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
}

.lang-toggle {
    position: relative;
    display: inline-block;
}

.lang-checkbox {
    display: none;
}

.lang-slider {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0.15rem;
    border: 1px solid rgba(0, 102, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scale: 0.8;
    box-shadow: 
        0 8px 32px rgba(0, 102, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-slider:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(0, 102, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    min-width: 70px;
    justify-content: center;
}

.lang-option .flag {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lang-option .lang-text {
    letter-spacing: 0.5px;
    font-weight: 700;
}

.slider-bg {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    height: calc(100% - 0.5rem);
    background: var(--primary-gradient);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.4),
        0 2px 8px rgba(0, 102, 255, 0.2);
}

.lang-checkbox:checked + .lang-slider .slider-bg {
    transform: translateX(100%);
}

.lang-option.active {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-checkbox:checked + .lang-slider .lang-option[data-lang="it"] {
    color: #64748b;
    text-shadow: none;
}

.lang-checkbox:checked + .lang-slider .lang-option[data-lang="en"] {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Education Section */
.education {
    background: var(--light-gray);
}

.education-content {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Education Card - Consistent with About Section */
.education-highlight {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.education-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.education-highlight:hover::before {
    transform: scaleX(1);
}

.education-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.highlight-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.education-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.institution-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.institution-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.education-highlight:hover .institution-logo::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.education-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.education-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: 0.5rem;
}

.education-info .location {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-info .location::before {
    content: '📍';
    font-size: 0.875rem;
}

.period-status {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.period {
    background: rgba(0, 102, 255, 0.1);
    color: var(--electric-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status.current {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status.completed {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.education-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Key Subjects Section - Consistent with Skills Section */
.subjects-grid {
    margin-top: 3rem;
}

.subjects-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.subjects-title::before {
    content: '📚';
    font-size: 1.5rem;
}

.subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subject-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subject-card:hover::before {
    transform: scaleX(1);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.subject-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.subject-icon.programming {
    background: var(--primary-gradient);
}

.subject-icon.algorithms {
    background: var(--accent-gradient);
}

.subject-icon.database {
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--fluorescent-yellow) 100%);
}

.subject-icon.math {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.subject-icon.engineering {
    background: linear-gradient(135deg, var(--fluorescent-yellow) 0%, #fee140 100%);
}

.subject-icon.ai {
    background: linear-gradient(135deg, var(--electric-blue) 0%, #fed6e3 100%);
}

.subject-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.subject-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-card li {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.subject-card li::before {
    content: '•';
    color: var(--electric-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Previous Education Section - Timeline Style like Experience */
.previous-education {
    margin-top: 3rem;
}

.previous-education h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.previous-education h3::before {
    content: '🎓';
    font-size: 1.5rem;
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.education-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 5rem;
}

.education-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--electric-blue);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
    z-index: 2;
}

.education-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.experience-icon:hover::before {
    left: 100%;
}

.experience-icon:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Specific Experience Icon Styles */
.experience-icon.simnova-project {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.experience-icon.simnova-project:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.experience-icon.university-projects {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.experience-icon.university-projects:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

.experience-icon.certification {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.experience-icon.certification:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

.experience-icon.extracurricular {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.experience-icon.extracurricular:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.header-content {
    flex: 1;
}

.header-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.header-content .company {
    color: var(--electric-blue);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.header-content .period {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

/* Responsive Design for Experience Icons */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .header-content h3 {
        font-size: 1.2rem;
    }
    
    .header-content .company {
        font-size: 1rem;
    }
    
    .header-content .period {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .experience-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .experience-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* University Projects - Individual Project Icons and Headers */
.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.project-icon:hover::before {
    left: 100%;
}

.project-icon:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Specific Project Icon Styles */
.project-icon.java-project {
    background: linear-gradient(135deg, #f89820 0%, #ed7914 100%);
}

.project-icon.java-project:hover {
    background: linear-gradient(135deg, #ff9f2e 0%, #f89820 100%);
    box-shadow: 0 12px 30px rgba(248, 152, 32, 0.4);
}

.project-icon.database-project {
    background: linear-gradient(135deg, #336791 0%, #2a5373 100%);
}

.project-icon.database-project:hover {
    background: linear-gradient(135deg, #4078a3 0%, #336791 100%);
    box-shadow: 0 12px 30px rgba(51, 103, 145, 0.4);
}

.project-icon.web-project {
    background: linear-gradient(135deg, #f7df1e 0%, #e6c700 100%);
    color: #333;
}

.project-icon.web-project:hover {
    background: linear-gradient(135deg, #fae533 0%, #f7df1e 100%);
    box-shadow: 0 12px 30px rgba(247, 223, 30, 0.4);
    color: #333;
}

.project-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.project-item:hover .project-header h4 {
    color: var(--dark-text);
    transform: translateX(5px);
}

/* Project Item Enhancements */
.project-item:hover .project-icon {
    transform: scale(1.1) rotateY(10deg);
}

/* Responsive Design for Project Icons */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }
    
    .project-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .project-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .project-icon {        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
