:root {
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-primary: #3b82f6;
    --accent-secondary: #ef4444;
    --accent-tertiary: #8b5cf6;
    --skeleton-bg: #475569;
    --skeleton-highlight: #64748b;
    --border-color: #475569;
    --shadow-light: rgba(0, 0, 0, 0.3);
    
    /* Lotus Animation Variables */
    --lotus-size: 800px;
    --lotus-initial-position: 0.43; /* How hidden lotus starts (0.5 = 50% hidden, 50% visible) */
    --lotus-movement-factor: 0.8; /* How much lotus moves with scroll (0.1 = minimal, 1.0 = lots) */
    --lotus-opacity: 0.5;
    --lotus-blur: 1px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Facebook-style Shimmer Animation */
.shimmer {
    background: linear-gradient(90deg, var(--skeleton-bg) 8%, var(--skeleton-highlight) 18%, var(--skeleton-bg) 33%);
    background-size: 800px 100%;
    animation: shimmer-animation 1s infinite linear forwards;
}

@keyframes shimmer-animation {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Container for content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Section */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%), linear-gradient(135deg, var(--bg-primary) 0%, #0f172a 100%);
    padding: 4rem 0;
    will-change: background-position;
    overflow: hidden;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

.main-title.loading {
    color: transparent;
    background: linear-gradient(90deg, var(--skeleton-bg) 8%, var(--skeleton-highlight) 18%, var(--skeleton-bg) 33%);
    background-size: 800px 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer-animation 1.2s infinite linear;
}

.main-title.loaded {
    color: var(--accent-primary);
}

.welcome-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    text-align: center;
    will-change: transform, opacity;
}

.welcome-text.show {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent other styles from showing welcome text early */
.welcome-text:not(.show) {
    opacity: 0 !important;
}

/* Content sections - hidden initially */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.content-section.show {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    opacity: 0;
    transition: all 0.8s ease;
}

.footer.show {
    opacity: 1;
}

/* Navigation dots */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-width: 800px;
        gap: 2rem;
    }
}

.contact-item {
    text-align: center;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px var(--shadow-light);
    text-decoration: none;
}

@media (min-width: 768px) {
    .contact-item {
        padding: 2rem;
    }
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--shadow-light);
}

.contact-item i {
    font-size: 3rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .contact-item i {
        font-size: 4rem;
    }
}

.contact-item:hover i {
    transform: scale(1.1);
}

.contact-item i {
    color: var(--text-secondary);
}

.contact-item:hover i {
    color: var(--accent-primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
        margin: 2rem auto 0;
    }
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-light);
    text-decoration: none;
    color: inherit;
}


.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-light);
    border-color: var(--accent-primary);
}


.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.project-title {
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.project-description {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-dots {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Navigation Link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-nav:focus {
    top: 6px;
}

/* Lotus Flower Animation */
.lotus-container {
    position: absolute;
    bottom: calc(var(--lotus-size) * var(--lotus-initial-position) * -1); /* Start with top part visible */
    left: 50%;
    transform: translateX(-50%);
    width: var(--lotus-size);
    height: var(--lotus-size);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    will-change: transform, opacity;
    overflow: hidden;
}

.lotus-flower {
    width: 100%;
    height: 100%;
    filter: blur(var(--lotus-blur));
}

/* Blue gradient lotus petals */
.lotus-petal-light {
    fill: #93c5fd;
    opacity: 0.8;
    animation: lotus-float 8s ease-in-out infinite;
}

.lotus-petal-medium {
    fill: #60a5fa;
    opacity: 0.9;
    animation: lotus-float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.lotus-petal-dark {
    fill: var(--accent-primary);
    opacity: 0.9;
    animation: lotus-float 7s ease-in-out infinite;
    animation-delay: 2s;
}

.lotus-petal-darker {
    fill: #1d4ed8;
    opacity: 0.8;
    animation: lotus-float 5s ease-in-out infinite;
    animation-delay: 3s;
}

.lotus-center {
    fill: #60a5fa;
    opacity: 1;
    animation: lotus-glow 4s ease-in-out infinite;
}

@keyframes lotus-float {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.02) rotate(1deg); 
        opacity: 1;
    }
}

@keyframes lotus-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Mobile lotus adjustments */
@media (max-width: 768px) {
    .lotus-container {
        --lotus-size: 200px;
        --lotus-blur: 0.5px;
    }
}

/* Focus Styles for Better Accessibility */
.nav-dot:focus,
.contact-item:focus,
.project-card:focus,
#impressumLink:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}