/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b5cf6;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

/* Hero Section - Updated to match reference */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #333;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative Stickers */
.sticker {
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
    animation-fill-mode: both;
}

.sticker-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.going-merry-sticker {
    width: 150px;
    height: 150px;
}

.minecraft-sticker {
    width: 150px;
    height: 150px;
}

.sticker-top-right {
    top: 100px;
    right: 100px;
    animation-delay: 0s;
}

.sticker-top-left {
    top: 120px;
    left: 80px;
    animation-delay: 0.5s;
}

.sticker-bottom-right {
    bottom: 120px;
    right: 80px;
    animation-delay: 1s;
}

.sticker-bottom-left {
    bottom: 100px;
    left: 100px;
    animation-delay: 1.5s;
}

.sticker-center-top {
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.sticker:hover .sticker-image {
    transform: scale(1.1);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #8b5cf6;
    overflow: hidden;
    background: #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-text {
    flex: 1;
}

.hero-title {
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.hero-name {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-icon:first-child {
    background: #0d1117;
    color: white;
}

.social-icon:last-child {
    background: #0077b5;
    color: white;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* About Section - Updated to match reference design */
.about {
    background: #f8fafc;
    color: #333;
}

.about .section-title {
    color: #1f2937;
    position: relative;
    margin-bottom: 4rem;
}

.about .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #8b5cf6;
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: left;
}

/* About list items as bordered cards instead of bullets */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-list li {
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.04);
}

.about-list li:before {
    display: none;
}

.about-list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Skills Section */
.skills {
    background: white;
    color: #333;
}

.skills .section-title {
    color: #1f2937;
    position: relative;
    margin-bottom: 4rem;
}

.skills .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #8b5cf6;
    border-radius: 2px;
}

.skills-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #60a5fa 0%, #f87171 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.tech-icon.java {
    background: #f89820;
    font-size: 1.5rem;
}

.tech-icon.python {
    background: #3776ab;
    font-size: 1.5rem;
}

.tech-icon.c {
    background: #a8b9cc;
    color: #000;
    font-weight: 700;
}

.tech-icon.cpp {
    background: #00599c;
    font-weight: 700;
}

.tech-icon.js {
    background: #f7df1e;
    color: #000;
}

.tech-icon.html {
    background: #f97316;
}

.tech-icon.react {
    background: #61dafb;
    color: #000;
}

.tech-icon.express {
    background: #000;
    font-size: 0.9rem;
}

.tech-icon.mongodb {
    background: #00ed64;
    color: #000;
    font-size: 1.5rem;
}

.tech-icon.nodejs {
    background: #339933;
    font-size: 0.9rem;
}

.tech-icon.git {
    background: #f05032;
    font-size: 1.3rem;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Projects Section */
.projects {
    background: white;
}

.projects .section-title {
    color: #1f2937;
    position: relative;
    margin-bottom: 4rem;
}

.projects .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #8b5cf6;
    border-radius: 2px;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
}

.project-image-link:hover .project-overlay {
    opacity: 1;
}

.project-image-link:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.project-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

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

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.contact-item h3 {
    margin-bottom: 0.25rem;
    color: #1f2937;
    font-size: 1rem;
}

.contact-item a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 0.8rem;
    word-break: keep-all;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        min-width: auto;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .contact-item i {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
    }
}

/* Hide stickers on mobile to prevent overlap */
@media (max-width: 600px) {
    .sticker {
        display: none !important;
    }
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    .avatar-circle {
        width: 130px;
        height: 130px;
    }
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    .hero-greeting {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    .hero-name {
        font-size: 2.1rem;
        margin-bottom: 0.7rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.7rem;
        margin-bottom: 1.2rem;
        align-items: center;
        width: 100%;
    }
    .btn {
        width: 90vw;
        max-width: 320px;
        font-size: 1rem;
        padding: 12px 0;
    }
    .social-icons {
        justify-content: center;
        gap: 0.7rem;
    }
}