* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #eef5ff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
    background: #3b3b5c;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(10, 10, 20, 0.7);
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(100, 100, 160, 0.2);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    font-size: 2rem;
    color: #a855f7;
    text-shadow: 0 0 5px #a855f7;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #d1d5ff;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #c084fc;
    text-shadow: 0 0 5px rgba(192, 132, 252, 0.6);
}

@media (max-width: 700px) {
    .navbar { padding: 0.8rem 1rem; }
    .nav-links { gap: 1rem; }
    .hero-text h1 { font-size: 2rem; }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 260px;
    z-index: 5;
}

.hero-text .greeting {
    font-size: 1.2rem;
    color: #a78bfa;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(167, 139, 250, 0.1);
    padding: 0.2rem 1rem;
    border-radius: 40px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0.5rem 0 0.8rem;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text .highlight {
    color: #d8b4fe;
    text-shadow: 0 0 10px #a855f7;
}

.hero-text .tagline {
    font-size: 1.2rem;
    color: #b9c3e6;
    margin-bottom: 2rem;
    border-left: 3px solid #c084fc;
    padding-left: 1rem;
}

.cta-btn {
    background: linear-gradient(95deg, #7c3aed, #3b82f6);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px #7c3aed;
}

.model-area {
    flex: 1;
    min-width: 280px;
    height: 480px;
    position: relative;
}

#canvas-container {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: rgba(0,0,0,0.2);
}

.techstack-section {
    background: #07070c;
    border-top: 1px solid rgba(100, 100, 140, 0.2);
    border-bottom: 1px solid rgba(100, 100, 140, 0.2);
    padding-bottom: 2rem;
}

.techstack-header {
    text-align: center;
    padding: 3rem 2rem 1rem;
}

.techstack-header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #e0d4ff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.techstack-header span {
    color: #c084fc;
}

.techstack-header p {
    color: #8888aa;
    margin-top: 0.5rem;
}

#skill-balls-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: crosshair;
    border-radius: 24px;
}

.instruction {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 1rem;
    font-family: monospace;
}

.section {
    padding: 5rem 2rem;
    background: #020205;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(125deg, #e0d4ff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-text {
    background: rgba(10, 10, 20, 0.7);
    border-radius: 2rem;
    padding: 2rem;
    border-left: 4px solid #8b5cf6;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccd6f6;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-icon {
    background: #14141f;
    padding: 1rem 1.5rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    transition: 0.2s;
    border: 1px solid #2d2d44;
    text-decoration: none;
    color: #e2e8ff;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #c084fc;
}

.contact-icon:hover {
    border-color: #a855f7;
    transform: scale(1.02);
    box-shadow: 0 0 12px #a855f7;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #6c6f8a;
    border-top: 1px solid #1e1e2e;
}

.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Funny Projects Section */
.projects-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #06060a 100%);
    border-top: 1px solid rgba(100, 100, 140, 0.2);
    border-bottom: 1px solid rgba(100, 100, 140, 0.2);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(192, 132, 252, 0.03) 2px,
        rgba(192, 132, 252, 0.03) 4px
    );
    pointer-events: none;
}

.projects-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.projects-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.projects-header span {
    background: linear-gradient(135deg, #c084fc, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.projects-header p {
    color: #8888aa;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

.projects-instruction {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 1rem;
    font-family: monospace;
    position: relative;
    z-index: 10;
}

#projects-carousel-container {
    position: relative;
    z-index: 10;
}

/* Modal styles for project details */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
    border-radius: 32px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: 0 0 50px rgba(192, 132, 252, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-content.active {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content p {
    color: #ccd6f6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.modal-btn.visit {
    background: linear-gradient(95deg, #7c3aed, #3b82f6);
    color: white;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.modal-btn.close {
    background: transparent;
    border: 1px solid rgba(192, 132, 252, 0.5);
    color: #c084fc;
}

.modal-btn:hover {
    transform: scale(1.05);
}

/* 3D About Me Diorama Section */
.about-diorama-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #020205 100%);
    border-top: 1px solid rgba(100, 100, 140, 0.2);
    border-bottom: 1px solid rgba(100, 100, 140, 0.2);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-diorama-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 30%, rgba(192, 132, 252, 0.08), transparent 70%);
    pointer-events: none;
}

.diorama-header {
    text-align: center;
    margin-bottom: 2rem;
}

.diorama-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #e0d4ff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.diorama-header span {
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.diorama-header p {
    color: #8888aa;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.diorama-instruction {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 1rem;
    font-family: monospace;
}

#about-diorama-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

/* Tooltip for hover info */
.diorama-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    color: #c084fc;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid rgba(192, 132, 252, 0.3);
    font-family: monospace;
    transition: opacity 0.2s;
    opacity: 0;
}

.diorama-tooltip.visible {
    opacity: 1;
}

/* Logo Image Styles */
.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.5));
}

/* If you want to keep both image and text */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 35px;
    width: auto;
}

/* Mobile responsive */
@media (max-width: 700px) {
    .logo-img {
        height: 28px;
    }
}

/* Social Orbit Section */
.social-orbit-section {
    background: radial-gradient(circle at center, #0a0a1a 0%, #020205 100%);
    border-top: 1px solid rgba(100, 100, 140, 0.2);
    border-bottom: 1px solid rgba(100, 100, 140, 0.2);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.orbit-header {
    text-align: center;
    margin-bottom: 2rem;
}

.orbit-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #e0d4ff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.orbit-header span {
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.orbit-header p {
    color: #8888aa;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.orbit-instruction {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 1rem;
    font-family: monospace;
}

#social-orbit-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #07070c 0%, #020205 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

#cta-container {
    position: relative;
}