/* ===========================
   PROFESSIONAL PORTFOLIO CSS
   =========================== */

:root {
    /* Sophisticated Augsburg-Inspired Dark Mode */
    --bg-primary: #020617;     
    --bg-secondary: #0f172a;   
    --bg-tertiary: #1e293b;    
    --bg-card: #1e293b;        
    --accent: #d42028;         /* Augsburg Red */
    --accent-dark: #a1181e;    
    --augsburg-green: #007a33; /* Augsburg Green */
    --augsburg-green-light: #00a344;
    --augsburg-white: #ffffff;
    --text-primary: #f8fafc;   
    --text-secondary: #cbd5e1; 
    --text-light: #94a3b8;     
    --text-white: #ffffff;
    --border: #1e293b;         
    --border-light: #334155;   
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===========================
   NOTICE BANNER
   =========================== */
.notice-banner {
    background: rgba(212, 32, 40, 0.15); /* Augsburg Red with transparency */
    border-bottom: 1px solid rgba(212, 32, 40, 0.3);
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notice-banner p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.notice-banner i {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAVIGATION - PREMIUM VERSION
   =========================== */
.navbar {
    background: rgba(15, 23, 42, 0.8); /* var(--bg-secondary) with opacity */
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary); /* Harmonized to white for better contrast */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

.nav-logo i {
    font-size: 1.6rem;
    color: var(--augsburg-green-light); /* Using the lighter green for pop */
}

.nav-logo span {
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    padding: 120px 20px;
    background: radial-gradient(circle at top right, rgba(212, 32, 40, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(0, 122, 51, 0.15), transparent),
                var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--augsburg-green), var(--augsburg-white), var(--accent));
    z-index: 10;
}

.augsburg-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 96px;
    opacity: 0.8;
    z-index: 1;
    transition: all 0.5s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.augsburg-overlay:hover {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 20px rgba(212, 32, 40, 0.4));
}

.augsburg-overlay svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    max-width: 700px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    min-height: 1.2em;
}

/* Removed typewriter cursor pipe per user request */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-location {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 32, 40, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: 0 6px 20px rgba(212, 32, 40, 0.4);
    transform: translateY(-2px);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-icon:hover {
    border-color: rgba(96, 165, 250, 0.8);
    color: rgba(96, 165, 250, 0.8);
    background: rgba(96, 165, 250, 0.1);
}

.btn-icon i {
    font-size: 1.2rem;
}

/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   LANGUAGES SECTION
   =========================== */
.languages-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.language-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.language-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.language-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.language-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.level-badge.expert {
    background: rgba(0, 122, 51, 0.2);
    color: var(--augsburg-green-light);
}

.level-badge.advanced {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.language-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tools Section */
.tools-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 40px;
}

.tools-section h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
}

.tool-item i {
    color: var(--accent);
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.project-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.link-btn:hover {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--augsburg-green-light);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't spill out if larger */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it look professional like a profile pic */
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
    padding: 100px 20px;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.9rem;
}

.footer i {
    color: var(--accent);
}

.footer i.footer-dev-icon {
    color: var(--accent);
    margin-left: 5px;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.4);
        gap: 0;
        border-bottom: 2px solid var(--accent);
        height: calc(100vh - 70px);
        justify-content: center;
        padding-bottom: 70px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 20px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(212, 32, 40, 0.1);
        color: var(--accent);
        font-weight: 700;
    }

    .nav-container {
        height: 70px;
    }

    .hero {
        padding: 100px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .music-control {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
    
    #scrollToTopButton {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .languages-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 10px;
        font-size: 0.9rem;
    }
}
