:root {
    --primary-color: #393748;
    --secondary-color: #7c62b9;
    --accent-color: #b94bb7;
    --dark-bg: #1f1f2b;
    --darker-bg: #151520;
    --card-bg: rgba(57, 55, 72, 0.5);
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --dark-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --glow-shadow: 0 0 20px rgba(124, 98, 185, 0.3);
    --neon-line: 0 0 5px rgba(185, 75, 183, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 98, 185, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(185, 75, 183, 0.1) 0%, transparent 20%);
    min-height: 100vh;
}

/* Adjust hero section layout */
.hero {
    min-height: 100vh;
    height: 100vh; /* Force exact viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem; /* Remove vertical padding */
    position: relative;
}

/* Enhanced grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--darker-bg) 21px, transparent 1%) center,
        linear-gradient(var(--darker-bg) 21px, transparent 1%) center,
        rgba(124, 98, 185, 0.2);
    background-size: 22px 22px;
    opacity: 0.1;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

.hero-content {
    background: rgba(31, 31, 43, 0.3);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(124, 98, 185, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    opacity: 0;
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
    max-height: 70vh; /* Limit height to ensure scroll indicator is visible */
    margin-bottom: 0;
    margin-top: -5vh;
}

/* Enhanced hero title */
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--white) 30%, rgba(124, 98, 185, 0.8) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.hero .title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Enhanced profile image */
.profile-image {
    width: 180px;
    height: 180px;
    border: none;
    position: relative;
    z-index: 2;
}

/* Add decorative ring around profile image */
.profile-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    animation: rotate 10s linear infinite;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--darker-bg);
    z-index: -1;
}

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

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(124, 98, 185, 0.3);
    margin-bottom: 1.5rem;
    object-fit: cover;
    object-position: center;
    box-shadow: 
        0 0 30px rgba(124, 98, 185, 0.3),
        0 0 60px rgba(185, 75, 183, 0.2),
        0 0 90px rgba(185, 75, 183, 0.1);
    animation: pulseGlow 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(124, 98, 185, 0.3),
            0 0 60px rgba(185, 75, 183, 0.2);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(124, 98, 185, 0.5),
            0 0 80px rgba(185, 75, 183, 0.3);
    }
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 40px rgba(185, 75, 183, 0.4);
}

/* Modern Navbar with glass effect */
.navbar {
    background: rgba(31, 31, 43, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(31, 31, 43, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 98, 185, 0.2);
    padding: 0.5rem 0;
}

.navbar.scrolled a {
    color: var(--text-color);
}

.navbar.scrolled a:hover {
    color: var(--accent-color);
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar a:hover::after {
    width: 80%;
}

.navbar a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 4px;
}

.navbar a:hover::before {
    opacity: 0.1;
}

/* Modern sections with card design */
.section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 98, 185, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(57, 55, 72, 0.8),
        rgba(31, 31, 43, 0.8)
    );
    border: var(--glass-border);
    overflow: hidden;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: skewX(-20deg) translateX(-100%);
    animation: shimmerSection 8s infinite;
}

@keyframes shimmerSection {
    100% {
        transform: skewX(-20deg) translateX(200%);
    }
}

/* Timeline with modern design */
.timeline .experience-item {
    background: rgba(31, 31, 43, 0.5);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.timeline .experience-item::before {
    background: var(--secondary-color);
}

.timeline .experience-item:hover {
    transform: translateX(10px);
    background: rgba(31, 31, 43, 0.8);
    border-left-color: var(--accent-color);
}

.timeline .experience-item h3 {
    color: var(--secondary-color);
}

.timeline .date {
    color: var(--text-muted);
}

.timeline .experience-item::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    left: -2px;
    top: 0;
    animation: pulseTimeline 4s ease-in-out infinite;
}

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

/* Skills grid with hover effects */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(31, 31, 43, 0.7);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 98, 185, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.skill-category:hover {
    transform: translateY(-5px);
    background: rgba(31, 31, 43, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(185, 75, 183, 0.2);
}

.skill-category h3 {
    color: var(--secondary-color);
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::after {
    opacity: 0.5;
}

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

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

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

/* Contact section with modern design */
.contact-info {
    background: rgba(31, 31, 43, 0.5);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 98, 185, 0.1);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.contact-info p:hover {
    transform: translateX(10px);
    color: var(--secondary-color);
}

.contact-info p i {
    color: var(--accent-color);
}

.contact-info p::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.contact-info p:hover::before {
    opacity: 0.1;
}

/* Modern footer */
footer {
    background: var(--darker-bg);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(124, 98, 185, 0.1);
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 0.5rem 0;
    }
    
    .section {
        padding: 2rem 1rem;
    }
}

/* Particle effect styles */
.particle {
    position: absolute;
    background: var(--gradient);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 25s linear infinite;
    opacity: 0.05;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Enhanced hero tags */
.hero-tags {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags span {
    background: rgba(124, 98, 185, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(185, 75, 183, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.hero-tags span:hover {
    background: rgba(185, 75, 183, 0.3);
    transform: translateY(-2px);
}

.hero-tags span::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-tags span:hover::before {
    opacity: 0.3;
}

/* Neural network background pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 98, 185, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(185, 75, 183, 0.1) 0%, transparent 50%);
    opacity: 0.7;
    z-index: 1;
}

/* Add scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 2;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

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

.scroll-indicator:hover {
    opacity: 1;
    cursor: pointer;
    color: var(--accent-color);
}

/* Skill category enhancements */
.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(124, 98, 185, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 8s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInSkills 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

.skill-category ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
} 

@keyframes slideInSkills {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animated skill items */
.skill-category ul li {
    /* ... existing styles ... */
    transform: translateX(-10px);
    opacity: 0;
    animation: slideInSkills 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes slideInSkills {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced hero tags with cyber effect */
.hero-tags span {
    /* ... existing styles ... */
    background: rgba(124, 98, 185, 0.1);
    border: 1px solid rgba(185, 75, 183, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-tags span::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-tags span:hover::before {
    opacity: 0.3;
}

/* Enhanced timeline items */
.experience-item {
    /* ... existing styles ... */
    position: relative;
    overflow: hidden;
}

.experience-item::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    left: -2px;
    top: 0;
    animation: pulseTimeline 4s ease-in-out infinite;
}

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

/* Enhanced contact section */
.contact-info p {
    /* ... existing styles ... */
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.contact-info p::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.contact-info p:hover::before {
    opacity: 0.1;
}

/* Add this to your JavaScript to initialize skill item animations */

/* Project Grid Styles */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: rgba(31, 31, 43, 0.7);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 98, 185, 0.2);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(185, 75, 183, 0.2);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.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-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.project-tags span {
    background: rgba(124, 98, 185, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(185, 75, 183, 0.2);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
    }

    .project-image {
        width: 40%;
        height: auto;
    }

    .project-content {
        width: 60%;
    }
}

/* Add responsive adjustments */
@media (max-height: 700px) {
    .hero-content {
        max-height: 75vh;
        padding: 2rem; /* Reduce padding on smaller screens */
    }
    
    .scroll-indicator {
        bottom: 1.5rem; /* Adjust for smaller screens */
    }
}

@media (max-height: 500px) {
    .hero-content {
        max-height: 80vh;
        padding: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 1rem; /* Further adjust for very small screens */
    }
}

/* Language selector styles */
.language-selector {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background: rgba(31, 31, 43, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--accent-color);
}

.lang-btn.active {
    color: var(--text-color);
    background: rgba(124, 98, 185, 0.2);
    border-radius: 12px;
}

.lang-separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* Responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        top: 1rem;
        right: 1rem;
    }
}

/* TestFlight Download Button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(124, 98, 185, 0.2);
    margin-top: 1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 98, 185, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.download-btn i {
    font-size: 1.8rem;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.download-text span:first-child {
    font-size: 0.8rem;
    opacity: 0.9;
}

.download-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(124, 98, 185, 0.2);
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(124, 98, 185, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid rgba(124, 98, 185, 0.2);
    margin-top: 1rem;
}

.coming-soon-badge i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.badge-text span:first-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.badge-text span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.coming-soon-badge:hover {
    background: rgba(124, 98, 185, 0.15);
    border-color: rgba(124, 98, 185, 0.3);
}

.impressum {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.impressum h1 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.impressum h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.impressum h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.impressum p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
} 