/* ==========================================================================
   Davide Diasio Portfolio - Luxury Theme (Nero / Blu / Oro)
   ========================================================================== */

:root {
    /* Color Palette - Dark Luxury Theme (Default) */
    --bg-main: #08090c;
    --bg-surface: rgba(18, 21, 30, 0.75);
    --bg-surface-hover: rgba(28, 33, 48, 0.88);
    --border-color: rgba(212, 175, 55, 0.18);
    --border-color-hover: rgba(212, 175, 55, 0.5);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    /* Accenti Oro & Blu */
    --accent-primary: #d4af37;        /* Gold Classic */
    --accent-secondary: #3b82f6;      /* Sapphire Blue */
    --accent-gold-light: #f3e5ab;     /* Champagne Gold */
    --accent-blue-deep: #1e3a8a;      /* Royal Deep Blue */
    
    --accent-glow: rgba(212, 175, 55, 0.12);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #b8860b 100%);
    --gradient-blue-gold: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    --gradient-cta: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);

    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
    
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables (Elegante Perla / Oro / Blu) */
html.light {
    --bg-main: #f8f9fa;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(184, 134, 11, 0.22);
    --border-color-hover: rgba(184, 134, 11, 0.55);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #94a3b8;
    
    --accent-primary: #b8860b;
    --accent-secondary: #1d4ed8;
    --accent-gold-light: #d4af37;
    --accent-blue-deep: #1e3a8a;
    
    --accent-glow: rgba(184, 134, 11, 0.1);
    --gradient-accent: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    --gradient-cta: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 25px rgba(184, 134, 11, 0.2);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Ambient Glow Backgrounds (Oro + Blu Zaffiro) */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.glow-1 {
    width: 550px;
    height: 550px;
    background: #1e3a8a; /* Deep Royal Blue */
    top: -120px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #b8860b; /* Gold Glow */
    bottom: -150px;
    left: -150px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Navbar */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(8, 9, 12, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

html.light .navbar-header {
    background: rgba(248, 249, 250, 0.85);
}

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

.nav-logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-cta {
    background: var(--accent-glow);
    color: var(--accent-primary) !important;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--accent-primary);
    transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
    background: var(--accent-primary);
    color: #000000 !important;
    font-weight: 600;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

/* Layout */
.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 24px 60px 24px;
    position: relative;
    z-index: 1;
}

.section-block {
    margin-bottom: 90px;
}

.section-header {
    margin-bottom: 32px;
}

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 6px;
}

h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 40px 0 80px 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
    border-color: rgba(212, 175, 55, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #0b0c10;
    border: none;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.25);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
    filter: brightness(1.08);
}

.btn-glass {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.hero-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.link-pill {
    text-decoration: none;
    transition: all var(--transition-fast);
}

.link-pill:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

/* Philosophy Section */
.story-card {
    padding: 36px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.story-icon {
    width: 54px;
    height: 54px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.story-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 16px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-text strong {
    color: var(--text-main);
}

/* Project Cards */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-card {
    padding: 32px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: var(--accent-glow);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.project-date {
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 1rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 20px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--accent-primary);
    margin-top: 4px;
}

.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(30, 58, 138, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 4px 10px;
    border-radius: 6px;
}

.project-actions {
    border-top: 1px dashed var(--border-color);
    padding-top: 18px;
}

.btn-card-action {
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-size: 0.88rem;
}

.btn-card-action:hover {
    background: var(--accent-primary);
    color: #0b0c10;
    font-weight: 700;
}

/* Timeline / Experience */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.timeline-item {
    padding: 28px;
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-company {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-muted);
}

.timeline-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.certifications-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cert-pill {
    font-size: 0.8rem;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* Skills Matrix */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    padding: 28px;
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-cat-header i {
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.skill-cat-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 18px;
}

.skill-list li::before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* CTA Box */
.cta-box {
    padding: 48px;
    text-align: center;
    background: var(--gradient-cta);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cta-box h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 2rem;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px auto;
}

.btn-large {
    background: var(--gradient-accent);
    color: #0b0c10;
    font-weight: 700;
    padding: 14px 32px;
    font-size: 1rem;
    border: none;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

/* Footer */
.footer-bar {
    border-top: 1px solid var(--border-color);
    padding: 30px 24px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-subtle);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .story-card {
        flex-direction: column;
        gap: 16px;
    }

    .cta-box {
        padding: 32px 20px;
    }
}
