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

:root {
    --bg-deep: #0a0e27;
    --bg-mid: #1a1f3a;
    --glass: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(99, 102, 241, 0.2);
    --text-primary: #e8edf4;
    --text-muted: #94a3b8;
    --text-accent: #a5b4fc;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20%, 20%) scale(1.1);
        opacity: 0.3;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.site-header {
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.brand-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

.hero-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.profile-wrapper {
    position: relative;
    animation: floatProfile 4s ease-in-out infinite;
}

@keyframes floatProfile {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 30%;
    object-fit: cover;
    o
    border: 5px solid rgba(99, 102, 241, 0.3);
    box-shadow:
        0 0 80px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(168, 85, 247, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.profile-image:hover {
    transform: scale(1.08) rotate(-3deg);
    border-color: rgba(168, 85, 247, 0.5);
}

.hero-copy {
    max-width: 650px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-name {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    padding: 0.7rem 1.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* Tech Stack Section */
.tech-stack-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(30, 41, 59, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    margin: 4rem auto;
    max-width: 1000px;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category h4 {
    color: var(--text-accent);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-item {
    padding: 0.4rem 0.9rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-accent);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

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

.identity-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.identity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.identity-card:hover::before {
    opacity: 1;
}

.identity-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(99, 102, 241, 0.25),
        0 0 0 1px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.identity-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.identity-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

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

.project-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 30px 80px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.5);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-link {
    color: #818cf8;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-accent);
    gap: 0.8rem;
}

/* Story Section */
.story-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.story-intro {
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.8;
}

.story-body p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.story-body span {
    display: block;
    color: var(--text-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.story-expandable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.story-expandable.expanded {
    max-height: 3000px;
    transition: max-height 0.8s ease-in;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.read-more-btn .arrow {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded .arrow {
    transform: rotate(180deg);
}

.story-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.story-meta strong {
    color: var(--text-accent);
}

/* Principles */
.principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.principle-item {
    padding: 1.8rem;
    border-left: 5px solid var(--accent-1);
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.principle-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-left-width: 8px;
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.principle-item strong {
    display: block;
    color: var(--text-accent);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

/* Contact Section */
.contact-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.muted {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

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

    .hero-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .story-card,
    .contact-section {
        padding: 2rem;
    }

    .identity-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}