/* ===================================
   Portfolio Website - Main Styles
   Author: Luis Fernando Chavez
   ===================================*/

/* Root Variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #48bb78;
    --dark-color: #1a202c;
    --gray-color: #4a5568;
    --light-gray: #718096;
    --lighter-gray: #a0aec0;
    --bg-color: #fafafa;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-2: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

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

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    letter-spacing: -0.2px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--dark-color);
}

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

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

.social-nav {
    display: flex;
    gap: 20px;
}

.social-nav a {
    color: var(--lighter-gray);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    padding: 8px;
    border-radius: 8px;
}

.social-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
    background: rgba(102, 126, 234, 0.1);
}

.nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.download-cv {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.download-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.download-cv:hover::before {
    left: 0;
}

.download-cv:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.get-in-touch {
    background: var(--gradient-1);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.get-in-touch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.get-in-touch:hover::before {
    left: 100%;
}

.get-in-touch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-color);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px var(--shadow-color);
    animation: fadeInDown 1s ease 0.2s both;
    backdrop-filter: blur(10px);
    position: relative;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-badge:hover::after {
    opacity: 0.1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: floatAround 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 2rem;
    color: var(--primary-color);
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 30%;
    right: 15%;
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 15%;
    font-size: 1.8rem;
    color: var(--accent-color);
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    bottom: 40%;
    right: 20%;
    font-size: 1.3rem;
    color: var(--primary-color);
    animation-delay: -15s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(15px) translateX(5px) rotate(270deg);
    }
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(72, 187, 120, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.4s both;
}

.rotating-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-width: 320px;
    text-align: left;
    transition: all 0.5s ease;
    position: relative;
}

.rotating-text::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: var(--gray-color);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
    font-size: 18px;
    color: var(--light-gray);
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: -0.2px;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

/* Geometric Decorations */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0.08;
    animation: float 25s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.06;
    animation: float 30s infinite ease-in-out reverse;
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: -0.2px;
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--white);
    position: relative;
}

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

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

.about-image {
    position: relative;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.profile-image-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    padding: 5px;
    background: var(--gradient-2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate 8s linear infinite;
}

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

.profile-placeholder {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 24px;
    line-height: 1.8;
    letter-spacing: -0.2px;
}

.highlight {
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Experience Timeline */
.experience {
    background: var(--white);
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-1);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.timeline-item {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    animation: fadeInLeft 0.8s ease forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation: fadeInRight 0.8s ease forwards;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 12px rgba(102, 126, 234, 0.3);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 800;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.company-logo:hover {
    transform: rotate(10deg) scale(1.1);
}

.job-meta h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.company-name {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.2px;
}

.job-period {
    font-size: 13px;
    color: var(--lighter-gray);
    background: var(--bg-color);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 500;
}

.job-description {
    font-size: 15px;
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    font-size: 18px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.tech-icon:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Skills Section */
.skills-container {
    text-align: center;
}

.skills-text {
    font-size: 16px;
    color: var(--light-gray);
    margin-bottom: 60px;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-transform: uppercase;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.3px;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.category-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    padding: 16px 8px;
    border-radius: 16px;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(102, 126, 234, 0.05);
}

.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.skill-item:hover .skill-icon {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transform: rotate(10deg);
}

.skill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-color);
    text-align: center;
    letter-spacing: -0.1px;
}

/* Projects Section */
.projects-header {
    margin-bottom: 80px;
}

.projects-subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.project-image {
    height: 240px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.project-card:hover .project-image::before {
    transform: translateX(100%);
}

.project-content {
    padding: 40px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.project-description {
    font-size: 15px;
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tech-tag {
    background: var(--bg-color);
    color: var(--gray-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    letter-spacing: -0.1px;
    transition: var(--transition);
}

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

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    letter-spacing: -0.2px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Contact Section */
.contact {
    background: var(--white);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.contact-card {
    background: var(--bg-color);
    padding: 48px 32px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

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

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    transition: var(--transition);
}

.contact-icon:hover {
    transform: rotate(10deg) scale(1.1);
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.contact-info {
    font-size: 15px;
    color: var(--gray-color);
    font-weight: 500;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d3748 100%);
    color: var(--lighter-gray);
    text-align: center;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-social a {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--lighter-gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.footer-text {
    font-size: 14px;
    letter-spacing: -0.2px;
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links, .social-nav, .nav-buttons {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
        padding: 16px 0;
    }

    .logo {
        font-size: 24px;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--dark-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background: rgba(102, 126, 234, 0.1);
        color: var(--primary-color);
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 24px;
    }

    .rotating-text {
        min-width: auto;
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 15px;
        justify-content: center;
    }

    /* About Section Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .profile-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-content h3 {
        font-size: 24px;
    }

    .about-content p {
        font-size: 15px;
    }

    /* Experience Timeline Mobile */
    .timeline-line {
        left: 20px;
        width: 2px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
        margin-bottom: 50px;
    }

    .timeline-content {
        width: 100%;
        padding: 24px;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .company-logo {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .job-meta h3 {
        font-size: 18px;
    }

    .company-name {
        font-size: 14px;
    }

    .job-period {
        font-size: 12px;
    }

    .job-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .tech-stack {
        gap: 8px;
    }

    .tech-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Skills Section Mobile */
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .skill-category {
        padding: 24px;
    }

    .category-title {
        font-size: 18px;
        gap: 12px;
        margin-bottom: 20px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .skill-item {
        padding: 8px 4px;
    }

    .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .skill-name {
        font-size: 11px;
    }

    /* Projects Section Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        border-radius: 16px;
    }

    .project-image {
        height: 180px;
        font-size: 3rem;
    }

    .project-content {
        padding: 24px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-tech {
        gap: 8px;
        margin-bottom: 20px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 6px 12px;
    }

    .project-links {
        gap: 12px;
    }

    .project-link {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 32px 24px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .contact-title {
        font-size: 16px;
    }

    .contact-info {
        font-size: 14px;
    }

    /* Section adjustments */
    .section {
        padding: 60px 0;
    }

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

    .section-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Footer Mobile */
    footer {
        padding: 60px 0 30px;
    }

    .footer-social {
        gap: 16px;
        margin-bottom: 24px;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .footer-text {
        font-size: 13px;
    }

    /* Hide decorative elements */
    .floating-elements,
    .floating-shapes,
    .hero::before,
    .hero::after {
        display: none;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .rotating-text {
        font-size: 1.6rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Skill Tooltip */
.skill-tooltip {
    position: absolute;
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus Visible Styles for Accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible,
.download-cv:focus-visible,
.get-in-touch:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.25);
}

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.social-nav a:focus-visible,
.footer-social a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    transform: translateY(-3px) scale(1.1);
}

.skill-item:focus-visible,
.tech-icon:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    transform: translateY(-4px) scale(1.1);
}