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

:root {
    --white: #ffffff;
    --light-gray: #e8e8e8;
    --medium-gray: #a0a0a0;
    --dark-gray: #404040;
    --black: #0a0a0a;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Discord Status Colors */
    --discord-online: #43b581;
    --discord-idle: #faa61a;
    --discord-dnd: #f04747;
    --discord-offline: #747f8d;
    --discord-bg: rgba(47, 49, 54, 0.8);

    /* Availability Colors */
    --available-color: #43b581;
    --unavailable-color: #747f8d;

    /* Skill Colors */
    --skill-fill: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Images with Blur */
.section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) opacity(0.3);
    z-index: -1;
    transition: var(--transition);
}

#home::before {
    background-image: url('BACKGROUNDS/home-bg.jpg');
}

#information::before {
    background-image: url('BACKGROUNDS/info-bg.jpg');
}

#portfolio::before {
    background-image: url('BACKGROUNDS/portfolio-bg.jpg');
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

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

/* Section Styles */
.section {
    min-height: 100vh;
    display: none;
    padding: 100px 2rem 2rem;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.section.active {
    display: flex;
    opacity: 1;
}

/* Home Section */
#home {
    justify-content: center;
    align-items: center;
}

.home-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--light-gray);
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease 1.5s backwards;
}

.contact-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    animation: slideUp 0.8s ease 3s backwards;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--white);
}

/* Panel Grid Layout */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.panel-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.panel-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Discord Card Styles */
.discord-card {
    background: var(--discord-bg);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.discord-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
}

.discord-banner {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.discord-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: -45px auto 0;
    z-index: 2;
}

.discord-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid rgba(47, 49, 54, 1);
    display: block;
    background: var(--dark-gray);
}

.discord-status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid rgba(47, 49, 54, 1);
    background: var(--discord-offline);
    transition: var(--transition);
}

.discord-status-badge.online {
    background: var(--discord-online);
}

.discord-status-badge.idle {
    background: var(--discord-idle);
}

.discord-status-badge.dnd {
    background: var(--discord-dnd);
}

.discord-status-badge.offline {
    background: var(--discord-offline);
}

.discord-info {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.discord-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.discord-username {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
}

.discord-activity {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 0.75rem;
    display: none;
}

.discord-activity.active {
    display: block;
}

.discord-activity-title {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.discord-activity-name {
    font-size: 1rem;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.payment-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-label {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.payment-value {
    color: var(--light-gray);
    font-size: 1rem;
}

.payment-divider {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Skills Section */
.skills-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.skill-level {
    width: 100%;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--skill-fill);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Availability Timeline Styles */
.availability-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.availability-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.timezone-info {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.day-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.day-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.day-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.day-btn.active {
    background: rgba(67, 181, 129, 0.2);
    border-color: var(--available-color);
    color: var(--white);
}

.timeline-container {
    position: relative;
    padding: 1rem 0;
}

.timeline-hours {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.hour-label {
    font-size: 0.75rem;
    color: var(--medium-gray);
    text-align: center;
    min-width: 30px;
}

.timeline-bar {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.timeline-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
}

.timeline-active-bar {
    position: absolute;
    height: 4px;
    background: var(--available-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
    transition: var(--transition);
}

.timeline-dots {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--unavailable-color);
    border: 2px solid rgba(10, 10, 10, 0.8);
    transition: var(--transition);
    cursor: pointer;
}

.timeline-dot.active {
    background: var(--available-color);
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.5);
}

.timeline-dot.current {
    width: 16px;
    height: 16px;
    background: var(--white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
}

.current-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--unavailable-color);
}

.status-indicator.available {
    background: var(--available-color);
    box-shadow: 0 0 10px rgba(67, 181, 129, 0.5);
}

.status-text {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Rating Section */
.rating-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.rating-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--medium-gray);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1rem;
}

.faq-answer p {
    color: var(--light-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Information Section */
#information {
    align-items: flex-start;
}

.info-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.info-card p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Portfolio Section */
#portfolio {
    align-items: flex-start;
}

.portfolio-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.portfolio-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    .section {
        padding: 80px 1rem 1rem;
    }

    .contact-panel {
        padding: 1.5rem;
    }

    /* Stack layout on mobile */
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .panel-left {
        order: 2;
    }

    .panel-right {
        order: 1;
    }

    .discord-banner {
        height: 60px;
    }

    .discord-avatar-wrapper {
        width: 70px;
        height: 70px;
        margin-top: -35px;
    }

    .discord-avatar {
        width: 70px;
        height: 70px;
        border-width: 5px;
    }

    .discord-status-badge {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .availability-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .hour-label {
        font-size: 0.65rem;
    }

    .timeline-dot {
        width: 10px;
        height: 10px;
    }

    .timeline-dot.current {
        width: 14px;
        height: 14px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .discord-info {
        padding: 0.75rem 1rem 1rem;
    }

    .discord-name {
        font-size: 1.1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}