/* Design Fixes for Sebastian Selinger Portfolio */

/* Fix header text visibility */
.introduction {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Fix animated text wrapper width and centering */
.cd-words-wrapper {
    width: auto !important;
    min-width: 400px !important;
    max-width: 600px !important;
    text-align: center !important;
    margin: 20px auto 0 auto !important;
    display: inline-block !important;
}

.cd-headline {
    text-align: center !important;
    width: 100% !important;
}

.animated-text {
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 20px !important;
}

/* Fix main heading positioning */
.introduction {
    text-align: center !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    font-size: 3rem !important;
    line-height: 1.2 !important;
}

/* Fix heading hierarchy */
.about-me-text h2 {
    color: #6f6f6f;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
}

.about-me-text h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: -8px;
    width: 47px;
    height: 5px;
    background: #6f6f6f;
}

/* Fix services heading */
.services-heading h2 {
    color: #6f6f6f;
    text-align: center;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 80px;
    position: relative;
}

.services-heading h2:before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 47px;
    height: 5px;
    background: #6f6f6f;
    transform: translateX(-50%);
}

/* Fix portfolio heading */
.portfolio h2 {
    color: #6f6f6f;
    text-align: center;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 80px;
    position: relative;
}

.portfolio h2:before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 47px;
    height: 5px;
    background: #6f6f6f;
    transform: translateX(-50%);
}

/* Fix contact heading */
.contact-holder h2 {
    color: #fff;
    text-align: center;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 80px;
    position: relative;
}

.contact-holder h2:before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8px;
    width: 47px;
    height: 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* Fix sr-only class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ensure proper spacing and centering */
.head-holder {
    text-align: center;
    padding: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 30%;
    right: 0;
    bottom: 0;
    transform: translateX(-15%);
}

/* Fix text animation positioning */
.cd-headline.clip .cd-words-wrapper {
    overflow: visible !important;
    white-space: nowrap !important;
}

.cd-headline.clip b {
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important;
}

/* Ensure full text visibility */
.cd-words-wrapper b {
    font-size: inherit !important;
    line-height: 1.2 !important;
    padding: 0 10px !important;
}

/* Fix menu positioning */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Fix burger menu positioning and z-index */
.navigation-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.burger-menu {
    z-index: 9999 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.burger-menu span {
    background: #333 !important;
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Fix fullscreen navigation z-index */
.fullscreen-nav-container {
    z-index: 9998 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

/* Fix responsive issues */
@media (max-width: 768px) {
    .introduction {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .cd-words-wrapper {
        min-width: 300px !important;
        max-width: 350px !important;
        font-size: 1.2rem !important;
    }
    
    .head-holder {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .cd-words-wrapper {
        min-width: 280px !important;
        max-width: 320px !important;
        font-size: 1rem !important;
    }
    
    .introduction {
        font-size: 1.5rem !important;
    }
}
    
    /* Mobile burger menu adjustments */
    .navigation-icon {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .burger-menu span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
}

/* Ensure burger menu is always visible */
.navigation-icon {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix collapse button styling and behavior */
.btn[data-toggle="collapse"] {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 20px auto !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn[data-toggle="collapse"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.btn[data-toggle="collapse"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

.btn[data-toggle="collapse"] i {
    color: white !important;
    font-size: 18px !important;
}

/* Smooth collapse animation */
.collapse {
    transition: height 0.35s ease !important;
}

.collapsing {
    transition: height 0.35s ease !important;
}

/* Fix any potential conflicts with header background */
.header {
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}