/* Base Styles and Variables */
:root {
    --primary-color: #7e57c2; /* Purple - AI-themed */
    --secondary-color: #00e5ff; /* Cyan - Game-themed */
    --tertiary-color: #ff4081; /* Pink for accents */
    --dark-bg: #121212;
    --darker-bg: #090909;
    --light-text: #ffffff;
    --dark-text: #333333;
    --gray-text: #aaaaaa;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
    --transition: all 0.3s ease;
    --glow: 0 0 10px rgba(126, 87, 194, 0.8);
    --neon-glow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* Light theme overrides (default is dark) */
.light-theme {
    --dark-bg: #f5f5f5;
    --darker-bg: #e0e0e0;
    --light-text: #333333;
    --dark-text: #ffffff;
    --gray-text: #666666;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(9, 9, 9, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    width: 70px; /* Middle ground between 100px and 50px */
    height: 70px; /* Middle ground between 100px and 50px */
    margin-right: 20px;
    margin-top: 4px; /* Added to push logo down slightly */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-text);
    transition: var(--transition);
    padding: 5px 0;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--light-text);
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    box-shadow: var(--neon-glow);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-text);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--secondary-color);
    text-shadow: var(--neon-glow);
}

/* Main Content Styles */
main {
    padding-top: var(--header-height);
    width: 100%;
    overflow: hidden;
}

/* Section Base Styles */
section {
    padding: 80px 5%;              /* Increased vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* Align content naturally at top */
    margin: 0;                      /* Remove extra margins */
    min-height: auto;              /* No full-height sections */
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    align-self: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    min-width: 160px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: translateX(-100%);
    transition: var(--transition);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 0 15px rgba(126, 87, 194, 0.4);
}

.btn.primary:hover {
    box-shadow: 0 0 20px rgba(126, 87, 194, 0.7);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.btn.secondary:hover {
    color: var(--dark-text);
    background-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.8rem;
    min-width: 120px;
}

/* Icon in buttons */
.btn i {
    margin-right: 8px;
}

/* Hero Section Styles */
.hero {
    position: relative;
    min-height: auto; /* Remove full-screen height */
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* min-height removed for consistent section spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMWExYTFhIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk01IDVMMCA1WiIgc3Ryb2tlPSIjMWQxZDFkIiBzdHJva2Utd2lkdGg9IjAuNSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--light-text);
    text-shadow: 0 0 15px rgba(126, 87, 194, 0.6);
    letter-spacing: 2px;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-animation-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--tertiary-color);
    animation: glitch-animation-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-animation-1 {
    0% { clip-path: inset(80% 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(40% 0 40% 0); }
    60% { clip-path: inset(60% 0 20% 0); }
    80% { clip-path: inset(0 0 80% 0); }
    100% { clip-path: inset(100% 0 0 0); }
}

@keyframes glitch-animation-2 {
    0% { clip-path: inset(0 0 70% 0); }
    20% { clip-path: inset(30% 0 30% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(10% 0 50% 0); }
    80% { clip-path: inset(50% 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-text);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section Styles */
.about {
    background-color: var(--darker-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-neon {
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color),
                0 0 20px rgba(0, 229, 255, 0.4),
                0 0 30px rgba(0, 229, 255, 0.2);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 8px 16px;
    background: rgba(126, 87, 194, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tags span:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* Projects Section Styles */
.projects {
    background-color: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

.project-links {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    gap: 8px;
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-text);
    text-align: center;
}

.project-info p {
    margin-bottom: 20px;
    color: var(--gray-text);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 5px 10px;
    background: rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.center-button {
    text-align: center;
    margin-top: 20px;
}

/* Education Section Styles */
.education {
    background-color: var(--dark-bg);
}

.education-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 20px;
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.education-logo {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Special TH Köln Logo Adjustment */
.education-logo img[src="images/THK-logo.jpg"] {
    max-width: 60%; /* Reduce width to remove excess white space */
}

.education-logo .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.7) 0%, rgba(126, 87, 194, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-weight: 500;
}

.education-content {
    text-align: center;
    padding: 0 20px;
}

.education-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.education-content .degree {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.education-content .year {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Research Section Styles */
.research {
    background-color: var(--darker-bg);
    padding-bottom: 60px; /* Reduced bottom padding to match publications top padding */
}

.research-items {
    max-width: 900px;
    margin: 0 auto;
}

.research-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--card-border);
}

.research-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.research-year {
    flex: 0 0 150px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 5px;
    padding-right: 20px; /* Added padding to create more space */
}

.research-content {
    flex: 1;
}

.research-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-text);
    line-height: 1.4;
}

.research-content p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.research-content p:first-of-type {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Publications Section Styles */
.publications {
    background-color: var(--dark-bg);
    padding-top: 60px; /* Reduced top padding to fix spacing issue */
}

.publications .research-items {
    max-width: 900px;
    margin: 0 auto;
}

.publications .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.publications .read-more i {
    margin-left: 8px;
    transition: var(--transition);
}

.publications .read-more:hover {
    color: var(--primary-color);
}

.publications .read-more:hover i {
    transform: translateX(5px);
}

/* Contact Section Styles */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray-text);
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-method i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--light-text);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    color: var(--dark-text);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(126, 87, 194, 0.3);
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.form-status.sending {
    display: block;
    background-color: rgba(126, 87, 194, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(126, 87, 194, 0.3);
}

input.invalid,
textarea.invalid {
    border-color: rgba(231, 76, 60, 0.5) !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
}

/* Button submit style */
button[type="submit"].btn.primary {
    border: none;
    width: auto;
    margin-top: 10px;
    padding: 12px 28px;
    font-size: 0.9rem;
    min-width: 160px;
}

/* Footer Styles */
footer {
    background-color: var(--darker-bg);
    text-align: center;
    padding: 30px 0;
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .research-year {
        flex: 0 0 130px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 0 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .research-item {
        flex-direction: column;
    }
    
    .research-year {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        min-width: 140px;
    }
}

@media screen and (max-width: 576px) {
    nav ul li {
        margin: 0 8px;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* Force bullets for expertise list */
.expertise-list {
    list-style: disc inside !important;
    margin-left: 1.5rem;
    color: var(--light-text);
    padding-left: 0;
}
EOF 2>&1

/* Expertise list bullets */
.expertise-list {
    list-style-type: disc !important;
    list-style-position: inside !important;
    padding-left: 1rem !important;
    margin: 1rem 0 1.5rem !important;
    color: var(--light-text) !important;
}
.expertise-list li {
    margin-bottom: .5rem;
}
EOF 2>&1

/* Mission Statement */
.mission-statement {
    grid-column: 1 / -1;
    width: 100%;
    margin: 40px 0 0;
    padding: 20px 0;
    border-top: 1px solid rgba(126, 87, 194, 0.3);
    text-align: center;
}

.mission-statement p {
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Mission statement responsive adjustments */
@media (max-width: 768px) {
    .mission-statement p {
        font-size: 1.4rem;
    }
}
EOF 2>&1
