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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0a0a0f;
    --darker: #050508;
    --card: #141420;
    --light: #f1f5f9;
    --gray: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 4rem 2rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#canvas {
    width: 100%;
    height: 100%;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-main {
    display: grid;
    gap: 4rem;
}

/* Code Window */
.code-window {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: slideDown 0.8s ease;
}

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

.window-header {
    background: rgba(20, 20, 32, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    margin-left: auto;
    color: var(--gray);
    font-size: 0.9rem;
}

.window-content {
    padding: 2rem;
}

.window-content pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.8;
}

.keyword { color: #c792ea; }
.property { color: #82aaff; }
.string { color: #c3e88d; }
.number { color: #f78c6c; }

/* Hero Title Section */
.hero-title-section {
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
}

/* Profile Showcase */
.profile-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.profile-image-container {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
}

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

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    mix-blend-mode: multiply;
}

.floating-stats {
    position: absolute;
    right: -20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-badge {
    background: var(--card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.stat-badge:nth-child(2) {
    animation-delay: 0.5s;
}

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

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-weight: 700;
    color: var(--light);
}

.profile-bio {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bio-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.bio-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bio-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.bio-details {
    display: grid;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
}

.profile-secondary {
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
}

.profile-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-secondary:hover img {
    transform: scale(1.05);
}

/* Skills Section */
.skills-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skills-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray);
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* Tech Orbit */
.skills-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.tech-orbit {
    position: relative;
    width: 400px;
    height: 400px;
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
    z-index: 5;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
}

.orbit-2 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    animation-duration: 25s;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation-duration: 30s;
}

.orbit-4 {
    width: 360px;
    height: 360px;
    margin: -180px 0 0 -180px;
    animation-duration: 35s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-node {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: counterRotate 20s linear infinite;
}

.orbit-2 .tech-node { animation-duration: 25s; }
.orbit-3 .tech-node { animation-duration: 30s; }
.orbit-4 .tech-node { animation-duration: 35s; }

@keyframes counterRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

.node-html { border-color: #e34f26; color: #e34f26; }
.node-css { border-color: #1572b6; color: #1572b6; }
.node-js { border-color: #f7df1e; color: #f7df1e; }
.node-sql { border-color: #00758f; color: #00758f; }

/* Skills Detailed */
.skills-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-detail-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.skill-detail-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

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

.skill-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-title h3 {
    font-size: 1.5rem;
    color: var(--light);
}

.skill-level {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.skill-detail-card p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.skill-tags span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.skill-meter {
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects-section {
    padding: 8rem 2rem;
    background: var(--darker);
}

.projects-intro {
    text-align: center;
    margin-bottom: 6rem;
}

.projects-showcase {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-featured.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-visual {
    position: relative;
}

.project-browser {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: transform 0.5s ease;
}

.project-featured:hover .project-browser {
    transform: translateY(-10px);
}

.browser-bar {
    background: rgba(20, 20, 32, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
}

.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }

.browser-url {
    flex: 1;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.browser-content {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-featured:hover .browser-content img {
    transform: scale(1.05);
}

.project-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.deco-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: pulse 3s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.deco-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    bottom: -50px;
    left: 50%;
}

.project-details {
    position: relative;
}

.project-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.project-description {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item span:last-child {
    color: var(--gray);
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.footer-simple {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    background: var(--darker);
}

.footer-simple p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-showcase {
        grid-template-columns: 1fr;
    }

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

    .tech-orbit {
        width: 300px;
        height: 300px;
    }

    .project-featured,
    .project-featured.reverse {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .profile-showcase {
        gap: 2rem;
        margin-top: 2rem;
    }

    .floating-stats {
        position: static;
        flex-direction: row;
        margin-top: 1rem;
    }

    .skills-section,
    .projects-section {
        padding: 4rem 1rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .tech-orbit {
        width: 250px;
        height: 250px;
    }

    .center-core {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-number {
        font-size: 3rem;
    }

    .projects-showcase {
        gap: 4rem;
    }
}

/* Scroll Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease forwards;
}