:root {
    --primary-color: #457B9D;
    --secondary-color: #285069;
    --dark-color: #142834;
    --light-bg: #f5f8fd;
    --text-color: #142834;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    background: var(--dark-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
}

.navbar-nav .nav-link {
    color: #a8a9b4 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section - Professional Clean Design */
.hero {
    width: 100%;
    min-height: 70vh;
    background-image: url('../img/hero-bg-5.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 52, 0.95);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 160px;
    text-align: center;
}

.hero-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.hero-btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    text-decoration: none;
}

.hero-btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-outline:hover {
    background-color: white;
    color: var(--dark-color);
    text-decoration: none;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Personal About Section */
.personal-about {
    padding: 5rem 0;
    background: white;
}

.personal-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.personal-facts {
    margin-top: 2rem;
}

.fact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.fact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    flex-shrink: 0;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-bg {
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    display: block;
    margin: 1rem auto 0;
}

/* About Section */
.about-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Skills */
.skill-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-category {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.skill-list {
    color: var(--primary-color);
    font-weight: 500;
}

/* Portfolio */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.project-img {
    height: 200px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.project-tech {
    background: var(--light-bg);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    display: inline-block;
    margin: 0.2rem 0.2rem 0 0;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Success Button - gleiche Styles wie btn-primary nur in grün */
.btn-success {
    background: #28a745;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Small Success Button für Projektübersicht */
.btn-success.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    min-height: 38px;
}

/* Contact */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0;
}

.demo-badge {
    background: #28a745;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    min-height: 44px;
    line-height: 1.4;
}

.demo-badge:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Project Detail Styles */
.project-detail-img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -7.5px;
    top: 0;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-header {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.admin-table table {
    margin-bottom: 0;
}

.admin-table .table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
}

.admin-table .table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.project-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.badge-tech {
    background: var(--light-bg);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    border: 3px solid var(--primary-color);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(69, 123, 157, 0.25);
}

.btn-admin {
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.alert-custom {
    border-radius: 10px;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand-img {
        width: 30px;
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(20, 40, 52, 0.95);
        border-radius: 10px;
        padding: 1rem;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        min-height: 85vh;
        background-attachment: scroll;
        padding: 100px 0 50px;
        background-position: center center;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        max-width: none;
    }

    .hero-profile-img {
        width: 250px;
        height: 250px;
        margin-bottom: 1.5rem;
        border: 3px solid var(--primary-color);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }

    .hero-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 260px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Content Layout */
    .hero .container {
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .hero .row {
        width: 100%;
        margin: 0;
    }
    
    .hero-content {
        text-align: center;
    }

    /* Personal About - Mobile */
    .personal-about {
        padding: 3rem 0;
    }
    
    .personal-image {
        margin-top: 2rem;
        order: 2;
    }
    
    .personal-facts {
        margin-top: 1.5rem;
    }
    
    .fact-item {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    .fact-item i {
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }

    /* About Cards */
    .about-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .about-icon {
        font-size: 2.5rem;
    }

    /* Skills */
    .skill-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Timeline */
    .timeline-item {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-date {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Portfolio */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-img {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-tech {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
        margin: 0.1rem 0.1rem 0.3rem 0;
    }

    /* Contact */
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .social-links a {
        width: 60px;
        height: 60px;
        line-height: 60px;
        margin: 0 0.75rem 1rem;
        font-size: 1.5rem;
    }

    /* Modal */
    .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .project-detail-img {
        max-width: 100%;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    .footer p {
        margin-bottom: 0.5rem;
    }

    /* Buttons and Interactive Elements */
    .btn-primary,
    .btn-outline-primary,
    .btn-success,
    .demo-badge {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Container Adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Text Adjustments */
    .lead {
        font-size: 1.1rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    h5 {
        font-size: 1.2rem;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 90px 0 40px;
    }

    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
    }

    .hero-profile-img {
        width: 200px;
        height: 200px;
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
        max-width: 240px;
    }

    /* Personal About - Small Mobile */
    .personal-about {
        padding: 2rem 0;
    }

    .personal-about h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .personal-about .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .personal-about p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .fact-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .fact-item i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-card,
    .skill-item,
    .contact-info {
        padding: 1rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
}