/* Table of Contents
----------------------------------

0- Global CSS
1- Heading CSS
2- Button CSS
3- Header Area CSS
4- Home Area CSS
5- About Area CSS
6- Qualification Area CSS 
7- Services Area CSS
8- Portfolio Area CSS
9- Testimonials Area CSS
10- Blog Area CSS
11- Contact Area CSS
12- Footer Area CSS
13- Scroll-Top Area CSS

*/


/*--------------------- 0- Global CSS (Start) ---------------------*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root{
    --purple: #3498db;
    --purple2: #2cc1ea;
    --black: #000000;
    --white: #F7F5F2;
    --grey: #DFDFDE;
}

*{
    font-family: 'Roboto', sans-serif;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-transform: capitalize;
    border: none;
    outline: none;
    -webkit-transition: all 0.2s linear;
       -moz-transition: all 0.2s linear;
         -o-transition: all 0.2s linear;
  	        transition: all 0.2s linear;
}

*::selection{
    color: var(--white);
    background-color: var(--purple);
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/*--------------------- Animierte Schaltplan-Textur ---------------------*/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    
    /* Dein SVG von vorhin */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 10 L90 90 M30 0 L30 40 L0 40 M100 60 L70 60 L70 100' fill='none' stroke='%233498db' stroke-width='0.5' opacity='0.2'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%233498db' opacity='0.3'/%3E%3Ccircle cx='90' cy='10' r='1.5' fill='%233498db' opacity='0.3'/%3E%3Ccircle cx='70' cy='60' r='1.5' fill='%233498db' opacity='0.3'/%3E%3C/svg%3E");
    
    background-size: 300px 300px;
    opacity: 0.15;
    pointer-events: none;

    /* HIER DIE ANIMATIONEN HINZUFÜGEN */
    animation: circuitDrift 10s linear infinite, circuitPulse 2.5s ease-in-out infinite;
}

/* Animation 1: Die Linien bewegen sich sanft */
@keyframes circuitDrift {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; } /* Muss der background-size entsprechen für nahtlosen Übergang */
}

@keyframes circuitPulse {
    0%, 90%, 100% { opacity: 0.15; filter: brightness(1); }
    95% { opacity: 0.3; filter: brightness(1.5); } /* Kurzes Aufblitzen */
}

/* Wichtig: Dein Body braucht ein relatives Positionierung, damit das Pseudo-Element weiß, wo es hin soll */
body {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

section{
    padding: 2rem 5%;
}

::-webkit-scrollbar{
    width: 0.8rem;
}

::-webkit-scrollbar-thumb{
    border-radius: 1rem;
    background-color: var(--purple);
}

::-webkit-scrollbar-track{
    background-color: var(--black);
}

.swiper-pagination-bullet{
    height: 1rem;
    width: 1rem;
    border-radius: 50rem;
    background-color: var(--grey);
}

.swiper-pagination-bullet-active{
    width: 3rem;
    background: var(--purple);
}

/*--------------------- 0- Global CSS (End) ---------------------*/



/*--------------------- 1- Heading CSS (Start) ---------------------*/
.heading{
    margin-bottom: 2rem;
}

.heading h2{
    text-align: center;
    padding-bottom: 2rem;
    color:var(--purple);
    font-size: 4rem;
}

.heading h2 span{
    position: relative;
    z-index: 0;
    color: var(--white);
}

.heading h2 span::before{
    content: '';
    position: absolute;
    bottom: -0.5rem; left: 0;
    z-index: -1;
    background: var(--purple);
    height: 0.2rem;
    width: 80%;
    margin-left: 10%;
}

/*--------------------- 1- Heading CSS (End) ---------------------*/



/*--------------------- 2- Button CSS (Start) ---------------------*/
.btn{
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.8rem;
    color: var(--purple);
    background-color: transparent;
    border: 0.2rem solid var(--purple);
}

.btn i{
    padding-left: 1rem;
}

.btn:hover{
    color: var(--white);
    background-color: var(--purple);
    cursor: pointer;
}

/*--------------------- 2- Button CSS (End) ---------------------*/



/*--------------------- 3- Header Area CSS (Start) ---------------------*/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: transparent;
    -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
         -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
    z-index: 999;
}

header.sticky{
    border-bottom: 0.1rem solid var(--grey);
    background: rgba(0, 0, 0, 0.8);
}

header .logo h2{
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

header .navbar a{
    color: var(--white);
    font-size: 1.8rem;
    margin-left: 1rem;
}

header .navbar a:hover,
header .navbar a.active{
    color: var(--purple);
}

header #menu-btn{
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
         -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
    display: none;
}

header .fa-times{
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
}

header #menu-btn:hover{
    color: var(--purple);
}

/*--------------------- 3- Header Area CSS (End) ---------------------*/



/*--------------------- 4- Home Area CSS (Start) ---------------------*/
.home{
    padding: 0rem 15%;
    background-color: var(--black);
    min-height: 100vh;
}

.home .box-container{
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 4rem;
}

.home .image{
    text-align: center;
    -webkit-box-flex: 1;
      -ms-flex: 1 1 40rem;
          flex: 1 1 40rem;

}

.home .image img{
    height: 45rem;
    width: 45rem;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70% ;
    object-fit:cover;
}

.home .content{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 40rem;
        flex: 1 1 40rem;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    margin-top: 7rem;
}

.home .content h2{
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--purple);
}

.home .content h1{
    font-size: 4rem;
    color: var(--white);
    padding: 1rem 0;
    text-transform: none;
}

.home .content h1 span{
    color: var(--purple);

}

.home .content p{
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--white);
    padding-bottom: 2rem;
    line-height: 1.5;
}
/*--------------------- 4- Home Area CSS (End) ---------------------*/



/*--------------------- 5- About Area CSS (Start) ---------------------*/
.about .box-container{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 15%;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.about .image{
    width: 32rem;
    text-align: center;
}

.about .image img{
    width: 100%;
    border: 1rem solid var(--purple);
}

.about .content{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 55rem;
        flex: 1 1 55rem;
}

.about .content h2{
    font-size: 3rem;
    color: var(--white);
    padding-bottom: 1rem;
}

.about .content > p{
    font-size: 1.6rem;
    color: var(--grey);
    line-height: 1.6;
    padding-bottom: 1rem;
}

.about .content .about-info{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
        justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
}

.about .content .about-info .info{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 15rem;
        flex: 1 1 15rem;
}

.about .content .about-info .info h4{
    font-size: 1.6rem;
    color: var(--white);
    padding-bottom: 1rem;
}

.about .content .about-info .info span{
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--grey);
}

.about .content .about-info .info .btn{
    margin-top: 1rem;
}

.counting{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 35rem;
        flex: 1 1 35rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 1rem;
}

.counting .box{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 18rem;
        flex: 1 1 18rem;
    text-align: center;
    background-color: #222;
    padding: 2rem;
}

.counting .box .count{
    font-size: 3.5rem;
    color: var(--purple);
    padding-bottom: 0.5rem;
}

.counting .box h3{
    font-size: 1.8rem;
    color: var(--white);
}

.skill-container {
    padding: 2rem 0;
}

/* --- Neues Raster-Layout (2x2) für die Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Erstellt 2 gleich breite Spalten */
    gap: 9rem; /* Abstand zwischen den Kacheln (horizontal & vertikal) */
    width: 90%; /* Nimmt 90% des Bildschirms ein */
    max-width: 1200px; /* Begrenzt die Breite auf großen Monitoren */
    margin: 0 auto; /* Zentriert das Grid */
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Die Kategorie-Blöcke (Robotik, KI, etc.) */
.skill-category {
    width: 100%; /* Nimmt nun die volle Breite der Grid-Spalte ein */
    margin-bottom: 0; /* Abstand wird über das Grid-Gap geregelt */
}

/* Die Überschriften der Kategorien */
.category-title {
    font-size: 2.2rem;
    color: var(--purple);
    margin-bottom: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 1.5rem;
    font-weight: 500;
}

/* Der Container für die einzelnen Balken innerhalb einer Kategorie */
.skills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.skill-item {
    width: 100%;
}

.skill-item .box {
    padding: 1rem 0; 
}

.skill-item .box h3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
    justify-content: space-between;
    padding: .7rem 0;
    font-size: 1.7rem;
    color: var(--white);
    font-weight: 400;
}

.skill-item .box .progress-bar {
    width: 100%;
    background: #222;
    overflow: hidden;
    height: 1rem;
    border-radius: 50rem;
}

.skill-item .box .progress-bar span {
    display: block;
    height: 100%;
    background: var(--purple);
    border-radius: 50rem;
    width: 0; /* Startwert für Animation bleibt 0 */
}

/* Nur wenn die Kategorie die Klasse .show-items hat, startet die Animation */
.show-items .w-95 { animation: fill-95 3s ease-in-out forwards; }
.show-items .w-90 { animation: fill-90 3s ease-in-out forwards; }
.show-items .w-85 { animation: fill-85 3s ease-in-out forwards; }
.show-items .w-80 { animation: fill-80 3s ease-in-out forwards; }
.show-items .w-75 { animation: fill-75 3s ease-in-out forwards; }
.show-items .w-70 { animation: fill-70 3s ease-in-out forwards; }

@keyframes fill-95 { from { width: 0; } to { width: 95%; } }
@keyframes fill-90 { from { width: 0; } to { width: 90%; } }
@keyframes fill-85 { from { width: 0; } to { width: 85%; } }
@keyframes fill-80 { from { width: 0; } to { width: 80%; } }
@keyframes fill-75 { from { width: 0; } to { width: 75%; } }
@keyframes fill-70 { from { width: 0; } to { width: 70%; } }

/* --- Farbanpassung für KI & Datenverarbeitung --- */
.color-blue .category-title {
    color: #8ca9bc; 
}
.color-blue .skill-item .box .progress-bar span {
    background: #8ca9bc; 
}

/* --- Responsive Anpassung für Mobilgeräte --- */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr; /* Bricht auf 1 Spalte um auf Handys */
        gap: 3rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .skill-item .box h3 {
        font-size: 1.4rem;
    }
}
/*--------------------- 5- About Area CSS (End) ---------------------*/



/*--------------------- 6- Qualification Area CSS (Start) ---------------------*/
.timeline {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Der mittige Zeitstrahl */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--purple);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    width: 100%;
    position: relative;
    margin-bottom: 50px;
}

/* Ausrichtung des Containers nach links oder rechts */
.timeline-item.left {
    justify-content: flex-start;
}
.timeline-item.right {
    justify-content: flex-end;
}

/* DIE BOX: Hält Bild und Text zusammen auf einer Seite */
.timeline-box {
    width: 50%; /* Nimmt exakt die Hälfte der Seite ein */
    display: flex; /* Legt Bild und Text nebeneinander */
    align-items: center;
    gap: 20px; /* Abstand zwischen Bild und Text */
}

/* HIER IST DIE KORREKTUR: Dreht die Box auf der rechten Seite um, damit das Bild nach außen (rechts) wandert */
.timeline-item.right .timeline-box {
    flex-direction: row-reverse;
}

/* Abstand zum Zeitstrahl in der Mitte */
.timeline-item.left .timeline-box {
    padding-right: 50px; 
}
.timeline-item.right .timeline-box {
    padding-left: 50px;
}

/* Das kleine Bild neben dem Text (jetzt immer außen!) */
.timeline-img {
    width: 150px; /* Feste Größe, damit es nicht gequetscht wird */
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0; 
}

/* Die Text-Kachel (immer innen, am Zeitstrahl) */
.timeline-text {
    background: #222;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1; /* Der Text nimmt den restlichen Platz in der Box ein */
    transition: all 0.3s ease;
}

.timeline-text:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.timeline-text h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    padding: 0;
}

.timeline-text p {
    color: var(--grey);
    font-size: 1.6rem;
    line-height: 1.6;
}

.timeline-text span {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Der Icon-Punkt in der Mitte */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--purple);
    border: 4px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    z-index: 2;
    top: 20px; /* Positioniert den Punkt weiter oben auf Höhe der Box */
}

/* Mobile Ansicht für Smartphones */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
        transform: none;
    }
    .timeline-item.left, .timeline-item.right {
        justify-content: flex-start;
    }
    .timeline-box {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 10px !important;
        flex-direction: column !important; /* Überschreibt das row-reverse auf Handys! */
        align-items: flex-start;
    }
    .timeline-img {
        margin-bottom: 15px;
    }
    .timeline-dot {
        left: 0 !important;
        transform: none;
    }
}
/*--------------------- 6- Qualification Area CSS (End) ---------------------*/


/*--------------------- 7- Services Area CSS (Start) ---------------------*/
.service .box-container{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.service-item{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 33rem;
        flex: 1 1 33rem;
    background-color: var(--black);
    padding: 4rem 3rem;
    text-align: center;
    border: 0.1rem solid rgba(255,255, 255, 0.3);
    border-radius: 0.5rem;
    -webkit-transition: all 0.5s linear;
       -moz-transition: all 0.5s linear;
         -o-transition: all 0.5s linear;
            transition: all 0.5s linear;
}

.service-item:hover{
    background-color: var(--purple);
}

.service-item i{
    color: var(--white);
    font-size: 4rem;
}

.service-item h3{
    font-size: 2rem;
    color: var(--white);
    padding: 1.5rem 0;
}

.service-item p{
    font-size: 1.6rem;
    color: var(--grey);
    line-height: 1.6;
}

.service-item:hover p{
    color: var(--white);
}

/*--------------------- 7- Services Area CSS (End) ---------------------*/



/*--------------------- 8- Portfolio Area CSS (Start) ---------------------*/
.controls{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style-type: none;
    margin-top: 2rem;
}

.controls .button{
    cursor: pointer;
    margin: 0.5rem;
}

.controls .button.active{
    cursor: pointer;
    background-color: var(--purple);
    color: var(--white);
}

.portfolio .box-container{
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(33rem, 1fr));
    gap: 0.5rem;
    padding: 2rem 0; 
}

.portfolio-item{
    border-radius: 0.5rem;
    height: 25rem;
    overflow: hidden;
    position: relative;
}

.portfolio-item img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portfolio-item .content{
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    height: 80%;
    width: 80%;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-transform: scale(0);
            transform: scale(0);
}

.portfolio-item .content h4{
    font-size: 2rem;
    font-weight: bold;
    color: var(--purple);
    transform-origin: top;
    -webkit-transform: translateY(-10rem);
            transform: translateY(-10rem);
    opacity: 0;
    padding-bottom: 1rem;
    -webkit-transition: all 0.4s linear;
       -moz-transition: all 0.4s linear;
         -o-transition: all 0.4s linear;
            transition: all 0.4s linear;
}

.portfolio-item .content p{
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    transform-origin: top;
    -webkit-transform: translateY(-10rem);
            transform: translateY(-10rem);
    opacity: 0;
    -webkit-transition: all 0.4s linear;
       -moz-transition: all 0.4s linear;
         -o-transition: all 0.4s linear;
            transition: all 0.4s linear;
}

.portfolio-item .content .view-btn{
    font-size: 2rem;
    color: var(--purple);
    transform-origin: top;
    -webkit-transform: translateY(-10rem);
            transform: translateY(-10rem);
    opacity: 0;
    -webkit-transition: all 0.4s linear;
       -moz-transition: all 0.4s linear;
         -o-transition: all 0.4s linear;
            transition: all 0.4s linear;
    border-radius: 5rem;
    margin-top: 1.5rem;
}

.portfolio-item:hover .content{
    -webkit-transform: scale(1);
            transform: scale(1);
}

.portfolio-item:hover .content h4{
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .content p{
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .content .view-btn{
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover img{
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
}

/*CSS3 Animation Effects for Magnific Popup*/

/* start state */
.mfp-newspaper  .mfp-with-anim {
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out; 
            transition: all 0.2s ease-in-out; 

    -webkit-transform: scale(0) rotate(500deg);
            transform: scale(0) rotate(500deg);
}
.mfp-newspaper.mfp-bg {
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out; 
            transition: all 0.2s ease-in-out; 
}
  
/* animate in */
.mfp-newspaper.mfp-ready .mfp-with-anim {
    opacity: 1;
    -webkit-transform: scale(1) rotate(0deg);
            transform: scale(1) rotate(0deg);
}
.mfp-newspaper.mfp-ready.mfp-bg {
    opacity: 0.8;
}
  
/* animate out */
.mfp-newspaper.mfp-removing .mfp-with-anim {
    -webkit-transform: scale(0) rotate(500deg);
            transform: scale(0) rotate(500deg);
    opacity: 0;
}
.mfp-newspaper.mfp-removing.mfp-bg {
    opacity: 0;
}


/*--------------------- 8- Portfolio Area CSS (End) ---------------------*/



/*--------------------- 9- Testimonials Area CSS (Start) ---------------------*/
.testimonial-slider{
    position: relative;
    padding-bottom: 4rem;
    overflow: hidden;
}

.testi-item{
    text-align: center;
    border: 0.1rem solid var(--grey);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
}

.testi-item:hover{
    border-color: var(--purple);
}

.testi-item img{
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    border: 0.5rem solid var(--white);
}

.testi-item .fa-quote-left{
    display: block;
    font-size: 3rem;
    color: var(--white);
    margin: 1rem 0;
}

.testi-item p{
    color: var(--grey);
    font-size: 1.5rem;
    line-height: 1.5;
}

.testi-item .intro{
    margin: 1rem 0;
}

.testi-item .intro h3{
    font-size: 2rem;
    color: var(--white);
    padding-bottom: 0.5rem;
}

.testi-item .intro h5{
    color: var(--purple);
    font-size: 1.4rem;
    font-weight: 400;
}

/*--------------------- 9- Testimonials Area CSS (End) ---------------------*/



/*--------------------- 10- Blog Area CSS (Start) ---------------------*/
.blog-slider{
    position: relative;
    padding-bottom: 4rem;
    overflow: hidden;
}

.blog-item{
    background-color: #222;
    border: 0.1rem solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-item .image{
    height: 25rem;
    overflow: hidden;
}

.blog-item:hover .image img{
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
}

.blog-item .image img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.blog-item .content{
    padding: 2rem 1rem;
}

.blog-item .content .intro{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 0.2rem solid var(--grey);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.blog-item .content .intro h5{
    font-size: 1.5rem;
}

.blog-item .content .intro h5 i{
    color: var(--purple);
    padding-right: 0.5rem;
}

.blog-item .content .intro h5 span{
    color: var(--grey);
}

.blog-item .content .main-heading{
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
}

.blog-item p{
    padding: 1rem 0;
    font-size: 1.6rem;
    color: var(--grey);
}

.blog-item .btn{
    margin-top: 1rem;
}

/*--------------------- 10- Blog Area CSS (End) ---------------------*/



/*--------------------- 11- Contact Area CSS (Start) ---------------------*/
.contact .alert{
    font-size: 2rem;
    color: var(--purple);
    border-radius: 0.5rem;
    padding-left: 1rem;
}

.contact .box-container{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 42rem;
        flex: 1 1 42rem;
}

.contact-info h3{
    font-size: 3rem;
    color: var(--white);
}

.contact-info > p{
    font-size: 1.6rem;
    color: var(--grey);
    padding: 0.5rem 0;
}

.contact-info .info-item{
    padding: 1rem 0;
}

.contact-info .info-item .gmail,
.contact-info .info-item .linkedin,
.contact-info .info-item .github{
    text-transform: none;
}

.contact-info .info-item h4{
    font-size: 1.8rem;
    color: var(--white);
}

.contact-info .info-item .detail{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.contact-info .info-item .detail .fas,
.contact-info .info-item .detail .fab{
    border-radius: 50%;
    color: var(--purple);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.5rem;
}

.contact-info .info-item .detail p{
    font-size: 1.6rem;
    color: var(--grey);
    line-height: 1.6;
    padding-left: 1rem;
}

.contact-form{
    -webkit-box-flex: 1;
    -ms-flex: 1 1 42rem;
        flex: 1 1 42rem;
}

.contact-form .box{
    width: 100%;
    text-transform: none;
    color: var(--grey);
    font-size: 1.6rem;
    border: 0.1rem solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 0.5rem 0;
    background-color: #222;
}

.contact-form .box:focus{
    border-color: var(--white);
}

.contact-form .box::placeholder{
    color: var(--grey);
}

.contact-form textarea{
    height: 15rem;
    resize: none;
}

.contact-form .btn{
    margin-top: 1rem;
}

/*--------------------- 11- Contact Area CSS (End) ---------------------*/



/*--------------------- 12- Footer Area CSS (Start) ---------------------*/
footer{
    background-color: var(--purple);
    padding: 2rem 0;
    text-align: center;
}

footer .social{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 2rem 0;
}

footer .social .fab{
    background-color: var(--black);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    color: var(--white);
    font-size: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 0.5rem;
}

footer .social .fab:hover{
    color: var(--black);
    background-color: var(--white);
}

footer .content p{
    font-size: 2rem;
    color: var(--white);
}

footer .content p span{
    color: var(--black);
}

/*--------------------- 12- Footer Area CSS (End) ---------------------*/



/*--------------------- 13- Scroll-Top (Start) ---------------------*/
.scroll-top{
    position: fixed;
    bottom: 1rem;
    right:3rem;
    height: 6rem;
    width: 6rem;
    font-size: 3rem;
    font-weight:lighter;
    background: var(--black);
    color: var(--white);
    border: 0.2rem solid var(--white);
    border-radius: 50%;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    z-index: 999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .scroll-top:hover{
    background: var(--white);
    color:var(--black);
  }

/*--------------------- 13- Scroll-Top (End) ---------------------*/
/*--------------------- 14- Recruiter Chatbot CSS (Start) ---------------------*/

.ai-chat-wrapper,
.ai-chat-wrapper * {
    text-transform: none;
}

.ai-chat-wrapper {
    position: fixed;
    right: 2.5rem;
    bottom: 8.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.ai-chat-box {
    width: min(38rem, calc(100vw - 3rem));
    height: min(56rem, calc(100vh - 12rem));
    background: #101820;
    border: 0.1rem solid rgba(52, 152, 219, 0.65);
    border-radius: 1.8rem;
    box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-chat-box[hidden] {
    display: none;
}

.ai-chat-header {
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, var(--purple), var(--purple2));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ai-chat-header strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: 0.02rem;
}

.ai-chat-header span {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
    line-height: 1.35;
    opacity: 0.95;
}

.ai-chat-close {
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: radial-gradient(circle at top right, rgba(52, 152, 219, 0.15), transparent 32%), #0c0f14;
}

.ai-message {
    max-width: 88%;
    padding: 1rem 1.2rem;
    border-radius: 1.4rem;
    font-size: 1.35rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ai-message-bot {
    align-self: flex-start;
    background: #1b2530;
    color: var(--grey);
    border: 0.1rem solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 0.4rem;
}

.ai-message-user {
    align-self: flex-end;
    background: var(--purple);
    color: var(--white);
    border-bottom-right-radius: 0.4rem;
}

.ai-message-loading {
    position: relative;
    min-width: 6rem;
}

.ai-message-loading::after {
    content: "";
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.8rem;
    border: 0.2rem solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--purple2);
    border-radius: 50%;
    animation: aiSpin 0.9s linear infinite;
    vertical-align: middle;
}

.ai-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.ai-chat-suggestions button {
    padding: 0.8rem 1rem;
    border-radius: 99rem;
    background: transparent;
    color: var(--purple2);
    border: 0.1rem solid rgba(44, 193, 234, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
}

.ai-chat-suggestions button:hover {
    background: rgba(44, 193, 234, 0.12);
}

.ai-chat-form {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    background: #111821;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
}

.ai-chat-form input {
    flex: 1;
    min-width: 0;
    border-radius: 99rem;
    padding: 1.1rem 1.3rem;
    background: #0c0f14;
    color: var(--white);
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
}

.ai-chat-form input:focus {
    border-color: var(--purple2);
    box-shadow: 0 0 0 0.25rem rgba(44, 193, 234, 0.12);
}

.ai-chat-form button {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: var(--purple);
    color: var(--white);
    cursor: pointer;
    font-size: 1.6rem;
}

.ai-chat-form button:hover {
    background: var(--purple2);
}

.ai-chat-form button:disabled,
.ai-chat-form input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ai-chat-toggle {
    width: 6.8rem;
    height: 6.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple2));
    color: var(--white);
    box-shadow: 0 1rem 3rem rgba(52, 152, 219, 0.35);
    cursor: pointer;
    font-size: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-toggle:hover {
    transform: translateY(-0.3rem) scale(1.03);
}

.ai-chat-hint {
    position: absolute;
    right: 8rem;
    bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    pointer-events: none;
    animation: aiHintBounce 2s infinite;
}

.ai-chat-hint span:first-child {
    background: var(--purple);
    color: var(--white);
    padding: 0.85rem 1.3rem;
    border-radius: 99rem;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.ai-chat-hint-arrow {
    color: var(--purple2);
    font-size: 2.2rem;
}

.ai-chat-hint.is-hidden {
    display: none;
}

@keyframes aiSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes aiHintBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-0.8rem);
    }

    60% {
        transform: translateX(-0.4rem);
    }
}

@media (max-width: 768px) {
    .ai-chat-wrapper {
        right: 1.2rem;
        bottom: 7.8rem;
    }

    .ai-chat-box {
        width: calc(100vw - 2.4rem);
        height: min(54rem, calc(100vh - 11rem));
    }

    .ai-chat-hint {
        display: none;
    }

    .ai-chat-toggle {
        width: 5.8rem;
        height: 5.8rem;
        font-size: 2.3rem;
    }
}

/*--------------------- 14- Recruiter Chatbot CSS (End) ---------------------*/

/* Animation von links nach rechts (horizontal) */
@keyframes slideBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(-10px); }
    60% { transform: translateX(-5px); }
}

.ai-message-typing::after {
    content: "▋";
    display: inline-block;
    margin-left: 0.2rem;
    color: var(--purple2);
    animation: aiCursorBlink 0.8s infinite;
}

@keyframes aiCursorBlink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}