@media (max-width: 768px) {
    .file-name {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .file-name form {
        width: 100%;
    }

    .file-name .btn-delete {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Einheitliche Button-Styles für Speichern und Löschen */
.btn-save,
.btn-delete {
    display: inline-block;
    width: auto;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
    align-self: flex-start;
}

.btn-save {
    background: #667eea;
    color: white;
}

.btn-save:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Reset und Grundlagen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #131322;
    --bg-secondary: rgba(19, 19, 34, 0.85);
    --bg-card: rgba(31, 31, 42, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --accent: #ffffff;
    --accent-hover: #f0f0f0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --gradient-blend-mode: normal;
    --gradient-blur: 300px;
}

html {
    scroll-behavior: smooth;
    background: radial-gradient(at 1.5% 91.9%, #84B7BF 0px, transparent 50%),
        radial-gradient(at 53.8% 56.4%, #36216D 0px, transparent 50%),
        radial-gradient(at 95.6% 70.2%, #B786BF 0px, transparent 50%),
        radial-gradient(at 85.3% 17.7%, #36216D 0px, transparent 50%),
        radial-gradient(at 14.9% 18%, #36216D 0px, transparent 50%) #131322 !important;
    background-attachment: fixed !important;
}

body {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(at 1.5% 91.9%, #84B7BF 0px, transparent 50%),
        radial-gradient(at 53.8% 56.4%, #36216D 0px, transparent 50%),
        radial-gradient(at 95.6% 70.2%, #B786BF 0px, transparent 50%),
        radial-gradient(at 85.3% 17.7%, #36216D 0px, transparent 50%),
        radial-gradient(at 14.9% 18%, #36216D 0px, transparent 50%) #131322 !important;
    background-attachment: fixed !important;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.frosted-backdrop {
    backdrop-filter: blur(var(--gradient-blur)) contrast(200%) brightness(200%);
    -webkit-backdrop-filter: blur(var(--gradient-blur)) contrast(200%) brightness(200%);
}

@keyframes meshAnimation {
    0% {
        background:
            radial-gradient(at 0% 0%, rgba(45, 50, 130, 0.8) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(120, 90, 170, 0.6) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(200, 110, 160, 0.5) 0px, transparent 50%),
            radial-gradient(at 0% 100%, rgba(70, 80, 180, 0.7) 0px, transparent 50%),
            radial-gradient(at 50% 50%, rgba(30, 35, 90, 0.9) 0px, transparent 50%),
            linear-gradient(180deg, #0a0a15 0%, #1a1d35 50%, #252850 100%);
    }

    50% {
        background:
            radial-gradient(at 20% 30%, rgba(60, 65, 150, 0.7) 0px, transparent 50%),
            radial-gradient(at 80% 20%, rgba(140, 100, 180, 0.6) 0px, transparent 50%),
            radial-gradient(at 90% 80%, rgba(180, 90, 150, 0.5) 0px, transparent 50%),
            radial-gradient(at 10% 90%, rgba(80, 85, 170, 0.7) 0px, transparent 50%),
            radial-gradient(at 40% 60%, rgba(40, 45, 100, 0.8) 0px, transparent 50%),
            linear-gradient(180deg, #0a0a15 0%, #1a1d35 50%, #252850 100%);
    }

    100% {
        background:
            radial-gradient(at 10% 10%, rgba(50, 55, 140, 0.8) 0px, transparent 50%),
            radial-gradient(at 90% 10%, rgba(130, 95, 175, 0.6) 0px, transparent 50%),
            radial-gradient(at 80% 90%, rgba(190, 100, 155, 0.5) 0px, transparent 50%),
            radial-gradient(at 20% 80%, rgba(75, 80, 175, 0.7) 0px, transparent 50%),
            radial-gradient(at 60% 40%, rgba(35, 40, 95, 0.9) 0px, transparent 50%),
            linear-gradient(180deg, #0a0a15 0%, #1a1d35 50%, #252850 100%);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Geometric Background */
.geometric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    will-change: auto;
}

.geo-shape {
    position: absolute;
    opacity: 0.02;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    will-change: transform;
}

.geo-shape-1 {
    width: 800px;
    height: 800px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: -200px;
    right: -100px;
    animation: float 40s ease-in-out infinite;
    animation-delay: 0s;
}

.geo-shape-2 {
    width: 600px;
    height: 600px;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    bottom: 10%;
    left: -150px;
    animation: float 45s ease-in-out infinite;
    animation-delay: 5s;
}

.geo-shape-3 {
    width: 500px;
    height: 500px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    top: 40%;
    right: 5%;
    animation: none;
    opacity: 0.015;
}

.geo-shape-4 {
    width: 700px;
    height: 700px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    top: 60%;
    left: 10%;
    animation: none;
}

.geo-shape-5 {
    width: 400px;
    height: 400px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(45deg);
    top: 20%;
    left: 30%;
    animation: none;
    opacity: 0.015;
}

.geo-shape-6 {
    width: 550px;
    height: 550px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    bottom: -100px;
    right: 20%;
    animation: float 50s ease-in-out infinite;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(15px, -15px) rotate(2deg);
    }
}

/* Ensure content is above background */
header,
main,
footer,
.modal {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background-color: rgba(21, 21, 37, 0.75);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

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

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
    transform-origin: center;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 4rem;
}

.profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 2rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.profile-image {
    width: 250px;
    height: 333px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
}

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

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-primary);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.profile-details strong {
    color: var(--accent);
    font-weight: 600;
}

/* Content Text */
.content-text {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    line-height: 1.8;
}

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

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

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.interest-item {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.interest-item h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.interest-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    will-change: transform;
}

/* Verbesserter Hover-Effekt nur für Projekt-Cards */
.card[data-project]:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: rgba(50, 50, 70, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.card[data-project]:hover .card-image {
    transform: scale(1.03);
}

.card[data-project] .card-image {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(99, 102, 184, 0.3) 0%, rgba(176, 94, 164, 0.3) 100%);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Cards */
.info-card {
    cursor: default;
}

.info-card .card-content {
    padding: 2rem;
}

.info-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.program-list {
    list-style: none;
    padding: 0;
}

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

.program-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.program-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.program-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Timeline (für Vita) */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    border: 3px solid rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.timeline-year {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-content a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Contact Form */
.contact-container {
    max-width: 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    color: var(--accent);
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

#formStatus {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#formStatus.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
}

#formStatus.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ef5350;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .permission-form {
        flex-direction: column-reverse !important;
        align-items: stretch;
    }

    .permission-form .btn-save,
    .permission-form .btn-delete {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .file-permission-item form[action*="delete"] {
        width: 100%;
        margin-bottom: 0.5rem;
        display: block;
    }

    .file-permission-item form[action*="delete"] button {
        width: 100%;
        display: block;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        font-size: 1rem;
        padding: 0.7rem 0;
    }
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
}

.copyright .admin-link,
.copyright .admin-link:link,
.copyright .admin-link:visited,
.copyright .admin-link:active,
.admin-link,
.admin-link:link,
.admin-link:visited,
.admin-link:active {
    margin-left: 1rem;
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    text-underline-offset: 0 !important;
}

.copyright .admin-link:hover,
.admin-link:hover {
    text-decoration: underline !important;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        padding: 5px;
    }

    .menu-toggle span {
        background-color: var(--text-primary);
        display: block;
        width: 25px;
        height: 3px;
    }

    .nav-right {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(19, 19, 34, 0.98);
        backdrop-filter: blur(23px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }

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

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .language-switcher {
        margin-top: 1rem;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .lang-btn {
        width: auto;
    }

    .lang-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px) !important;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
    }

    .lang-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) !important;
    }

    .profile-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .profile-image {
        width: 180px;
        height: 240px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-details p {
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    section h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    nav {
        padding: 0 1rem;
    }

    .card-image {
        height: 200px;
    }
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--bg-card);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background-color: var(--bg-secondary);
    backdrop-filter: blur(23px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-gallery {
    position: relative;
    background: linear-gradient(135deg, rgba(19, 19, 34, 0.5) 0%, rgba(31, 31, 42, 0.5) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 5;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

.modal-details {
    padding: 2rem;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    background-color: var(--bg-card);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span:last-child {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

.modal-description,
.modal-concept,
.modal-features {
    margin-bottom: 2rem;
}

.modal-description h3,
.modal-concept h3,
.modal-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-description p,
.modal-concept p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    white-space: pre-line;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    padding-left: 0;
    position: relative;
    line-height: 1.6;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        padding: 1rem;
    }

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

    .modal-gallery {
        min-height: 300px;
    }

    .modal-image {
        max-height: 400px;
    }

    .modal-details {
        padding: 1rem;
        max-height: none;
    }

    .modal-details h2 {
        font-size: 1.75rem;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .modal-close {
        background-color: var(--bg-card);
    }

    /* Adjust geometric shapes for mobile */
    .geo-shape-1,
    .geo-shape-2,
    .geo-shape-3,
    .geo-shape-4,
    .geo-shape-5,
    .geo-shape-6 {
        transform: scale(0.6);
        opacity: 0.04;
    }

    .language-switcher {
        margin-top: 1rem;
    }
}

/* Navigation Right Container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.lang-btn svg {
    width: 20px;
    height: 20px;
}

#currentLang {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(31, 31, 42, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

/* Hide Google Translate default widget */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
}

html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl,
html,
body {
    top: 0 !important;
    position: relative !important;
    margin: 0 !important;
}

html.translated-ltr,
html.translated-rtl,
html {
    background: radial-gradient(at 1.5% 91.9%, #84B7BF 0px, transparent 50%),
        radial-gradient(at 53.8% 56.4%, #36216D 0px, transparent 50%),
        radial-gradient(at 95.6% 70.2%, #B786BF 0px, transparent 50%),
        radial-gradient(at 85.3% 17.7%, #36216D 0px, transparent 50%),
        radial-gradient(at 14.9% 18%, #36216D 0px, transparent 50%) #131322 !important;
    background-attachment: fixed !important;
}

body.translated-ltr,
body.translated-rtl {
    background: radial-gradient(at 1.5% 91.9%, #84B7BF 0px, transparent 50%),
        radial-gradient(at 53.8% 56.4%, #36216D 0px, transparent 50%),
        radial-gradient(at 95.6% 70.2%, #B786BF 0px, transparent 50%),
        radial-gradient(at 85.3% 17.7%, #36216D 0px, transparent 50%),
        radial-gradient(at 14.9% 18%, #36216D 0px, transparent 50%) #131322 !important;
    background-attachment: fixed !important;
}

.skiptranslate {
    display: none !important;
}

/* Ensure geometric background stays in place */
.geometric-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
}


/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 19, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #B786BF 0%, #8B5FBF 100%);
    color: white;
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 134, 191, 0.4);
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cookie-text h3 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* CRITICAL: Admin link styling - must be at end to override any other rules */
footer .copyright .admin-link,
footer .copyright a.admin-link,
footer a.admin-link,
.copyright .admin-link,
a.admin-link,
.admin-link {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    -webkit-text-decoration: none !important;
    -moz-text-decoration: none !important;
}

footer .copyright .admin-link:hover,
footer .copyright a.admin-link:hover,
footer a.admin-link:hover,
.copyright .admin-link:hover,
a.admin-link:hover,
.admin-link:hover {
    text-decoration: underline !important;
}