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

:root {
    --primary-color: #a855f7;
    --primary-dark: #9333ea;
    --primary-light: #c084fc;
    --secondary-color: #7c3aed;
    --accent-color: #d946ef;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #0f0c1d;
    --bg-secondary: #1a1625;
    --bg-tertiary: #252030;
    --bg-card: rgba(26, 22, 37, 0.8);
    --bg-glass: rgba(168, 85, 247, 0.1);
    --border-color: rgba(168, 85, 247, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(168, 85, 247, 0.3);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f0c1d 0%, #1a1625 50%, #0f0c1d 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(217, 70, 239, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 12, 29, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    position: relative;
    z-index: 1002;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-light);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a0b2e 0%, #16213e 50%, #0f0c1d 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.8;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    right: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    color: white;
}

.btn.btn-cv {
    background: rgba(168, 85, 247, 0.1) !important;
    color: var(--primary-light) !important;
    border: 2px solid var(--primary-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn.btn-cv:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4) !important;
    color: white !important;
}

.btn.btn-cv span {
    font-size: 1.2rem !important;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.3),
        inset 0 0 40px rgba(168, 85, 247, 0.1);
    position: relative;
    animation: float 5s ease-in-out infinite;
}

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

.profile-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

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

.profile-placeholder svg {
    width: 200px;
    height: 200px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.mouse::before {
    content: '';
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

/* Ensure all sections have consistent padding */
.hero,
.about,
.experience,
.skills,
.projects,
.contact,
.education {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

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

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

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Experience Section */
.experience {
    background: var(--bg-primary);
    position: relative;
}

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

.experience-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--accent-color);
}

.experience-date {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.experience-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.experience-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Education Section */
.education {
    background: var(--bg-secondary);
    position: relative;
}

.education-content {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.education-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-item h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certificates {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificates:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

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

.certificates ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificates ul li:last-child {
    border-bottom: none;
}

.certificates ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.certificates ul li:hover {
    color: var(--text-primary);
    padding-left: 2rem;
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
    position: relative;
}

/* Skills Bars */
.skills-bars {
    max-width: 800px !important;
    margin: 0 auto 4rem !important;
    padding: 2rem !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 1rem !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    display: block !important;
}

.skills-bars-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: block !important;
}

.skill-bar-item {
    margin-bottom: 1.5rem !important;
    display: block !important;
    width: 100% !important;
}

.skill-bar-item:last-child {
    margin-bottom: 0 !important;
}

.skill-bar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

.skill-name {
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
}

.skill-percentage {
    font-weight: 600 !important;
    color: var(--primary-light) !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
}

.skill-bar {
    width: 100% !important;
    height: 10px !important;
    background: rgba(168, 85, 247, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    display: block !important;
}

.skill-bar-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
    border-radius: 10px !important;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5) !important;
    display: block !important;
}

/* Skill bar fill widths based on data-percentage attribute - fallback for when JS is disabled */
.skill-bar-fill[data-percentage="65"] {
    width: 65%;
}

.skill-bar-fill[data-percentage="70"] {
    width: 70%;
}

.skill-bar-fill[data-percentage="75"] {
    width: 75%;
}

.skill-bar-fill[data-percentage="80"] {
    width: 80%;
}

.skill-bar-fill[data-percentage="85"] {
    width: 85%;
}

.skill-bar-fill[data-percentage="90"] {
    width: 90%;
}

.skill-bar-fill[data-percentage="95"] {
    width: 95%;
}

.skill-bar-fill::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 150% !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        transparent 25%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 75%, 
        transparent 100%) !important;
    animation: shimmer-skill 2.5s linear infinite !important;
    will-change: transform !important;
}

@keyframes shimmer-skill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    position: relative;
    z-index: 1;
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-description {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
    position: relative;
}

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

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.project-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.project-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    position: relative;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero .container {
        gap: 3rem;
    }

    /* Contact Section */
    .contact-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .contact-info {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .contact-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: start !important;
    }

    .contact-item > div:first-child {
        flex-shrink: 0 !important;
    }

    .contact-item > div:last-child {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .contact-item p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    .contact-item a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        display: inline-block !important;
    }

    .profile-placeholder {
        width: 250px;
        height: 250px;
    }

    .profile-placeholder svg {
        width: 160px;
        height: 160px;
    }

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

/* Mobile and Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Navigation */
    .navbar .container {
        padding: 1rem 1.25rem;
    }

    .nav-brand {
        font-size: 1.25rem;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(15, 12, 29, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding-top: 4.5rem;
        padding-bottom: 2rem;
        border-top: none;
        gap: 0;
        z-index: 998;
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .greeting {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn.btn-cv {
        justify-content: center !important;
    }

    .hero-image {
        order: -1;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-placeholder svg {
        width: 130px;
        height: 130px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
        flex: 1;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    /* Experience Section */
    .experience-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .experience-content h3 {
        font-size: 1.25rem;
    }

    .experience-content h4 {
        font-size: 1rem;
    }

    .experience-content ul li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Skills Section */
    .skills-bars {
        padding: 1.5rem !important;
        margin-bottom: 3rem !important;
    }

    .skills-bars-title {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .skill-bar-item {
        margin-bottom: 1.25rem !important;
    }

    .skill-name {
        font-size: 0.9rem !important;
    }

    .skill-percentage {
        font-size: 0.85rem !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        font-size: 2.5rem;
    }

    .skill-title {
        font-size: 1.25rem;
    }

    .skill-description {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    /* Education Section */
    .education-item {
        padding: 1.5rem;
    }

    .education-item h3 {
        font-size: 1.25rem;
    }

    .certificates {
        padding: 1.5rem;
    }

    .certificates h3 {
        font-size: 1.25rem;
    }

    .certificates ul li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        padding: 1.25rem;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-item > div {
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .contact-item a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }

    .contact-item h3 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-icon {
        font-size: 1.75rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        gap: 1rem;
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1.1rem;
        z-index: 1002;
    }

    /* Hero */
    .hero {
        padding: 5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .name {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .profile-placeholder svg {
        width: 100px;
        height: 100px;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    /* Experience */
    .experience-item {
        padding: 1.25rem;
    }

    .experience-date {
        font-size: 0.85rem;
    }

    .experience-content h3 {
        font-size: 1.1rem;
    }

    .experience-content h4 {
        font-size: 0.95rem;
    }

    .experience-content ul li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    /* Skills */
    .skills-bars {
        padding: 1.25rem !important;
        margin-bottom: 2rem !important;
    }

    .skills-bars-title {
        font-size: 1.1rem !important;
    }

    .skill-name {
        font-size: 0.85rem !important;
    }

    .skill-percentage {
        font-size: 0.8rem !important;
    }

    .skill-bar {
        height: 8px !important;
    }

    .skill-card {
        padding: 1.25rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-title {
        font-size: 1.1rem;
    }

    .skill-description {
        font-size: 0.85rem;
    }

    /* Projects */
    .project-image {
        height: 150px;
    }

    .project-placeholder {
        font-size: 1.25rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    /* Education */
    .education-item {
        padding: 1.25rem;
    }

    .education-item h3 {
        font-size: 1.1rem;
    }

    .education-item h4 {
        font-size: 0.95rem;
    }

    .education-date {
        font-size: 0.85rem;
    }

    .certificates {
        padding: 1.25rem;
    }

    .certificates h3 {
        font-size: 1.1rem;
    }

    .certificates ul li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        padding-left: 1.25rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-item > div {
        width: 100%;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-item p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .contact-item a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }

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

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 1.25rem 0;
    }

    .footer p {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 120px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 0 2rem;
    }

    .profile-placeholder {
        width: 150px;
        height: 150px;
    }

    .profile-placeholder svg {
        width: 100px;
        height: 100px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .skill-card:hover,
    .project-card:hover,
    .experience-item:hover,
    .education-item:hover,
    .certificates:hover,
    .contact-item:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

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