/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, #faf5f0 0%, #f5efe8 100%);
    min-height: 100vh;
    color: #3b001b;
    position: relative;
    overflow-x: hidden;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.yarn-ball {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.yarn-ball-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.yarn-ball-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.yarn-ball-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 3s;
}

.yarn-ball-4 {
    bottom: 15%;
    right: 12%;
    animation-delay: 4.5s;
}

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

/* Main Container */
.author-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Author Card */
.author-card {
    background: #ffffff;
    border: 4px solid #3b001b;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(59, 0, 27, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Author Badge */
.author-badge {
    background: #4ecdc4;
    color: #3b001b;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #3b001b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 30px;
    transform: rotate(-5deg);
    position: relative;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b001b;
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border: 3px dashed #f2bad0;
    border-radius: 50%;
    z-index: 1;
}

.author-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3b001b;
    margin-bottom: 10px;
    letter-spacing: -2px;
    line-height: 1;
}

.author-title {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bio Section */
.bio-section {
    margin-bottom: 40px;
}

.bio-title {
    font-size: 2rem;
    font-weight: 600;
    color: #3b001b;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.bio-title::after {
    content: '🧶';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f2bad0, #dda8c4);
    border-radius: 20px;
    border: 2px solid #3b001b;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b001b;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #3b001b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: #3b001b;
    margin: 0 20px;
}

/* Specialties Section */
.specialties-section {
    margin-bottom: 40px;
}

.specialties-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b001b;
    margin-bottom: 20px;
    text-align: center;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.specialty-item {
    background: #fff0f5;
    border: 2px solid #f2bad0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 186, 208, 0.3);
}

.specialty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.specialty-text {
    font-size: 1rem;
    font-weight: 600;
    color: #3b001b;
}

/* Social Section */
.social-section {
    margin-bottom: 40px;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b001b;
    margin-bottom: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f2bad0;
    color: #3b001b;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #3b001b;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b001b;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 0, 27, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 3px solid #fff;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.contact-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #3b001b;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: #3b001b;
    text-decoration: none;
}

/* Back to Site */
.back-to-site {
    text-align: center;
}

.back-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #3b001b;
    padding: 12px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #3b001b;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-btn:hover {
    background: #3b001b;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-container {
        padding: 20px 15px;
    }
    
    .author-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .author-name {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .author-badge {
        font-size: 14px;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .stat-divider {
        width: 40px;
        height: 2px;
        margin: 0;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .specialty-item {
        padding: 15px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .bio-title::after {
        position: static;
        margin-left: 10px;
        transform: none;
    }
    
    .yarn-ball {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .author-card {
        padding: 20px 15px;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 20px;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-text {
        font-size: 1rem;
    }
    
    .bio-text {
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .yarn-ball,
    .author-card,
    .specialty-item:hover,
    .social-link:hover,
    .contact-btn:hover,
    .back-btn:hover {
        animation: none;
        transition: none;
        transform: none;
    }
}

/* Print Styles */
@media print {
    .yarn-ball,
    .contact-btn,
    .social-links,
    .back-to-site {
        display: none;
    }
    
    .author-card {
        border: 2px solid #000;
        box-shadow: none;
        background: #fff !important;
    }
    
    .contact-section {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000;
    }
}

/* Focus States for Accessibility */
.social-link:focus,
.contact-btn:focus,
.back-btn:focus {
    outline: 3px solid rgba(59, 0, 27, 0.3);
    outline-offset: 2px;
}
/*==========================================================================================*/
/*======================================== NAVIGATION ====================================*/
/*==========================================================================================*/

.custom-navbar {
    background-color: #f2bad0 !important;
    padding: 20px 40px;
    margin-top: 32px;
    border: none;
}

.custom-logo {
    font-size: 26px !important;
    font-weight: bold !important;
    color: #3B001B !important;
    font-family: 'Oswald', sans-serif !important;
    text-decoration: none !important;
    position: relative;
}

.custom-logo::before {
    content: '🧶 ';
    display: inline-block;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.custom-toggler {
    border: 2px dashed #3B001B !important;
    border-radius: 8px;
    padding: 8px 10px;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 0, 27, 0.25) !important;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2859, 0, 27, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.custom-nav {
    gap: 25px;
}

.custom-link {
    font-size: 20px !important;
    color: #3B001B !important;
    font-family: 'Oswald', sans-serif !important;
    padding: 10px 25px !important;
    border: 2px dashed #3B001B !important;
    border-radius: 20px !important;
    transition: all 0.4s ease !important;
    background: rgba(59, 0, 27, 0.05) !important;
    margin: 0 5px;
    position: relative;
}

.custom-link::after {
    margin-left: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    display: inline;
}

.custom-nav li:nth-child(1) .custom-link::after { content: '🪝'; }
.custom-nav li:nth-child(2) .custom-link::after { content: '🧵'; }
.custom-nav li:nth-child(3) .custom-link::after { content: '✂️'; }
.custom-nav li:nth-child(4) .custom-link::after { content: '📧'; }

.custom-link:hover {
    color: #69002f !important;
    transform: scale(1.15) !important;
    border-style: solid !important;
    background: rgba(105, 0, 47, 0.1) !important;
}
/*==========================================================================================*/
/*====================================== FOOTER SECTION ==================================*/
/*==========================================================================================*/

.footer-section {
   background: #bf98da;
   padding: 60px 0;
   font-family: 'Oswald', sans-serif;
   position: relative;
}

.footer-card {
   background: #723344;
   border-radius: 25px;
   max-width: 1000px;
   margin: 0 auto;
   padding: 50px;
   position: relative;
   overflow: hidden;
   min-height: 500px;
}

.footer-content {
   display: grid;
   grid-template-columns: 2fr 1.2fr 1.5fr;
   gap: 40px;
   margin-bottom: 40px;
   position: relative;
   z-index: 2;
}

.footer-column {
   display: flex;
   flex-direction: column;
}

.footer-heading {
   color: #ffd700;
   font-size: 1rem;
   font-weight: 700;
   margin: 0 0 10px 0;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.footer-subheading {
   color: #ffd700;
   font-size: 0.9rem;
   font-weight: 600;
   margin: 20px 0 10px 0;
   text-transform: uppercase;
   letter-spacing: 1px;
}

.footer-subheading:first-of-type {
   margin-top: 0;
}

.footer-text {
   color: #f2bad0;
   font-size: 0.95rem;
   line-height: 1.4;
   margin: 0 0 20px 0;
   font-weight: 400;
}

.footer-links {
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-links li {
   margin-bottom: 8px;
}

.footer-link {
   color: #f2bad0;
   text-decoration: none;
   font-size: 1.1rem;
   font-weight: 600;
   transition: all 0.3s ease;
   display: inline-block;
}

.footer-link:hover {
   color: #ffd700;
   transform: translateX(3px);
}

.nav-column .footer-links {
   display: grid;
   grid-template-columns: 1fr;
   gap: 8px;
}

.social-column .footer-links {
   margin-bottom: 15px;
}

.social-column .footer-links:last-child {
   margin-bottom: 0;
}

.footer-logo-section {
   position: absolute;
   bottom: 50px;
   left: 50%;
   transform: translateX(-50%);
   z-index: 1;
}

.footer-logo {
   font-size: 7rem;
   font-weight: 900;
   color: rgba(242, 186, 208, 0.12);
   margin: 0;
   font-family: 'Oswald', sans-serif;
   letter-spacing: -0.02em;
   line-height: 1;
   white-space: nowrap;
}

.footer-bottom {
   position: absolute;
   bottom: 15px;
   left: 50px;
   right: 50px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   z-index: 2;
}

.footer-credit-left,
.footer-credit-right {
   color: #f2bad0;
   font-size: 0.85rem;
   margin: 0;
   opacity: 0.8;
   font-weight: 400;
}

/*==========================================================================================*/
/*===================================== RESPONSIVE DESIGN ================================*/
/*==========================================================================================*/

/* Mobile Navigation */
@media (max-width: 991.98px) {
   .custom-navbar {
       padding: 15px 30px;
       margin-top: 15px;
   }
   
   .navbar-collapse {
       background-color: #f2bad0;
       border-top: 2px solid #3B001B;
       margin-top: 15px;
       padding-top: 15px;
   }
   
   .custom-nav {
       flex-direction: column;
       gap: 10px;
       width: 100%;
   }
   
   .custom-link {
       display: block !important;
       text-align: center !important;
       width: 90% !important;
       margin: 5px auto !important;
       font-size: 22px !important;
       padding: 15px 20px !important;
   }
   
   .custom-link::after {
       margin-left: 10px;
   }
   
   .custom-link:hover {
       transform: scale(1.05) !important;
   }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
   .footer-content {
       grid-template-columns: 1.5fr 1fr 1fr;
       gap: 30px;
   }
   
   .footer-logo {
       font-size: 6rem;
   }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
   /* Footer Mobile */
   .footer-card {
       padding: 40px 30px;
       margin: 0 20px;
       min-height: 600px;
   }
   
   .footer-content {
       grid-template-columns: 1fr;
       gap: 40px;
       text-align: left;
       margin-bottom: 60px;
   }
   
   .footer-column {
       border-bottom: 1px solid rgba(242, 186, 208, 0.2);
       padding-bottom: 30px;
   }
   
   .footer-column:last-child {
       border-bottom: none;
   }
   
   .nav-column .footer-links {
       grid-template-columns: repeat(2, 1fr);
       gap: 12px;
   }
   
   .footer-logo {
       font-size: 4.5rem;
       bottom: 80px;
   }
   
   .footer-bottom {
       flex-direction: column;
       gap: 8px;
       text-align: center;
       left: 30px;
       right: 30px;
       bottom: 20px;
   }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
   .footer-card {
       padding: 30px 20px;
       min-height: 550px;
   }
   
   .footer-content {
       gap: 30px;
       margin-bottom: 80px;
   }
   
   .nav-column .footer-links {
       grid-template-columns: 1fr;
       gap: 10px;
   }
   
   .footer-link {
       font-size: 1rem;
   }
   
   .footer-logo {
       font-size: 3.5rem;
       bottom: 70px;
   }
   
   .footer-bottom {
       bottom: 15px;
   }
   
   .footer-credit-left,
   .footer-credit-right {
       font-size: 0.8rem;
   }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
   .footer-logo {
       font-size: 2.8rem;
   }
   
   .footer-card {
       min-height: 500px;
   }
}
