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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    min-height: 100vh;
    color: #2c3e50;
    overflow-x: hidden;
    transition: background 0.6s ease;
}

/* Dynamic background colors for each section - blue and green gradients */
body.resume-bg {
    background: linear-gradient(135deg, #a8d8ea 0%, #b8e6b8 100%);
}

body.media-bg {
    background: linear-gradient(135deg, #98e098 0%, #a8d8ea 100%);
}

body.lore-bg {
    background: linear-gradient(135deg, #88d888 0%, #c8f0c8 100%);
}

body.portfolio-bg {
    background: linear-gradient(135deg, #78c878 0%, #b8e6b8 100%);
}

body.about-bg {
    background: linear-gradient(135deg, #68b868 0%, #a8e6a8 100%);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #b8e6b8 0%, #a8d8ea 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c3e50;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #27ae60, #3498db);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: #2c3e50;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    position: relative;
}

/* Avatar Section */
.avatar-section {
    margin-top: 2rem;
    margin-bottom: auto;
    animation: fadeInDown 0.8s ease;
}

.avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 10px solid #3498db;
    background: linear-gradient(135deg, #a8e6a8 0%, #d4f1d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.avatar-placeholder:hover .avatar-image {
    transform: scale(1.02);
}

/* Carousel Container */
.carousel-container {
    width: 100%;
    max-width: 700px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 20px 60px;
    min-height: 120px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 15px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #3498db;
    border-radius: 50%;
    width: 49px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3498db;
    position: absolute;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.carousel-nav-left {
    left: 0px;
}

.carousel-nav-right {
    right: 0px;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    overflow: visible;
}

/* Carousel Cards */
.carousel-card {
    background: linear-gradient(135deg, #27ae60 0%, #3498db 100%);
    color: white;
    padding: 1.2rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    width: 140px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-card.active {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.carousel-card:not(.active) {
    transform: scale(0.9);
    opacity: 0.7;
}

.carousel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.content-sections {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.content-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #5a6c7d;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .avatar-placeholder {
        width: 200px;
        height: 200px;
        border-width: 8px;
    }

    .carousel-nav {
        width: 41px;
        height: 41px;
    }

    .carousel-nav-left {
        left: 5px;
    }

    .carousel-nav-right {
        right: 5px;
    }

    .carousel-card {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
        min-width: 120px;
        width: 120px;
    }

    .main-content {
        padding: 1rem;
    }

    .carousel-container {
        padding: 15px 50px;
        min-height: 100px;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .avatar-placeholder {
        width: 150px;
        height: 150px;
        border-width: 6px;
    }

    .carousel-card {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        min-width: 100px;
        width: 100px;
    }

    .carousel-nav {
        width: 34px;
        height: 34px;
    }

    .carousel-nav-left {
        left: 5px;
    }

    .carousel-nav-right {
        right: 5px;
    }

    .carousel-container {
        padding: 10px 40px;
        min-height: 80px;
    }
}

/* Smooth transitions for section changes */
.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel animation - handled by JavaScript */

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #b8e6b8 0%, #a8d8ea 100%);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: #34495e;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #34495e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #2c3e50;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
