:root {
    --primary-color: #1d1d1f;
    --secondary-color: #f5f5f7;
    --accent-color: #0071e3;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --white: #ffffff;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 16px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Global Background - Robot Arm */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('./prova_robot_crop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

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

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

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

.nav-logo span {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

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

.contact-trigger {
    position: relative;
}

.contact-trigger:hover {
    color: #667eea !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    gap: 0;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: absolute;
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 6px;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    padding: 80px 0 40px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.profile-img {
    width: 425px;
    height: 425px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 2;
    transition: transform 0.8s ease;
    cursor: pointer;
}

.info-btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    white-space: nowrap;
    padding: 0;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    border: 1px solid #667eea;
    width: auto;
    padding: 12px 16px;
}

.info-btn i {
    width: 20px;
    height: 20px;
    color: white;
    stroke: white;
    transition: all 0.3s ease;
    display: block;
}

.info-btn:hover i,
.info-btn:hover svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.info-btn .btn-text {
    display: none;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.info-btn:hover .btn-text {
    display: block;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.name-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-title-container {
    margin-bottom: 24px;
}

.hero-greeting {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    opacity: 1 !important;
    transform: none !important;
}

.hero-title {
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    box-shadow: var(--shadow-medium);
}

.scroll-indicator {
    position: fixed;
    bottom: 1.875rem;
    right: 2.5rem;
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(10px); }
}

.scroll-arrow-up {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-bottom: none;
    border-left: none;
    transform: rotate(-45deg) translate(-3px, 3px);
}

/* About Section */
.about {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-description p:not(:first-child) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-description p.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 24px;
    justify-content: center;
    align-items: center;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.label-line {
    display: block;
}

.about-images {
    position: relative;
}

.image-slider {
    position: relative;
    height: 600px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: none;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.slider-nav:hover i {
    color: #667eea !important;
    stroke: #667eea !important;
}

.slider-nav:hover svg {
    color: #667eea !important;
    stroke: #667eea !important;
}

.slider-nav i {
    width: 20px;
    height: 20px;
    color: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
    fill: none !important;
}

.slider-nav svg {
    color: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
    fill: none !important;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-zoom-out img {
    object-fit: contain;
    object-position: center;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #667eea;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: var(--secondary-color);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background: var(--white);
    box-shadow: none;
}

.project-card:hover {
    box-shadow: var(--shadow-medium);
}

.project-card.expanded {
    transform: none;
    box-shadow: var(--shadow-heavy);
}

.card-toggle-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500 !important;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    white-space: nowrap;
}

.card-toggle-btn .btn-text {
    font-weight: 500 !important;
    font-size: 1rem !important;
    font-family: var(--font-primary) !important;
}

.pdf-download-btn .pdf-btn-text {
    font-weight: 500 !important;
    font-size: 1rem !important;
    font-family: var(--font-primary) !important;
}

.pdf-download-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    white-space: nowrap;
}

.pdf-download-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    border-color: #667eea;
    font-weight: 600 !important;
}

.pdf-download-btn i {
    width: 20px;
    height: 20px;
}

.card-toggle-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #667eea;
    border-color: #667eea;
    font-weight: 600 !important;
}

.card-toggle-btn:hover .btn-text {
    font-weight: 600 !important;
}

.project-card.expanded .card-toggle-btn .btn-text {
    display: none;
}

.project-card.expanded .card-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-weight: 500 !important;
}

.card-toggle-btn .btn-icon {
    width: 16px;
    height: 16px;
    stroke-width: 3;
}

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 24px;
    position: relative;
}

.project-image {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-summary h3 {
    font-size: 1.8rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.project-brief {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.project-tech {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
}

.project-tech span {
    color: #667eea;
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-tech span:not(:last-child)::after {
    content: "•";
    color: #667eea;
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out;
    background: var(--secondary-color);
}

.project-card.expanded .project-details {
    max-height: 5000px;
}

.project-content {
    padding: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.content-section li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* My Journey Section */
.journey {
    padding: 120px 0;
    background: var(--secondary-color);
}

.journey-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.journey-column {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    transition: all 0.3s ease;
}

.journey-column:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.journey-column-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.journey-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.journey-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.journey-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.journey-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.journey-date-text {
    text-align: right;
}

.journey-date-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-align: left;
}

.journey-details h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-institution {
    font-size: 1.1rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 12px;
}

.journey-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.journey-grade,
.journey-achievement {
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

/* Competences Section */
.competences {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.competences::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.competence-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.competence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #667eea;
    box-shadow: none;
    backdrop-filter: blur(10px);
    cursor: default;
    transform: none;
}

/* FAQ Section */
.faq {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #667eea;
}

.faq-question h3 {
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-icon svg {
    width: 24px;
    height: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: none;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.image-modal-close:hover i,
.image-modal-close:hover svg {
    color: #667eea !important;
    stroke: #667eea !important;
}

.image-modal-close i,
.image-modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary) !important;
    stroke: var(--text-primary) !important;
    fill: none !important;
}

@media (max-width: 768px) {
    .image-modal {
        padding: 20px;
    }
    
    .image-modal-close {
        top: 15px;
        right: 15px;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .project-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .project-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .competences-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .journey-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 60px 20px 40px 20px;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 1001;
        border-top: 1px solid rgba(102, 126, 234, 0.2);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 15px 30px;
        border-radius: 30px;
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--text-primary);
        min-width: 200px;
        text-align: center;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: transparent;
        color: #667eea;
        border: none;
    }
    
    body::before {
        background-attachment: scroll;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px 0;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-image {
        min-height: auto;
        margin-bottom: 20px;
    }
    
    .profile-img {
        width: 280px;
        height: 280px;
        object-fit: contain;
    }
    
    .image-glow {
        width: 300px;
        height: 300px;
    }
    
    .info-btn {
        left: 10px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .info-btn i {
        color: #667eea !important;
        stroke: #667eea !important;
    }
    
    .info-btn svg {
        color: #667eea !important;
        stroke: #667eea !important;
    }
    
    .info-btn:hover {
        transform: translateY(-50%);
        width: 40px;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .info-btn .btn-text {
        display: none !important;
    }
    
    .info-btn:hover .btn-text {
        display: none !important;
    }
    
    .info-btn:hover i,
    .info-btn:hover svg {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
        color: #667eea !important;
        stroke: #667eea !important;
    }
    
    .hero-greeting {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: nowrap;
        gap: 20px;
        margin-top: 40px;
        justify-content: space-between;
    }
    
    .stat {
        min-width: 0;
        flex: 1;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .image-slider {
        height: 400px;
    }
    
    .slide {
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide img {
        object-fit: contain;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
    
    .project-header {
        padding: 20px;
        padding-bottom: 20px;
    }
    
    .project-content {
        padding: 24px;
    }
    
    .project-summary h3 {
        font-size: 1.5rem;
    }
    
    .project-tech {
        margin-bottom: 10px;
    }
    
    .card-toggle-btn {
        top: 20px;
        right: 20px;
        padding: 8px 12px;
        font-size: 1rem;
        min-height: 36px;
    }
    
    .pdf-download-btn {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 12px;
        padding: 8px 12px;
        font-size: 1rem;
        min-height: 36px;
        display: inline-flex;
    }
    
    .card-toggle-btn .btn-icon {
        width: 14px;
        height: 14px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 15px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
    }
    
    .faq-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 0 50px 0;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .profile-img {
        width: 240px;
        height: 240px;
        object-fit: contain;
    }
    
    .image-glow {
        width: 260px;
        height: 260px;
    }
    
    .hero-greeting {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 15px;
        margin-top: 30px;
        justify-content: space-between;
    }
    
    .stat {
        min-width: 0;
        flex: 1;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .image-slider {
        height: 350px;
    }
    
    .slide {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slide img {
        object-fit: contain;
    }
    
    .project-header {
        padding: 16px;
        padding-bottom: 16px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-summary h3 {
        font-size: 1.3rem;
    }
    
    .project-brief {
        font-size: 1rem;
    }
    
    .project-tech span {
        font-size: 1rem;
    }
    
    .card-toggle-btn {
        top: 16px;
        right: 16px;
        padding: 6px 10px;
        font-size: 1rem;
        min-height: 32px;
    }
    
    .pdf-download-btn {
        padding: 6px 10px;
        font-size: 1rem;
        min-height: 32px;
        margin-top: 10px;
    }
    
    .floating-contact-btn,
    .scroll-indicator {
        min-width: 3rem;
        min-height: 3rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
        right: 1rem;
    }
    
    .floating-contact-btn {
        bottom: 4.5rem;
        right: 1rem;
    }
    
    .faq-question {
        padding: 20px 0;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 12px;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
    
    .faq-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 6.25rem;
    right: 2.5rem;
    width: 3.125rem;
    height: 3.125rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.floating-contact-btn.show {
    opacity: 1;
    visibility: visible;
}

.floating-contact-btn.hide-at-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-indicator.hide-at-footer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-to-top.hide-at-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.floating-contact-btn.expanded {
    height: 170px;
    border-radius: 25px;
    bottom: 110px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-heavy);
    border: 1px solid #667eea;
}

.contact-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.floating-contact-btn.expanded .contact-btn-icon {
    opacity: 0;
    transform: scale(0);
    width: 0;
    height: 0;
}

.contact-expanded-content {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease 0.1s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.floating-contact-btn.expanded .contact-expanded-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease 0.15s;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.floating-contact-item:hover {
    transform: scale(1.1);
}

.floating-contact-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-contact-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}