/* Root Colors from Logo */
:root {
  --logo-orange: #FF9966;
  --logo-red: #FF5E62;
  --logo-pink: #FF2CAA;
  --logo-blue: #384BDC;
  
  /* Gradients */
  --gradient-orange: linear-gradient(45deg, var(--logo-orange), var(--logo-red));
  --gradient-pink: linear-gradient(45deg, var(--logo-red), var(--logo-pink));
  --gradient-blue: linear-gradient(45deg, var(--logo-pink), var(--logo-blue));
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Spezifischer Hover-Effekt für About und Skills Section */
#about .glass-effect:hover,
#skills .glass-effect:hover {
    transform: scale(1.05);
    background: rgba(56, 75, 220, 0.15);
    border: 1px solid rgba(56, 75, 220, 0.3);
    box-shadow: 0 0 20px rgba(56, 75, 220, 0.2),
                inset 0 0 20px rgba(56, 75, 220, 0.1);
}

#about .glass-effect:hover [class*="text-blue-400"],
#skills .glass-effect:hover [class*="text-blue-400"] {
    text-shadow: 0 0 10px rgba(56, 75, 220, 0.5);
    color: var(--logo-blue) !important;
}

#about .glass-effect:hover [class*="text-gray-400"],
#skills .glass-effect:hover [class*="text-gray-400"] {
    color: rgba(255, 94, 98, 0.9) !important;
}

/* Zusätzlicher Effekt für die Zahlen */
#about .glass-effect:hover [class*="text-3xl"],
#about .glass-effect:hover [class*="text-4xl"] {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.neon-text {
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.8),
                 0 0 20px rgba(66, 153, 225, 0.8),
                 0 0 30px rgba(66, 153, 225, 0.8);
}

.gradient-border {
    position: relative;
    border: double 1px transparent;
    background-image: linear-gradient(#000, #000), 
                    linear-gradient(to right, #00f2fe, #4facfe);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.gradient-button {
    background: var(--gradient-blue);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gradient-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-pink);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-button:hover::before {
    opacity: 1;
}

/* Mobile Design (Standard) */
.heading-container {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    max-width: 100%;
}

.heading-container span {
    display: block;
    white-space: normal;
    font-size: 1.875rem;
    line-height: 1.2;
    position: relative;
}

.heading-highlight {
    display: block;
    font-size: 0.8rem;
    font-weight: bold !important;
    background: linear-gradient(
        90deg,
        var(--logo-orange),
        var(--logo-red),
        var(--logo-pink),
        var(--logo-blue),
        var(--logo-orange)
    );
    background-size: 300% 100%;
    animation: gradient-animation 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    padding: 0 10px;
    text-shadow: 0 0 10px rgba(255, 153, 102, 0.2);
}

/* Verstecke Desktop-Striche auf Mobile */
.heading-container::before,
.heading-container::after {
    display: none;
}

/* Desktop Design (ab 768px) */
@media (min-width: 768px) {
    .heading-container {
        padding: 0 20px;
    }
    
    .heading-container span {
        font-size: 2.25rem;
        white-space: nowrap;
    }
    
    /* Zeige Striche nur auf Desktop */
    .heading-container::before,
    .heading-container::after {
        display: block;
        content: '';
        position: absolute;
        top: 50%;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--logo-red), transparent);
        box-shadow: 0 0 10px rgba(255, 153, 102, 0.3);
    }
    
    .heading-container::before {
        right: 100%;
    }
    
    .heading-container::after {
        left: 100%;
    }
    
    .heading-highlight {
        font-size: 0.9rem;
        letter-spacing: 3px;
        font-weight: bold !important;
    }
}

/* Moderne Formular-Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    padding-left: 2.5rem;
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #60A5FA;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.8);
}

.form-label {
    position: absolute;
    left: 2.5rem;
    top: 1rem;
    padding: 0 0.5rem;
    color: #60A5FA;
    cursor: text;
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 1rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.5rem;
    font-size: 0.85rem;
    color: #000000;
    background: rgba(96, 165, 250, 0.80);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0 0.5rem;
}

/* Icon Styles */
.form-group::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #60A5FA;
    z-index: 1;
}

.form-group.name::before {
    content: "\f007"; /* user icon */
}

.form-group.email::before {
    content: "\f0e0"; /* envelope icon */
}

.form-group.phone::before {
    content: "\f095"; /* phone icon */
}

.form-group.message::before {
    content: "\f075"; /* comment icon */
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
    padding: 0 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--logo-blue), transparent);
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 10px rgba(56, 75, 220, 0.5);
}

.nav-link:hover {
    text-shadow: 0 0 10px rgba(56, 75, 220, 0.5);
    color: var(--logo-blue);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* Typewriter Animation */
.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    width: 0;
    opacity: 0;
}

.typewriter-text.active {
    opacity: 1;
    border-right: 2px solid #60A5FA;
    animation: typing 0.8s steps(30, end) forwards,
              blink-caret 0.75s step-end infinite;
}

.typewriter-text.typed {
    width: 100%;
    opacity: 1;
    border-right: none;
    animation: none;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-right-color: transparent }
    50% { border-right-color: #60A5FA }
}

/* Footer Heading Underline */
.footer-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    margin: 0 auto;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60A5FA, transparent);
    opacity: 1;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}