* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-blue: #4A90E2;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-1: #1e3a8a;
    --gradient-2: #065f46;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(30, 58, 138, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 95, 70, 0.4) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

/* Main Avatar on Landing Page */
.main-avatar-container {
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.main-avatar-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
    border: 3px solid rgba(74, 144, 226, 0.2);
    transition: transform 0.3s ease;
}

.main-avatar-image:hover {
    transform: scale(1.05);
}

.avatar-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    overflow: hidden;
}

/* Greeting and Title */
.greeting {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease 0.4s both;
    letter-spacing: -2px;
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
    position: relative;
    animation: fadeInUp 1s ease 0.8s both;
}

.search-input {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #3a7bc8;
    transform: translateY(-50%) scale(1.05);
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 1s both;
}

.nav-btn {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.nav-btn i {
    font-size: 1.5rem;
}

.nav-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Section Views */
.section-view {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Me Section Header */
.section-header-simple {
    text-align: center;
    margin-bottom: 3rem;
}

.avatar-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.section-header-simple h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-meta {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Me Section Content */
.section-content-me {
    background: transparent;
    padding: 0;
}

.me-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.me-photo-container {
    position: relative;
}

.me-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.me-bio {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bio-greeting {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.bio-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.bio-tag {
    background: rgba(74, 144, 226, 0.15);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.extended-bio {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.extended-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.section-content {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carousel-btn {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.project-card-large {
    min-width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: none;
}

.project-card-large.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.project-tag {
    display: inline-block;
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card-large h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project-preview {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.project-screenshot {
    padding: 0;
    background: transparent;
    border: 2px solid rgba(74, 144, 226, 0.2);
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.project-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.7;
}

.project-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.project-link:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

.projects-note {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
}

/* Skills */
.skills-category {
    margin-bottom: 2rem;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background: rgba(74, 144, 226, 0.1);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

/* Education Section */
.education-image-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.education-details {
    margin-top: 2rem;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.education-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.education-header i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.education-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.degree {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.duration {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skills-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.skills-highlight i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.skills-highlight span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.location-info i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.location-info span {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Contact */
.contact-intro {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.contact-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.contact-card span {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-card small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.back-btn {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--primary-blue);
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.5rem;
    }

    .main-avatar-image {
        width: 200px;
        height: 200px;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

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

    .contact-links-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .project-card-large {
        padding: 1.5rem;
    }

    .project-card-large h3 {
        font-size: 1.5rem;
    }

    .project-preview {
        height: 200px;
    }

    .education-header h3 {
        font-size: 1.2rem;
    }

    .degree {
        font-size: 1rem;
    }

    /* Me Section Responsive */
    .me-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .me-photo-container {
        max-width: 350px;
        margin: 0 auto;
    }

    .bio-greeting {
        font-size: 2rem;
    }

    .bio-text {
        font-size: 1rem;
    }

    .avatar-emoji {
        font-size: 3rem;
    }

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

    .header-meta {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-carousel {
        width: 100%;
    }

    .carousel-btn {
        width: 100%;
        max-width: 150px;
        border-radius: 12px;
        align-self: center;
    }

    .project-card-large {
        padding: 1.25rem;
    }

    .project-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .project-tech-tags {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .project-preview {
        height: 180px;
    }

    .project-card-large h3 {
        font-size: 1.35rem;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }

    .project-tech-tags {
        justify-content: center;
    }
}
