:root {
    --primary-blue: #2563eb;
    --primary-orange: #f97316;
    --dark-blue: #1e40af;
    --light-blue: #dbeafe;
    --light-orange: #ffedd5;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gradient-main: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: #0f0f1a;
    color: #e0e0e0;
}

/* =========== PARTICLES CANVAS =========== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =========== FLOATING SHAPES =========== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: floatShape 20s ease-in-out infinite;
}

.shape--1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.shape--2 {
    width: 300px;
    height: 300px;
    background: var(--primary-orange);
    top: 30%;
    right: -80px;
    animation-duration: 20s;
    animation-delay: -5s;
}

.shape--3 {
    width: 250px;
    height: 250px;
    background: #a78bfa;
    bottom: 10%;
    left: 20%;
    animation-duration: 22s;
    animation-delay: -8s;
}

.shape--4 {
    width: 200px;
    height: 200px;
    background: #f472b6;
    top: 50%;
    left: 60%;
    animation-duration: 18s;
    animation-delay: -3s;
}

.shape--5 {
    width: 350px;
    height: 350px;
    background: #22d3ee;
    bottom: -100px;
    right: 20%;
    animation-duration: 28s;
    animation-delay: -10s;
}

.shape--6 {
    width: 180px;
    height: 180px;
    background: #34d399;
    top: 15%;
    left: 45%;
    animation-duration: 24s;
    animation-delay: -6s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

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

/* =========== HERO SECTION =========== */
.hero {
    background: linear-gradient(135deg, rgba(37,99,235,0.85) 0%, rgba(249,115,22,0.85) 100%);
    color: var(--white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 300px 300px;
    animation: float 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #0f0f1a);
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 300px 300px; }
}

.hero__title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: heroTitleIn 1.2s cubic-bezier(.22,1,.36,1) forwards;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 1.5rem;
    animation: heroSubIn 1s cubic-bezier(.22,1,.36,1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--white);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes heroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSubIn {
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* =========== SECTION TITLES =========== */
.section-title {
    font-size: 2.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    margin: 12px auto 0;
    width: 0;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(.22,1,.36,1);
}

.section-title.animate-line::after {
    width: 80px;
}

/* =========== REVEAL ANIMATIONS =========== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for cards */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* =========== ABOUT SECTION =========== */
.about {
    padding: 120px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
}

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

.about__avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 0 40px rgba(37,99,235,0.4), 0 0 80px rgba(249,115,22,0.2);
    transition: var(--transition);
    animation: avatarFloat 4s ease-in-out infinite, avatarGlow 3s ease-in-out infinite alternate;
    cursor: pointer;
}

.avatar-placeholder:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 60px rgba(37,99,235,0.6), 0 0 120px rgba(249,115,22,0.3);
}

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

@keyframes avatarGlow {
    from { box-shadow: 0 0 40px rgba(37,99,235,0.4), 0 0 80px rgba(249,115,22,0.2); }
    to { box-shadow: 0 0 60px rgba(249,115,22,0.5), 0 0 100px rgba(37,99,235,0.3); }
}

.about__text {
    flex: 1;
}

.about__text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #c0c0c0;
}

.about__stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}

.stat:hover::before {
    left: 100%;
}

.stat:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 30px rgba(249,115,22,0.2);
}

.stat__number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat__label {
    color: #888;
    font-size: 0.9rem;
}

/* =========== INTERESTS SECTION =========== */
.interests {
    padding: 120px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.interests .container {
    position: relative;
    z-index: 1;
}

.interests__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.2rem;
    margin-top: 2rem;
}

/* Card sizes */
.interest-card--tall { grid-row: span 2; }
.interest-card--wide { grid-column: span 2; }

/* Card base */
.interest-card {
    border-radius: 24px;
    padding: 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
    border: 1px solid rgba(255,255,255,0.1);
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.interest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.interest-card:hover {
    transform: translateY(-12px) scale(1.04) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 2;
}

/* Shimmer on hover */
.interest-card .shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.interest-card:hover .shimmer {
    left: 150%;
}

/* Color variants */
.interest-card--blue   { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }
.interest-card--orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); color: #fff; }
.interest-card--purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); color: #fff; }
.interest-card--green  { background: linear-gradient(135deg, #34d399 0%, #059669 100%); color: #fff; }
.interest-card--pink   { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); color: #fff; }
.interest-card--cyan   { background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%); color: #fff; }
.interest-card--yellow { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); color: #fff; }
.interest-card--red    { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); color: #fff; }

/* Hide desc on small cards */
.interest-card:not(.interest-card--tall):not(.interest-card--wide) .interest-card__desc { display: none; }
.interest-card:not(.interest-card--tall):not(.interest-card--wide) .interest-card__icon { font-size: 3.2rem; margin-bottom: 0.8rem; }
.interest-card:not(.interest-card--tall):not(.interest-card--wide) .interest-card__title { font-size: 1.2rem; margin-bottom: 0; }

/* Card internals */
.interest-card__icon {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
    transition: transform 0.5s cubic-bezier(.22,1,.36,1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    animation: iconBounce 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.interest-card:hover .interest-card__icon {
    transform: scale(1.3) rotate(12deg);
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}

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

.interest-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.interest-card__desc {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* =========== CONTACT SECTION =========== */
.contact {
    padding: 120px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact .section-title { color: var(--white); }
.contact .section-title::after { background: rgba(255,255,255,0.6); }

.contact__content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact__content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact__button {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.contact__button:hover::before {
    left: 100%;
}

.contact__button:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Smooth section transition */
.about,
.interests,
.contact {
    margin-bottom: 0;
}
.footer {
    background: rgba(10, 10, 20, 0.95);
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer__text {
    opacity: 0.6;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer__text:hover {
    opacity: 1;
}

/* =========== CURSOR GLOW =========== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
    .interests__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(160px, auto);
    }
    .interest-card:not(.interest-card--tall):not(.interest-card--wide) .interest-card__desc { display: block; }
}

@media (max-width: 768px) {
    .hero__title { font-size: 2.8rem; }
    .hero__subtitle { font-size: 1.2rem; }
    .about__content { flex-direction: column; text-align: center; gap: 2rem; }
    .avatar-placeholder { width: 160px; height: 160px; font-size: 4rem; }
    .about__stats { flex-wrap: wrap; justify-content: center; }
    .stat { min-width: 120px; }
    .section-title { font-size: 2rem; }
    .hero { padding: 100px 0 80px; }
}

@media (max-width: 480px) {
    .hero { padding: 80px 0 60px; }
    .hero__title { font-size: 2rem; }
    .about, .interests, .contact { padding: 80px 0; }
    .interests__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .interest-card--tall, .interest-card--wide { grid-row: span 1; grid-column: span 1; }
    .interest-card .interest-card__desc { display: block; }
}